DEV C++
文章平均质量分 77
倩倩_ICE_王王
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
函数指针和引用 2
定义函数 char maxc(chars,int n)实现找出字符串"This is a string."中最大字符t找到最大字符内存中存储的下一个字符并输出,也就是输出u using namespace std; #include #include<string.h> char maxc(char[],int); int main() { char str[]=“This is a...原创 2020-04-28 16:42:59 · 285 阅读 · 0 评论 -
函数指针和引用 1
定义函数 void exchange_value(int,int );//值作参数,函数参数值 void exchange_pointer1(int *,int *);//指针作参数1,交换指针指向内容 void exchange_pointer2(int *,int *);//指针作参数2,交换指针 void exchange_reference(int &,int &a...原创 2020-04-28 16:40:24 · 992 阅读 · 0 评论 -
指针(无输入)二维数组 3
原创 2020-04-25 16:19:13 · 192 阅读 · 0 评论 -
指针(无输入)定义 2
原创 2020-04-25 16:15:15 · 200 阅读 · 0 评论 -
指针(无输入)定义 1
原创 2020-04-25 16:11:10 · 176 阅读 · 0 评论 -
switch case计算个人所得税
using namespace std; #include int main() { float x,z; int y; do { cout<<“请输入月工资:”; cin>>x; if(x<=1800) { z=0; cout<<“个人所得税为:”<<z<<endl; } else { y=(x-1800)/1000; switc...原创 2020-04-24 19:09:05 · 3068 阅读 · 0 评论 -
新手C++入门范例 1## 矩形面积,周长
using namespace std; #include int main() { float x,y,z; //定义工作时间,单位工资,总工资 do { cout<<“请输入雇员的工作时间(h)和每小时的工资(元):”; cin>>x>>y; if(x<=40) //第一种情况的条件:工作时长不超过40小时 { z=xy; cout<<“...原创 2020-04-24 19:02:55 · 1675 阅读 · 0 评论
分享