I've tried googling for this for a while, and I've searched the forums, so an advance sorry if this has been asked many times :D.
Im looking to create an interface/gui to replace the console that...
Type: Posts; User: Blips
I've tried googling for this for a while, and I've searched the forums, so an advance sorry if this has been asked many times :D.
Im looking to create an interface/gui to replace the console that...
Thnx for all the suggestions and help. :D
strange that it compiles fine in one, and not another?
the #include "stdafx.h" is needed for the visual studio 2005 for some reason. nothing works with out it :S. What compiler are u using?
here is the exact error:
...
Well I changed the code around, and now I no longer get that error. Instead I get an error saying its going to overload the function. Heres my code. Error is coming from the string...
i knew this question would make me look dumb :( :D
thnx
I have a question that I know is going to make me look stupid. Im trying to round a number up, and I've included this #include <math.h>. I've been searching for a long time and I can't see why my...
ah thank you. oh ya, I forgot about int main :P I havent done any c++ for almost 2 years. Been doing mainly flash programming :D
Im doing c++ now in school, so I decided I should start doing some stuff at home. Im just messing around making a small program that will encrypt and decrypt text files, the only problem is Im...
Ah, thank you that did it. I had forgoten all about the cin.ignore() function :D
now back to the tutorials.
it doesnt matter if i set y to 0 or not , the same thing keeps happening.....
doesnt work:
#include <iostream>
using namespace std;
int main() {
int x;
int y;
oh ok.
still doesnt work...
so now the code looks like this:
#include <iostream>
using namespace std;
int main() {
int x;
int y;
i added return 0; afterwards and it still closes right away. Its wierd that it used to work....
im using microsoft visual studio .net as my compiler if it matters.
I have no idea what im doing wrong, cin.get() used to stop my programs but for somereason they nolonger do. Here is an example of when the cin.get() hasnt been stopping my code :
#include...