Search:

Type: Posts; User: Cjof

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,658

    Well, thanks! That was it!:o I am...

    Well, thanks!

    That was it!:o




    I am just up to that :)
  2. Replies
    2
    Views
    1,658

    Random numbers are not in specified range

    My program behaves weird...

    I wanted to generate 10 random numbers from 1 to 100 each of them bigger than previous, using the while loop and function that returns a random number in specified...
  3. Replies
    6
    Views
    1,076

    Any idea how to fix it, to avoid future problems?

    Any idea how to fix it, to avoid future problems?
  4. Replies
    6
    Views
    1,076

    Well, I increased buffer to 900 and problem still...

    Well, I increased buffer to 900 and problem still persists...
  5. Replies
    6
    Views
    1,076

    cout doesn't execute

    I have a problem when I run my program with while loop, because two cout lines won't execute..

    Here is the code:


    #include <iostream>
    #include <string>
    using namespace std;
    int main()
    {
  6. Well, your solution is much more elegant, but I...

    Well, your solution is much more elegant, but I just don't like that program says that User2 is older when they are both of same age, so I added one more function to your solution:


    #include...
  7. I solved it this way #include ...

    I solved it this way


    #include <iostream>
    using namespace std;
    int main()
    {
    int user1;
    int user2;
    cout << "User1, how old are you:" << endl;
  8. Ok, thanks!

    Ok, thanks!
  9. Why?

    Why?
  10. If function is executed without it's condition is true

    Hi!
    I am trying to write a simple program that produces different outputs based on entered age of two different users.
    Program should tell who is older and behave different if both users are older...
  11. Replies
    5
    Views
    940

    Thank you!

    Thank you!
  12. Replies
    5
    Views
    940

    Ok, I realize that integer data type has...

    Ok, I realize that integer data type has limitations, but I can't figure out what program actually did to produce that result ( First + second number = -2112889775 )?
  13. Replies
    5
    Views
    940

    beginner calculator program problem

    Hello! I am beginner trying to learn c++. Yesterday I wrote a simple calculator program, but when I run it I get strange results. Here is the code:


    #include <iostream>
    using namespace std;...
Results 1 to 13 of 14