![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习c++程序设计
金蝶软件小李
为中华之崛起而读书
展开
-
c++输出i的值
#include<iostream> using namespace std;int main(){ int i = 0; for (i = 0; i < n;n=n+1) if (i = 9) break; cout << "i=" << i << endl; return 0;}using na...原创 2019-09-11 17:03:15 · 560 阅读 · 0 评论 -
c++输出hello world
#include<iostream>using namespace std;int main(void){ cout << "hello world" << endl; return 0;}原创 2019-09-16 13:06:04 · 420 阅读 · 0 评论 -
c++程序入门
// ConsoleApplication1.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。//#include <iostream>int main(){ std::cout << "Hello World!\n";}// 运行程序: Ctrl + F5 或调试 >“开始执行(不调试)”菜单// 调试程序: F...原创 2019-09-21 16:19:51 · 187 阅读 · 0 评论