请选择 进入手机版 | 继续访问电脑版
楼主: wwqqer
20436 70

[编程语言] [C++]100 Most Important C++ Programs   [推广有奖]

回帖奖励 34 个论坛币 回复本帖可获得 1 个论坛币奖励! 每人限 1 次(中奖概率 30%)
dragonbo 发表于 2015-8-6 10:31:29 |显示全部楼层 |坛友微信交流群
thank you

使用道具

ceofo 发表于 2015-8-8 10:37:48 |显示全部楼层 |坛友微信交流群
this is interesting, thanks

使用道具

Thanks for sharing

使用道具

ReneeBK 发表于 2015-8-9 05:48:02 |显示全部楼层 |坛友微信交流群
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. cout << "My name is Bakran Ajas" << endl;
  6. cout << "Class: 11-B ." << endl;
  7. return 0;
  8. }
复制代码

使用道具

ReneeBK 发表于 2015-8-9 05:49:08 |显示全部楼层 |坛友微信交流群
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int sum,a,b;
  6. cout<<"Enter value of a:"<<endl;
  7. cin>>a;
  8. cout<<"Enter value of b:"<<endl;
  9. cin>>b;
  10. cout<<"The sum of a and b is "<<(a+b);
  11. return 0;
  12. }
复制代码

使用道具

ReneeBK 发表于 2015-8-9 05:49:41 |显示全部楼层 |坛友微信交流群
  1. #include<iostream>
  2. #include<conio.h>
  3. using namespace std;
  4. int main()
  5. {
  6. int i;
  7. for(i=1;i<=100;++i)
  8. cout<<"Your Name"<<"\n";
  9. return 0;
  10. }
复制代码

使用道具

ReneeBK 发表于 2015-8-9 05:50:35 |显示全部楼层 |坛友微信交流群
  1. #include<iostream>
  2. #include<conio.h>
  3. #define SWAP(a,b) {int temp; temp=a; a=b; b=temp;}
  4. using namespace std;
  5. int main()
  6. {
  7. int x,y;
  8. cout<<"Enter two numbers:";
  9. cin>>x>>y;
  10. cout<<"x="<<x<<" y="<<y;
  11. SWAP(x,y);
  12. cout<<"\nx="<<x<<" y="<<y;
  13. return 0;
  14. }
复制代码

使用道具

ReneeBK 发表于 2015-8-9 05:51:58 |显示全部楼层 |坛友微信交流群
  1. # include <stdio.h>
  2. #include<iostream>
  3. # include <conio.h>
  4. using namespace std;
  5. int main()
  6. {
  7. int r,b,c,d, tot, avg;
  8. cout<<"ENTER STUDENT ROLL NO ; "<<endl;
  9. cin>>r;
  10. cout<<"ENTER FIRST SUBJECT MARKS ;"<<endl;
  11. cin>>b;
  12. cout<<"ENTER SECOND SUBJECT MARKS;"<<endl;
  13. cin>>c;
  14. cout<<"ENTER THIRD SUBJECT MARKS ;"<<endl;
  15. cin>>d;
  16. tot=b+c+d;
  17. avg=tot/3;
  18. cout<<"\n\n\t\t Lovely Professional University \n\n";
  19. cout<<"\t STUDENT RNO :"<<r<<endl;
  20. cout<<"\t FIRST SUBJECT MARKS :"<<b<<endl;
  21. cout<<"\t SECOND SUBJECT MARKS :"<<c<<endl;
  22. cout<<"\t THIRD SUBJECT MARKS :"<<d<<endl;
  23. cout<<"\t AVERAGE MARKS :"<<avg<<endl;
复制代码

return 0;
}

使用道具

condmn 发表于 2015-8-11 17:27:35 |显示全部楼层 |坛友微信交流群

使用道具

condmn 发表于 2015-8-11 17:28:22 |显示全部楼层 |坛友微信交流群
谢谢楼主的资料

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-3-28 20:52