代码搜索结果

找到约 10,000 项符合 C++ 的代码

c++

#include #include #include using namespace std; #define ARRAY_SIZE 3 //array size //测试vala

c++

#include #include #include #include void main(void) { //声明变量 int i; char ch; FILE *fp1; //以写入方式打开d.dat文件 if ((fp1=fopen("

c++

#include main() { //声明字符数组和变量 char str[6]; int i; //从键盘上输入字符串 coutstr; cout

c++

#include main() { float a,b,s; coutb; //利用cin从键盘上为变量 a,b 赋值 s=a; if (a

c++

#include main() { //声明变量 int i,j; float t,a[5]; //从键盘上为数组赋值 for (i=0;i

c++

#include //定义结构类型 struct student { int num; char name[20]; float grade; }; void main(void) { //声明数组 int i,size; char str[]="This is a string.";

c++

#include main() { //声明字符型数组和指针变量 char str[10]; char *strip=str; //输入输出 coutstr; //用字符数组输入字符串 cout

c++

#include //以下是几个简单宏替换预处理指令 #define YES 1 #define PI 3.1415926 #define RAD PI/180 #define MESG "This is a string." //以下是主程序 main() { //以下各语句使

c++

#include #include using namespace std; //测试字符串(string)对象 void main() { //创建string对象 string s1,s2; //string对象的赋值运算 s1="One"; s2="Two"; cou

c++

#include #include //时间延迟函数 void Dtime(int dt) { time_t current_time; time_t start_time; // 得到开始时间 time(&start_time); do { time(¤t