Search:
Type: Posts; User: UpcomingChris
Search:
Search took 0.03 seconds.
-
November 20th, 2011, 09:14 PM
#include <iostream>
#include <string>
using namespace std;
int age;
string answer;
int main()
{
-
November 20th, 2011, 06:40 PM
Apologies, i seem to be in the wrong part, i'm using DevC++, But can you suply the solution to leave the loop?
-
November 20th, 2011, 06:34 PM
i didn't, I edited my post before any comment, to my knowledge, was left. And i thank'd him for the link. And i have a new problem!.
#include <iostream>
#include <string>
using namespace...
-
November 20th, 2011, 06:27 PM
Thanks for the link, now to get it to work with my code!, Going to get the hang of this sometime soon...
-
November 20th, 2011, 06:26 PM
I'm not extracting a cin straight into literals, I'm extracting the cin into a String, and then extracting the String into 'literals' aren't i?, or am i looking at it wrong?
-
November 20th, 2011, 06:16 PM
indeed it did, i edited it a little bit and it's all working, just don't know how to do the loop, Can you explain it to me?
#include <iostream>
#include <string>
using namespace std;
...
-
November 20th, 2011, 06:00 PM
Ok so i'm trying to write something very simple, I'm a complete newbi.
#include <iostream>
using namespace std;
int age;
char answer;
int main()
-
December 5th, 2010, 10:10 PM
i am creating a game of Rock, paper, Scissors,
#include <iostream>
#include <string>
using namespace std;
string a;
int b;
-
December 5th, 2010, 09:57 PM
i'm a idiot, so simple, forgot the else,
-
December 5th, 2010, 09:28 PM
Ok so i'm trying to make Rock, paper, Scissors,
Can someone give me a solution to this code?
if (a == "R")
{cout << "You chose Rock..\n";}
if (a == "P")
{cout <<...
-
December 2nd, 2010, 12:27 PM
What do you mean what is the type of answer 1?, Sorry i'm extremely new
i'll show you the whole code
#include <iostream>
#include <string>
using namespace std;
-
December 2nd, 2010, 12:13 PM
cin >> answer1;
if (answer1 == "B");
cout << "Correct, Well done\n";
else cout << "Wrong, The correct answer is B";
That is not working, Can someome point me in the right...
-
December 2nd, 2010, 12:02 PM
#include <iostream>
#include <string>
using namespace std;
string name;
string answer1;
int A;
int B;
int C;
int main()
-
December 2nd, 2010, 11:52 AM
I did this and it works.
#include <iostream>
#include <string>
using namespace std;
string name;
int main()
-
December 2nd, 2010, 11:49 AM
How do i output a newline?
-
December 2nd, 2010, 11:42 AM
#include <iostream>
#include <string>
using namespace std;
string name;
int main()
{
cout << "Hello, Please enter your name\n";
cin >> name;
cout << "Hello ";
-
December 1st, 2010, 04:13 PM
Thanks, i will check it out
-
December 1st, 2010, 03:44 PM
Ok, Do you know of a site that has Updated tutorials/ Lessons / Information that i can check out?
-
December 1st, 2010, 12:19 PM
Thanks, Don't have the spare money for any Books at the moment, Just going by the Internet when i need help
-
December 1st, 2010, 12:12 PM
#include <iostream>
#include <string>
using namespace std;
int main()
{
string a;
cout << "Welcome to my quiz..\n";
-
December 1st, 2010, 12:05 PM
It tells me that my anser is Wrong no matter what i enter, i don't know why, Any ideas?
-
December 1st, 2010, 11:37 AM
Ok, Still slightly confused on how to use that in this
#include <iostream>
#include <string>
using namespace std;
string a;
int main(void)
-
December 1st, 2010, 11:28 AM
ok, Don't mean to be a pain, But how do i use Strings in this code?
-
December 1st, 2010, 11:22 AM
i swapped the Single quotes for " and now it is giving me " ISO C++ forbids comparison between pointer and integer "
Like i said i'm a Pure beginner, so i will probably not understand anything...
-
December 1st, 2010, 11:13 AM
So i'm new to the world of C++, i'm trying to create some sort of Quiz, But i am stuck, My code is
#include <iostream>
using namespace std;
int a;
int main()
|
Click Here to Expand Forum to Full Width
|