摘要:
#include <iostream> using namespace std; int add(int a, int b) { return a + b; } int sub(int a, int b) { return a - b; } typedef int(*pfunc_t)(int a, 阅读全文
posted @ 2020-08-12 14:58
天子骄龙
阅读(122)
评论(0)
推荐(0)
摘要:
在C语言中,goto是一条无条件跳转语句,它允许程序控制流跳转到同一函数内的某个特定标签处继续执行。使用goto语句时,需要在目标位置定义一个标签,标签由一个标识符后跟一个冒号(:)组成 #include <iostream> using namespace std; void func(bool 阅读全文
posted @ 2020-08-12 07:50
天子骄龙
阅读(279)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <string> using namespace std; class Student { public: Student(const string& name1, int age1, int no1) { name = name1; age 阅读全文
posted @ 2020-08-12 07:20
天子骄龙
阅读(938)
评论(0)
推荐(0)

浙公网安备 33010602011771号