求助!C转换成C++程序
诸位好:请问如何将下面的程序转换C++程序
#include<stdio.h>
int main(void)
{
char c=127;
c=c+1;
printf("c=%d\n",c);
return 0;
}
诸位好:请问如何将下面的程序转换C++程序
#include<stdio.h>
int main(void)
{
char c=127;
c=c+1;
printf("c=%d\n",c);
return 0;
}
2006-03-23 16:40
#include <iostream>
using namespace std;
int main(void)
{
char c=127;
c=c+1;
cout<<(int)c<<endl;
return 0;
}
2006-03-23 17:23
2006-03-23 18:21
2006-03-23 20:36
2006-03-25 12:03