Help me Please

Hello!I am new in c++ and i want to make a program which is below.Could any one help me because i have to give assignment.Question is this below
1.write a program that reads an integer from user (within range 1-100).Then checks wether number is greater than,less than or equal to 50?
Thanks i will wait for answer.
Why not let us know what you have so far, and we can help you through it.
Could you paste a source code then i will understand easily the code.Thanks
i am totally new to c++ and i want a source code for above program and then i will compile it into turbo c++ 3.0.Plz if you give me right source code.I will be much thankfull to you.
We don't make your homework...
http://www.youtube.com/user/antiRTFM

if you're new to c++ (i am also), this is a good place to start, looking at a source code when u don't understand half of it is completely suicidal.

the video tutorials could teach a 5 year old the concepts and basic c++. Not what u asked for but hope it helps.

Btw, those videos can be a bit tedious at times ^^
i want source code if any one could give i want to examine source code and then i will extend my program.this is basic part of my program so please help.
closed account (zb0S216C)
jahanzab niazi wrote:
i want source code if any one could give i want to examine source code and then i will extend my program.this is basic part of my program so please help. (sic)

It's not going to happen. The administrator and Gaminic were explicit enough.

Wazzak
Not a problem:

1
2
3
4
5
6
7
8
9
10
#include "getNumber.h"
#include "testNumber.h"
#include <iostream>

int main()
{
  int number = getNumber();
  std::cout >> "The number is " << (testNumber(number)?"greater ":"less ") << "than " << 50;
  return 0;
}


Now extend it by writing getNumber.h and testNumber.h
Last edited on
Thanks a lot Intrexa.you helped a lot.
Topic archived. No new replies allowed.