CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: UpcomingChris

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    748

    Help with 'While-Loop'

    #include <iostream>
    #include <string>

    using namespace std;

    int age;
    string answer;

    int main()
    {
  2. Replies
    12
    Views
    1,450

    Re: Help a newbi

    Apologies, i seem to be in the wrong part, i'm using DevC++, But can you suply the solution to leave the loop?
  3. Replies
    12
    Views
    1,450

    Re: Help a newbi

    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...
  4. Replies
    12
    Views
    1,450

    Re: Help a newbi

    Thanks for the link, now to get it to work with my code!, Going to get the hang of this sometime soon...
  5. Replies
    12
    Views
    1,450

    Re: Help a newbi

    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?
  6. Replies
    12
    Views
    1,450

    Re: Help a newbi

    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;
    ...
  7. Replies
    12
    Views
    1,450

    Help a newbi

    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()
  8. Replies
    4
    Views
    1,037

    a few questions

    i am creating a game of Rock, paper, Scissors,


    #include <iostream>
    #include <string>

    using namespace std;

    string a;
    int b;
  9. Replies
    2
    Views
    621

    Re: Multiple If statments?

    i'm a idiot, so simple, forgot the else,
  10. Replies
    2
    Views
    621

    Multiple If statments?

    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 <<...
  11. Replies
    5
    Views
    666

    Re: If - Else help

    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;
  12. Replies
    5
    Views
    666

    If - Else help

    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...
  13. Replies
    4
    Views
    755

    Re: Very basic help

    #include <iostream>
    #include <string>
    using namespace std;
    string name;
    string answer1;
    int A;
    int B;
    int C;
    int main()
  14. Replies
    4
    Views
    755

    Re: Very basic help

    I did this and it works.




    #include <iostream>
    #include <string>
    using namespace std;
    string name;
    int main()
  15. Replies
    4
    Views
    755

    Re: Very basic help

    How do i output a newline?
  16. Replies
    4
    Views
    755

    Very basic help

    #include <iostream>
    #include <string>
    using namespace std;
    string name;
    int main()

    {
    cout << "Hello, Please enter your name\n";
    cin >> name;
    cout << "Hello ";
  17. Replies
    19
    Views
    1,830

    Re: Very basic code, Need help

    Thanks, i will check it out
  18. Replies
    19
    Views
    1,830

    Re: Very basic code, Need help

    Ok, Do you know of a site that has Updated tutorials/ Lessons / Information that i can check out?
  19. Replies
    19
    Views
    1,830

    Re: Very basic code, Need help

    Thanks, Don't have the spare money for any Books at the moment, Just going by the Internet when i need help
  20. Replies
    19
    Views
    1,830

    Re: Very basic code, Need help

    #include <iostream>
    #include <string>
    using namespace std;


    int main()

    {
    string a;
    cout << "Welcome to my quiz..\n";
  21. Replies
    19
    Views
    1,830

    Re: Very basic code, Need help

    It tells me that my anser is Wrong no matter what i enter, i don't know why, Any ideas?
  22. Replies
    19
    Views
    1,830

    Re: Very basic code, Need help

    Ok, Still slightly confused on how to use that in this


    #include <iostream>
    #include <string>
    using namespace std;

    string a;
    int main(void)
  23. Replies
    19
    Views
    1,830

    Re: Very basic code, Need help

    ok, Don't mean to be a pain, But how do i use Strings in this code?
  24. Replies
    19
    Views
    1,830

    Re: Very basic code, Need help

    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...
  25. Replies
    19
    Views
    1,830

    Very basic code, Need help

    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()
Results 1 to 25 of 61
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured