requiem
-
Posts
37 -
Joined
-
Last visited
Posts posted by requiem
-
-
After some googling, (and then some self hatred) I found that atoi only works for cstrings, not just a char.
What does your input file look like?
-
i'm trying atoi, it's not working. it replies:
cannot convert parameter 1 from 'char' to 'const char *'
Can you post a snippet of how you're using it?
-
Put his snippet in a loop.
while (fin) { if ( array[i] != ' ' ) .... }
-
Could you maybe just use a Regular PDA? Something along the lines of a Dell Axim, or maybe a Nokia N900 and just not activate it.
-
My name is Zach, and I just figured I'd introduce myself here. Mostly because the forums are slow right now..
Favourite game: Team Fortress 2
Favourite OS: n/a
Favourite console: Umm, last one I owned was the PS2. So let's go with that one.
Nationality: US
Accent: Probably Southern..
Sex: Male
Age: 18
Race: White American
Height: 6'1
Status: Unknown
Build: "Some extra baggage"
Favourite band: It changes
Favourite book: Eragon's a good one
Favourite author: ...
Favourite movie: I don't really play favorites.
Favourite director: n/a
Favourite TV Show: Chuck
Favourite actor: Robert Downey Jr.
Favourite actress: Natalie Portman
Favourite Pinup: Darren Kitchen
Favourite Comedian: n/a
Other hobbies: Motorcycling, Coding
Car: 1989 Ford Crown Victoria
Occupation: Student / IT Guy
-
Well I'm not very good at web design past the simple HTML side.
But I'd think you want PHP (http://w3schools.com/php/default.asp, http://www.php.net/manual/en/) or maybe PERL (http://www.perl.org/books/library.html).
-
You don't need the system command for that, just use the directory's path.
For instance, if you wanted to make a text file on the C: drive you would do something like:
fout.open ( "C:\mytext.txt" )
That will make a text file in that path (kinda straight forward :D )
But if you don't want it so exact, use something more like:
fout.open ( "..\mytext.txt" )
That will make the file in the directory above where your program is.
I hope that's what you needed.
C++ Convert Char To Int?
in Applications & Coding
Posted
Well all a cstring is is a character array. :P