- 博客(6)
- 资源 (4)
- 收藏
- 关注
转载 结构体中定义string变量
我编写一个程序,在结构体中定义了一个string类型类型的变量:如下:typedef struct GS_DB_Event_Item_Stru{ string strFieldName; uint16 usType; //1 // 1 number, 2 string union { int32 nValue; char
2013-09-15 22:33:59 10941
转载 string类和c字符串
一、C字符串c字符串是char类型的数组。char str[MAX]1.在c++中并没有内置的机制保证程序不会出现数组元素个数超出数组大小的情况。cout2.cin.get():来读取包含空格的文本。这样的语法表示stream类的成员函数get(),而cin是这个类的对象。cin.get()的第一个参数是存放输入字符串的数组地址; 第二个
2013-09-15 22:26:42 1123
转载 链表的冒泡排序
// LinkListSort.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "stdlib.h"typedef int DataType;typedef struct node{ DataType data; struct node *next;}LinkNode;LinkNod
2013-09-15 22:23:08 813
转载 学生管理系统(带名字)
/*--------------------------------------------*/ /*The name of program:the system management of score*/ /*---------------------------------------------*/#include#incl
2013-09-15 22:19:55 2032
原创 链表的操作
#include "iostream"#include "string"#include "windows.h"using namespace std;typedef class stuff{public: int number; string name; class stuff *Next;}Node;//,*LinkTable;Nod
2013-09-15 21:59:56 818
转载 学生管理系统
linktable.hclass StudentInfo{public: char code[6]; float chinesescore; float mathscore; StudentInfo* next; StudentInfo* prior;};//添加学生信息,如果prior为NULL,则newinfo为头结点StudentInfo* A
2013-09-15 21:58:58 823
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人