Ah yeah, I saw where my typo was now.
Thanks for the correction
Type: Posts; User: And3rs
Ah yeah, I saw where my typo was now.
Thanks for the correction
aight matsp.
but try for yourself with the spelling thingy.
when printing out timer. the compiler suggest elasped, so.. not my fault ;D
Aaah I see, thanks for all the answers =)
What exactly did time(&now) do in the while(true) ??
because it works.
Thx scwizzo
I want to make a clock in realtime, but every time I print out a new time it never updates, how come?
Timer.h
#ifndef _TIMER_
#define _TIMER_
#include <ctime>
I tried to write the code using char arrays before, because the program did not let me write 2 named games.. cin.getline(list,xxx) fixed that problem.
But did not now how to do it with strings,...
true tabstop ^^
And thx raigne
what does getline really do? that is so different from cin
now it did, lol..
thanks! =)
well If I use that, the program will not delete a game
comon, some1? :P
Hi.
I wrote a program that lets me put in 2 games, then the program display the 2 games and ask me what game I would like to delete.
The problem occurs when im trying to write a game with two...
well no error message now.
but still no luck on the erase part.
meaning that it is not erasing.
how come?
AAAAAAAH
Im to tired for this, haha..
oh missed one post u posted.
well it´s complaining about that it is missing one ;
Im sorry if I seems retarted or something, but I still need a comma after
gList.erase((gList.begin(),+1))) ???
well ive tried the +1 thingy, that is the problem I had when I posted this
well I can just type
gList.erase((gList.end()));
except that is not erasing anything right now ^^
and ye, I posted in the wrong group ^^
hehe im so sorry tabstop. ^^
maybe im reading the error message wrong, it says that
erase(vector<..>::iterator) cannot convert parameter 1 from int to vector<..>::iterator with type string.
My...
well, I dont know if the +1 work like when I push_back a string directly to the gList, just trying my way through.
The compiler is complaining(like always!!) that I cant convert std::vector<string>...
And it should be const char* str_int = whatever
just tried different solutions
int main()
{
char list[100];
char list1[100];
vector<string> gList;
vector<string>::iterator game;
vector<string>::const_iterator myGame;
cout << "Please insert a game you would like...
Nope I did not :P
thx for the help