hi all
sorry I couldn't find a precise title..
I'm new to C I usually write in JAVA or Visual basics 6, so there are a few things I want to ask you about, I know some questions might seem silly:
1- suppose you have the string "2004004", how can you convert this to a "long" value? in general is there a way in C to convert from Strings to int or long or double?
2-when reading for a txt file, I used the following code:
fscanf(fileName," %s %s %s ", nm, fm, un);
//nm fm and un are string variables so no problem here
if I do this iteratively shouldn't I get the next lines in the file until the feof?
3-I went over the basics in C but I didn't read anything concerning graphics...Is there a way to create GUIs in C? if so can you point me to an online tutorial?
4- and also about random number: how do we generate random numbers?
thanks