上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 49 下一页
摘要: /*// 1 循环语句的老祖宗Goto语句#include <iostream>using namespace std;int main(){ int i= 1; if(i > 10){ //goto yes; } cout<<"*"<<i<<endl; i++; //goto yes; cout<<"程序结束"; cout<<"********\n";yes:; return 0;}*//*// 2 while语句#include <iostream 阅读全文
posted @ 2012-06-17 22:01 简单--生活 阅读(162) 评论(0) 推荐(0) 编辑
摘要: /*// 4 声明一个类#include <iostream>using namespace std;class Human{public: void GetStature(); void getWeight();private: int stature; int weigth;};int main(){ return 0;}*//*//6 定义一个对像#include <iostream>using namespace std;class human{public: void getStartue(){cout<<startue; } void setSt 阅读全文
posted @ 2012-06-17 22:00 简单--生活 阅读(199) 评论(0) 推荐(0) 编辑
摘要: /*// 4 什么是表达式#include <iostream>using namespace std;int main(){ for(int i=0; i<=60; i++) { if(i%6 == 0) { cout<<"\n"; } cout<<i<<"\t"; } return 0;}*//*// 5 赋值运算符与数学运算符#include <iostream>using namespace std;int main(){ int a=2; a = a *= 6; cout< 阅读全文
posted @ 2012-06-17 21:58 简单--生活 阅读(1068) 评论(0) 推荐(0) 编辑
摘要: //1 C++数据类型#include <iostream>int add(int x, int y){ return x+y;}int main(){ int i=1, y=2; std::cout<<add(i,y); return 0;}// 2什么是变量#include <iostream>using namespace std;int main(){ int a = 35; cout<<"a的值是:"<<a<<endl; cout<<"请输入数值:"<&l 阅读全文
posted @ 2012-06-17 21:56 简单--生活 阅读(237) 评论(0) 推荐(0) 编辑
摘要: /****************************************** * 解析XML格式的字符串 * @param string $str * @return 解析正确就返回true,否则返回false *******************************************/ function xml_parser($str){ $xml_parser = xml_parser_create(); if(!xml_parse($xml_parser,$str,true)){ xml_parser_free($xml_parser); retur... 阅读全文
posted @ 2012-06-08 15:00 简单--生活 阅读(304) 评论(0) 推荐(0) 编辑
摘要: //函数演示#include <iostream>void show(){ std::cout<<"中国 您好!";}int main(){ show(); std::cout<<"show函数调用完成"<<std::endl; return 0;}//函数传参#include <iostream>int show(int x, int y){ return x+y;}int main(){ int a, b; std::cout<<"请输入两个值:"<&l 阅读全文
posted @ 2012-05-31 20:23 简单--生活 阅读(180) 评论(0) 推荐(0) 编辑
摘要: //简单的屏输出小程序#include <iostream>int main(){std::cout<<"我的C++学习\n";int x;std::cin>>x; //接收值放入x变量中std::cout<<x;return 0;}//输出语句的使用#include <iostream>int main(){ std::cout<<"本年度公司业务表\n"; std::cout<<"首先是第一名许凡:\t"<<1000; std::cou 阅读全文
posted @ 2012-05-31 20:21 简单--生活 阅读(182) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xml 阅读全文
posted @ 2012-03-19 23:12 简单--生活 阅读(479) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xml 阅读全文
posted @ 2012-03-19 23:11 简单--生活 阅读(441) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xml 阅读全文
posted @ 2012-03-19 23:10 简单--生活 阅读(347) 评论(0) 推荐(0) 编辑
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 49 下一页
简单--生活(CSDN)