Well, thanks!
That was it!:o
I am just up to that :)
Type: Posts; User: Cjof
Well, thanks!
That was it!:o
I am just up to that :)
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...
Any idea how to fix it, to avoid future problems?
Well, I increased buffer to 900 and problem still persists...
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()
{
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...
I solved it this way
#include <iostream>
using namespace std;
int main()
{
int user1;
int user2;
cout << "User1, how old are you:" << endl;
Ok, thanks!
Why?
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...
Thank you!
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 )?
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;...