No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
This code : ...line 6... [code] #include "FileToVector.h" #include "VectorToIntArray.h" #include <string.h> #include <iostream> using namespace std; int main(int argc, char *argv[]){ char* in = argv[1]; FileToVector ftv = FileToVector(in); vector<char> v = ftv.fileToVector(); VectorToIntArray vt = VectorToIntArray(v); //int* a = vt.letterFrequencies(); cout<< v.size(); return 0; } [/code] produces this … |
|
It is meant to count the first two numbers in the array and then place them in ascending order, but sth wrong. Any idea? [code=assembly] Code segment jmp main add1 dw 9,3,2,7,1,4,2,5,8,1 main: mov si,0 call orderab exit: mov ax,04c00h int 21h orderab: cmp add1[si],add1[si+2] jle finish mov ax,add1[si] mov … |