#include "iostream.h"#include "string.h" class BankList{private: char Name[20]; char Account[20]; float Deposits;public: void banklist(char *Name,char *Account,float Deposits);&nb
原创 2009-04-23 10:49:33
455阅读
1评论
#include<iostream>usingnamespacestd;classDate{public:Date(int=1,int=1,int=2005);voiddisplay();private:intmonth;intday;intyear;};Date::Date(intm,intd,inty):month(m),day(d),year(y){}voidDate::disp
原创 2018-04-08 21:44:33
642阅读
1点赞
#include<iostream>usingnamespacestd;classStudent{public:Student(intn,inta,floats):num(n),age(a),score(s){}voidtotal();staticfloataverage();private:intnum;intage;floatscore;staticfloatsum;statici
原创 2018-04-15 22:22:42
508阅读
2点赞
#include<iostream>usingnamespacestd;classsale{public:sale(int,int,float);staticfloataverage();staticvoiddisplay();private:intnum;intquantity;floatprice;ints;staticfloatsum;staticfloatdiscount;st
原创 2018-04-16 22:30:31
643阅读
2点赞
#include<iostream>usingnamespacestd;classStudent{public:Student(intn,floats):num(n),score(s){}voidchange(intn,floats){num=n;score=s;}voiddisplay(){cout<<num<<""<<scor
原创 2018-04-22 21:35:21
552阅读
2点赞
#include<iostream>#include<string>usingnamespacestd;classBook{public:Book(stringna,stringau,intpage,floatprice):name(na),author(au),page(page),price(price){cout<<"书名:"<&
原创 2018-04-09 20:59:42
388阅读
1点赞
#include<iostream>usingnamespacestd;classTime{public:inthour;intminute;intsec;};intmain(){voidset_time(Time&);voidshow_time(Time&);Timet1;set_time(t1);show_time(t1);Timet2;set_time(t2);s
原创 2018-03-29 22:09:56
481阅读
我们先说下栈知识,先看下我们之前写文章栈,C语言实现如何自己实现一个栈堆和栈区别(转过无数次文章)这是一个栈这是我们把数据入栈操作这是数据出栈操作之前僚机号里面发了一个C+...
原创 2021-07-30 14:24:37
992阅读
我们先说下栈知识,先看下我们之前写文章栈,C语言实现如何自己实现一个栈堆和栈区别(转过无数次文章)这是一个栈这是我们把数据入栈操作这是数据出栈操作之前僚机号里面发了一个C+...
原创 2022-04-22 10:01:47
303阅读
原创 写代码篮球球痴 嵌入式Linux 2020-11-27收录于话题#C++13我们先说下栈知识,先看下我们之前写文章栈,C语言实现如何自己实现一个栈堆和栈区别(转过无数次文章)这是一个栈这是我们把数据入栈操作这是数据出栈操作之前僚机号里面发了一个C++实现栈文章,比较简单,基于上代码再升华下,我认为在熟悉快速写出一个栈代码,对大家在面试笔试中帮助是非常大。下面写了
c++
转载 2021-03-20 14:36:38
172阅读
编写一个简单C++程序每个C++程序都包含一个或多个函数(function),其中一个必须命名为main。操作系统通过调用main来运行C++程序。下面是一个非常简单main函数,它什么也不干,只是返回给操作系统一个值:[cpp]view plaincopyint main() { return 0; } 一个函数定义包含四部分:返回类型(return type)、函数名(function
原创 2013-09-16 15:05:00
334阅读
C(第一个C程序) 和 C++ (第一个C++程序)对比碰撞
原创 2019-05-16 21:02:36
810阅读
程序运行半停止工作,有没有谁帮我看看error在哪。原题:编一个程序,用同一个函数名对n个数据进行从小到大排序,数据类型可以是整型、单精度型、双精度型。用重载函数实现。我编程序:#include<iostream>#include<cstring>usingnamespacestd;intxu(int*p,intn){inti=0,j=0,t;for(i=0;i&l
原创 2018-03-22 22:05:15
627阅读
源代码:// 第一个C++程序// 包头文件#include <stdio.h>// 程序入口函数,包含两参数,具体含义以后int main(int argc, char* argv[]){  // 在屏幕上打印出 "Hello World" 并换行  printf("Hello World! \n");  return 0
原创 2012-04-15 20:10:07
627阅读
C++
原创 2023-11-20 09:14:08
50阅读
大家好,我是 shopeeai,也可以叫我虾皮,中科大菜鸟研究生。昨天我们成功搭建好了 C++ 开发环境,今天我们来介绍
原创 2024-06-28 11:55:27
127阅读
  一个使用C++写好程序c程序如何使用?  1. 采用 function (args)函数。 Function中利用C++类等模块实现相应功能。但是args中不包含与C++模块(类)相关类型,均为C能接受类型。如果需要返回本来需要vector保存结果,青年人网提示现在用char buff[LEN]保存。  2. 定义cFun
转载 精选 2012-05-08 17:47:27
491阅读
开启 C++ 生活 -- 第一个 C++ 程序
原创 2019-05-12 19:10:04
590阅读
c++ 实现date类
c++
c
原创 2016-03-05 21:54:00
1198阅读
之前用C语言实现栈代码,可以看看这个栈,C语言实现如何自己实现一个栈#include<iostream>usingnamespacestd;classIntStack{enum{ssize=100};intstack[ssize];inttop;public:/*构造函数,初始化top变量值*/IntStack():top(0){}voidpush(inti){stack[top+
原创 2020-12-28 14:12:05
688阅读
  • 1
  • 2
  • 3
  • 4
  • 5