thanks, just found out myself, learn the whole s string part and was a about to reply that I found a solution!
Good to see I was on the right track
Type: Posts; User: bobnet
thanks, just found out myself, learn the whole s string part and was a about to reply that I found a solution!
Good to see I was on the right track
Hello
Below is a piece of code that opens a file.
if I got readFile(fileName) where "fileName" is a string containing a file the program does not compile.
string fileName;
fileName =...
Thanks joshdick and bennyandthejets
I guess new allocattes memory on the heap and delete frees up resources after
I have a structure with an array, but the array size I know only after my program has done something else which would then set the varSize variable. But how do I do this if the array is in a...
Thanks for your input.
lol not for a school assignment, bit to old for school lol. Just picked up a c programming book and giving it a shot
Hello,
I'm learning c myself (not c++, I'm trying not to use objects)
I have have a bunch of text files (created by a perl program)
They contain a bunch of letters and random numbers from 0...
I've read the command line tutorial and I under stand it, but whats the "standard" process to accept arugments with switches ?
eg
PROGRAM: myApp
OPTIONS: -a somethingA
-b...
I know I have to use a header file..
I understand that gloab vars etc go into the header file, but how do I link all this together so that main() calls hello() and hello calls bye() which is...
hello,
How do I spilt the source code from 1 big file into smaller files?
I have a simple program which has the functions main(), hello(), bye() ...
how do I put main() and hello() in 1...
lol, I feel so n00bi, I realized it and changed the post but you beet me to it!
Thanks again to funkydude9
thanks,
hello,
I have read the tutorial on strutures and I have a simple question.
I would try it out myself but don't have a compiler on hand.
Say I've defined a struture
struct example