Yes, you can pass a struct by value, but it is rarely done. Presumably arrays cannot be passed by value for two reasons: Arrays can be huge,...
Then you need to look up those functions on MSDN. CreateFile WriteFile They're a little complicated, but just remember that you mostly want the...
It is interesting to compare the C++ version with a Perl version! while (<*>) { $old = $_; $_ = lc; s/[^a-z0-9.]/_/g; rename...
Macros are a very simple textual substitution device. The textual substitution occurs before compile time, whereas inline functions are inlined...
The practical limit is common sense. If you have a huge number of arguments to pass, it is best to gather them in a structure or object and pass a...
Look up "variable length argument lists". "printf" uses a variable number of arguments. printf("hi"); printf("%d %d", 1, 2); The prototype...
Are you really trying to send the data to "notepad"? Or are you trying to write the data to a text file that could subsequently be read in notepad?
At the global scope all of your examples will zero the variables. The only difference is that the "static" variable will not be visible from other...
You're walking a slippery slope.
If you want to change the "value" (as you say) of an element named "name1" presumably you just do this: name1.value = 'newvalue' ... <input...
You must specify how your code is not working. What's the problem?
It won't show up until it's formatted. This is of course assuming it's a new (empty) drive!
If you know about function calls, global, static, and local variables, and the fork command, it is fairly straightforward to determine the output...
You are looking for a permutation algorithm.
You want char line[5] for an array of chars. You are declaring an array of pointers to chars then reading 4 bytes into the first pointer and...
Googling "factorial program in C++" or some such thing would lead to many prewritten programs if that is what you are looking for. If you are...
The timer has a resolution of about 10ms (if that). It used to be about 50ms on Windows 95/98, so it's an improvement. I'll think about how to...
This is a combination of what is generally considered to be a bad macro (argument referenced twice) and the undefined behavior discussed here...
Could we please see some of your code? I've seen this on another forum, and I've yet to see any code from you. People are not just going to do...
for (i = 0; i <= wordList.Length; i++) It should be <, not <=. <= will loop one too many times.
Separate names with a comma.