are you using borland c++?
Type: Posts; User: joseph0829
are you using borland c++?
if you want a clean display again add system("cls"); after system("pause");
try C++ how to program 5th edition dietel and dietel....
getch() this is a function that would not terminate your program unless you press something on your keyboard....
if you'd like to use an automatic inputs i would suggest using getch(), for example:...
I some problem to solve this is our 2nd mid-term quiz in my c++ class.
this is my current code:
#include<iostream>
#include<string.h>
#include<conio.h>
#include<ctype.h>
try converting 'Fin' with cin... try converting thw whole program into real c++ program...
'and" is not recognised by the compiler. you use &&(ampersand) or ||(or) .. && means the word and in english and || is or.. so to make it possible use || because && is only limited it the 1st...
hey, this is my final code for the subject::
#include<iostream>
#include<conio.h>
#include<stdlib.h>
using namespace std;
int cstay=0, cgarb=0;
if (numero[x]==numero[x]) { a=numero[x]; }
else if (numero[x]==numero[x]) { a=numero[x]; }
is this the correct way to compare entered numbers??
do i need to create another loop on the same...
goto sucks instead of "GOTO" use functions....such as main();
to exit you can use system("cls"); or exit(0); with a stdlib.h header file in the includes...
both syntax works on Dev-C++ 4.9.9 or...
Daved... try to check my codes it is correct for the first the?? the inputs part???
how do i compara the entered numbers so that the compiler would know which is the same and not the same??
Write a program that will read in N numbers, each of which is between 1 and 100, inclusive. As each number is read, print it only if it is not a duplicate of a number already read.
Specs:
Use...