Skip to content

Instantly share code, notes, and snippets.

View splitline's full-sized avatar
[object Object]

ꌗᖘ꒒ꀤ꓄꒒ꀤꈤꍟ splitline

[object Object]
View GitHub Profile
#include <stdio.h>
#include <string.h>
int main(){
char in[100];
int m,n;
while(scanf("%s%d%d",&in,&m,&n)!=EOF){
getchar();
char chr=getchar();
int flag=-1;
char s1[100],s2[100];
#include <stdio.h>
#include <string.h>
int main(){
char in[100];
int m,n;
while(scanf("%s%d%d",&in,&m,&n)!=EOF){
getchar();
char chr=getchar();
int len1=0,len2=0,flag=1;
for(int i=0;i<strlen(in);i++){
0000000000400804 <main>:
400804: 55 push rbp
400805: 48 89 e5 mov rbp,rsp
400808: 48 83 ec 10 sub rsp,0x10
40080c: 64 48 8b 04 25 28 00 mov rax,QWORD PTR fs:0x28
400813: 00 00
400815: 48 89 45 f8 mov QWORD PTR [rbp-0x8],rax
400819: 31 c0 xor eax,eax
40081b: c7 45 f0 00 00 00 00 mov DWORD PTR [rbp-0x10],0x0
400822: bf 55 09 40 00 mov edi,0x400955
//Fig.3.1:fig03_01.cpp
//Define class GradeBook with a member function displayMessage,
//cteate a Gradebook object, and call its display Message function.
#include<iostream>
using namespace std;
//GradeBook class definition
class Gradebook
{
public:
while(~scanf("%s",start)){
if(!strcmp(start,"EndMemDump")){
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%s",addr);
gets(type);
}
}
else{
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
double f(int n){
return n<=1?1:n*f(n-1);
}
int main(){
char str[100]={0};
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
char word[10][4]={{},{},{"ABC"},{"DEF"},{"GHI"},{"JKL"},{"MNO"},{"PRS"},{"TUV"},{"WXY"}};
int main(){
char in[105];
while(gets(in)!=NULL){
int len=strlen(in),flag=0,numl;
char num[8];
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
int mem[65540]={0};
int main(){
int N;
while(~scanf("%d",&N)){
memset(mem,0,sizeof(mem));
int k,addr,val_n;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
int getRank(int n,char *rank,char card[][3]);
int getSuit(int n,char *suit,char card[][3]);
int isAKind(int n,char *rank,char card[][3],int *checked);
int isFull(char *rank,char card[][3],int *checked);