I think I'd try something like reading the user input into a char array, parsing the input string making sure it's either a 1 or 0, and if it is,...
use clrscr() huh? Maybe a different instructor is in order. :D You didn't indicate what compiler you're using... I'm guessing borland's turbo...
I'll try and help as best I can, but you'll have to show some code. :) Here's a basic skeleton without functions. #include <stdio.h>...
If you're accustomed to using that, you might try dosbox. Another idea might be to use the mingw download of codeblocks though I don't know if...
there's probably a number of similar programs if you search the board. :) anyway, you could create a structure that holds info for the names...
If it's not a typo, the printfs and scanfs are missing commas. having "%d\n" in scanf is kinda hokie too. scanf("%d\n"&n); scanf("%d\n",...
In C, the compiler needs to know about your functions before they're called. You can do this one of two ways way one #includes ......
For anyone interested, I've thrown together a bit of code for using sqlite and c. As always, if anyone sees a problem, please point it out....
no worries mate; glad to help. :)
if you're wanting to use the array as a null terminated string, then setting the first element to 0, should suffice in "wiping the string". If...
while ( years <= 3) { cout << "raise = salary * .05: "; cout << "Enter raise: " << raise << endl; cout << "Enter number of years: " <<...
zachry00, that's nice. I wonder if the OP is still waiting or if too much time has elapsed... :D here's my stab at it in C and the data...
You could enumerate through the children and then find edit controls by searching for their class names. I'm no programming guru or anything,...
As fate would have it, I too am playing with threading. I'm not quite sure if it's correct, but maybe something like #include <windows.h>...
it is required to span multiple lines printf("hello \ world"); // okay printf("hello world"); // compiler error in...
you'll need to trap any errors and take steps programmatically to rectify/report them. I don't know if turbo has try, catch, and throw or not...
The header file, line_num.h, should only be used for declaring typedefs, classes, global variables (if any), and function prototypes. function...
What compiler are you using?? What is declared within line_num.h?? What compiler errors are being generated?? cout<<"This is the line...
Nice job with trying it out. :) beware when using gets; that function doesn't check that input will fit within your array and will gladly...
NP; always glad if/when I can help. :)
Separate names with a comma.