samedi 3 janvier 2015

Program displays strange symbols as a Output [on hold]



<


include






using namespace std;
int main()
{
char name[20];
int a=0;
cin>>name[a];
while(!cin)

{
cin>>name[a];
a++;
}
int b=0;
while(b<20)
{
if(name[b]==' ')
{
name[b]='/0';
break;
}
cout<<name[b];
b++;
}
system("pause");
return 0;


} > /////////////////////////////////////////////////////// This is what it displays


2-5+5*5//input 2╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠Press any key to continue . . .//Output





Aucun commentaire:

Enregistrer un commentaire