Skip to content

Instantly share code, notes, and snippets.

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

\ splitline

[object Object]
View GitHub Profile
while(~scanf("%s",start)){
if(!strcmp(start,"EndMemDump")){
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%s",addr);
gets(type);
}
}
else{
//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:
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
#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++){
#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];