i do not get an error when using <conio> and i am going to need it later on
Type: Posts; User: 74466
i do not get an error when using <conio> and i am going to need it later on
so i need to use <conio.h> as <conio> is not valid? Why then does my compiler (Borland 5.5) does not give an error?
ahhhh, i new i was forgetting something.
i usually do the whole cin.ignore line. is either of the two better to use?
I am havin a prob, i need to use
cin.get();
twice in the following code to get the effect, if i do not it just continues without waiting to press enter...i added //ERROR HERE at the part in...
well i followed the following path...
while(true) //To Open/make new game.
{
ifstream Rd("save.dat");
if(!Rd)
{
GameHistory();
MakeNewGame();
How do i do it?
guess it will be something like :
ofstream wrt("namenscore.dat");
wrt>>Name>>Cash;
and to recall
Now the next thing i am havin trouble with, something u gonna probably laugh about, but i always say, ask and be the fool, while learning something than keep your mouth and always wonder...
The...
wow.... you ppl just solved one of my problems, without even nowing it exists.... now the program i been workin on will be so much simpler
Thank you
Even i knew that... okay, so now i moved the
Card5=1+rand()%10;
into the loop i want to use it in, and it works, ;)
Now a nother question (I should probably have found this out earlier,...
Sorry, been on bout line 96
Card5=1+rand()%10;
when i call it later in a loop, it gives me the same value.
i use it here
I am busy building this black jack game, and been struggling with something...
I know its not programmed in perfect language, but i do try to only use the functions i know.
Now the problem i...
how do i o that?
i am currently workin through the thinking in c++ ebook 2nd edition, at the end of the 2nd chapter i get the following taski:::
Create a program that opens a file and counts the...
As you know, i am quite new at c++, i was just wondering if someone can help me with links... where i can find example codes to work through.
okay thanks....
so wich is better or is some better in some codes and the other in other codes?
that question is like asking what is the better computer, apple, amd, pentium..... Or like asking wich is the better mobile phone, sony or nokia?
The fact remains, i dont waste my time, so in my...
What is the actual difference in using
getchar();
and using
cin.get();
I just had to, i modified the code to the only way i know how to repeat a program,
#include <iostream>
using namespace std;
int main()
{
int percentage, i, x;
i am quite new at c++, just a few points,
if (n = 4) {
month = "April";
}
if (n = 3) {
month = "March";
}
I have both Borland 5.5 and visual c++ express and just been wondering wich is better to use?
i am new at c++ so i dont really know, but sinse alot of ppl mention visual c++ i went and got it
i use the 2nd, as i find it easier to see whether i have closed a brace or not.
thanks, a simple solution if adding
cin.get();
and i also forgot
cin.ignore();
my code
#include<iostream>
#include<cstring>
using namespace std;
int main()
{