i don't think you can declare your loop variables inside the loop, try doing it this way
int i = 0;
for(i; i<8; i++)
Type: Posts; User: ExxNuker
i don't think you can declare your loop variables inside the loop, try doing it this way
int i = 0;
for(i; i<8; i++)
malloc will return a NULL pointer if the size of the block to be allocated is zero, or if there was insufficient memory
#include <iostream>
using namespace std;
int mult(int a, int b);
int main(){
int selection;
int num1;
it has both ftp and http sections, the data can be easily moved to either
I have written a file processing script and now i'd like to have the program retrieve the data files from the server itself, instead of me having to pull the updated files myself at the end of the...
again
READ THE INFORMATION HERE!!!!!
http://www.msoe.edu/eecs/cese/resources/stl/string.htm
try looking up the return type of the length function......I think you'll be able to figure out what you are doing wrong from there.
http://www.msoe.edu/eecs/cese/resources/stl/
rather, you should look at your loop, specifically at your two if conditions.......your loop only executes once, no matter what number you enter
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcstdlib/html/vcoriheaders_stl.asp
descriptions of various C header files
try renaming the variable int gcf ..... its the same as the name of your function
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_clipboard.3a_.using_the_windows_clipboard.asp
I have some flexibility with my choice of parameters, If i pass the array directly, than i can use sizeof() to determine the number of elements
By error I mean something went wrong, whether it was that system couldn't open your command interpreter or some other reason....the way to tell what went wrong is to check errno (read through the...
love simple answers.....i'm oblivious sometimes!
Thanks a bunch!
http://www.cplusplus.com/ref/cstdlib/system.html
System() has two possible returns it looks like either 0 (or whatever your compiler evaluates to true) or -1 where -1 indicates an error
so if...
Say i have a function that is being passed two pointers to two separate arrays of doubles and that these arrays occupy the same ammount of memory. how can I:
Initialize a third pointer to the...
preprocessor directives?
#ifndef MAZE_H
#define MAZE_H
class Maze{
};
Please post your compiler errors
typedef struct{
int wordCounter;
string theWord;
}Wrd;
[NOTE] Your original version was correct on the definition of the struct, just my bias to declare structs in the manner...
thanks for the clarification. been trying to teach myself windows programming..still have a long ways to go.
Firstly:
Why is that not valid? strcmp returns an interger value of 0 if the char* are the same. [NOTE] woops, sorry i was reading your corrected code instead of his original, sorry about that....
Try using the conversion function A2T() instead of just trying to force a TCHAR
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_atl_string_conversion_macros.asp
the factorial (!) is a mathematical operator that carries out degenerative multiplication. I.E.
N!= N*(N-1)*(N-2)*(N-3)*....*(N-(N-1)).
ahh thanks daved.....you actually just solved a huge mystery in a processing program i was working on, i was wondering why i always had to subtract 2 from the return of size() instead of one just 1...
I see, this can be done with just one data structure to store your input, but as with most programming problems there are a million different ways to do the same thing! :) You should feel free to do...