07 2022 档案
摘要:#include <iostream> using namespace std; struct job { char name[40]; double salary; int floor; }; void show(job &j); template <typename T> void Swap(T
阅读全文
摘要:server.cpp客户端代码实现 1 #include "server.h" 2 #include "ui_server.h" 3 4 server::server(QWidget *parent) : 5 QWidget(parent), 6 ui(new Ui::server) 7 { 8 u
阅读全文
摘要:1 #include <iostream> 2 3 using namespace std; 4 5 struct free_throws 6 { 7 string name; 8 int made; 9 int attempts; 10 float percent; 11 }; 12 13 voi
阅读全文
摘要:#include <iostream> using namespace std; void swapr(int &a,int &b); void swapp(int *pa,int *pb); void swapv(int a,int b); int main() { int wallet1=300
阅读全文
摘要:void Widget::paintEvent(QPaintEvent *) { //创建画家类对象 QPainter p(this); //创建新画笔 QPen pen; pen.setColor(/*Qt::green*/QColor(0,255,0)); pen.setWidth(10); p
阅读全文
摘要:1 #include <stdio.h> 2 #include <string.h> 3 #define SIZE 81 4 #define LIM 3 5 #define HALT "" 6 void stsrt(char *string[],int num); 7 char *s_gets(ch
阅读全文
摘要:void fit(char *string,unsigned int size){ if(strlen(string) > size) string[size]='\0';}
阅读全文