H
haijin.biz
why the following program using "char" gives me an infinite loop? If I
change char to int, it works fine.
#include <iostream>
using namespace std;
int main(int argc, char** argv)
{
for(char i=64; i<128; i++ )
cout<<i<<endl;
return 0;
}
change char to int, it works fine.
#include <iostream>
using namespace std;
int main(int argc, char** argv)
{
for(char i=64; i<128; i++ )
cout<<i<<endl;
return 0;
}