If I could hug you right now, I would. Thank you so much, was starting to feel hopeless.
Type: Posts; User: dr0be
If I could hug you right now, I would. Thank you so much, was starting to feel hopeless.
Well any idea what im doing wrong when declaring variables from that file?
I can make the data file look however I want, what are fields usually written with? quotes? what are they usually seperated by? commas?
Nah, its defiantly not that. Its assigning variables weird from the file. I know this because when I print the values they were assigned to Im getting weird values.
Heres my cars.dat file where...
Alright, changed it to 4, and I still get no errors but program crashes when I execute. I got to be doing something wrong with the file or assigning the string values. Heres my current code at the...
Alright, well I changed the scan and print to %s and the things just crashing again, this is so irritating.
Well I was trying to have this...
fscanf(fp, "%c", &fName[i]);
Assign fName[0] to be 'John'
Then this...
printf("%c", fName[0]);
Would print it, but it doesnt seem to be working.
I am using Microsoft Visual C++ 6.0, so I'm not really sure where to turn on warning, id search for it, but something happened with the MSDN when I installed it and I do not have the CD (back at...
Alright, well I changed all my fscanf's with &'s, since I forgot them, but the program is still crashing.
*EDIT* All the program needs to do is read a .dat file, assign variables to the data,...
I have no clue what any of that foo.c: things are, what did I do wrong when calling fscanf function?
I'm pretty lost when it comes to reading/writing, I've paid attention in my class, read multiple online tutorials, and the book and I can't figure it out. I tried to do this assignment, but it just...
Link would be perfect :) thanks
Normally I would just asked for some help with my C class homework, but I truly have no idea how to write or read into files.
this is the assignment
I have no clue where to start because last...
Bump. Can anyone help me with cls function? Need to know how to clear screen.
Changed just that line and the program went from not printing anything to completely working, thank you very much. My teacher said that in the reports you have to stop the program, then you hit enter...
Yeah thats what it is suppose to do, is that C code or pseudocode, or something else? I've never seen a for statement written like that.
My main problem is though is that my program is outputting...
Im trying to make this program for class that compares to array that represent stock values on different days. The arrays are these two below...
float stock1[ ] =
{34.25,40.50,36.50,40.00,...
Well, I know in VS6.0 all you have to do is hit new, save as, and type file name and put .cpp and it saves it as a cpp and thats all we had to do.
How exactly would I do that in VS2005?
I dont really have a problem, by problem I mean question (its late, tired). Anyways...
Im currently taking a C class and we use Visual Studio 6.0. Currently I installed Windows Vista, and the...