TGTGInsighttelegram intelligenceLIVE / telegram public index
Tilbake til kanaler
Computer Programming avatar

TGINSIGHT CHAT

Computer Programming

@cpp_sirius

Education

- Programming Lessons - Daily problems - Guide books Murojaat: @asadbek_tolqinjonov

Abonnenter259Nåværende abonnenter
Sporede innlegg395Antall indekserte innlegg
Nylig rekkevidde5,829Sum av siste visninger
Siste innlegg

Siste innlegg

Side 7 av 33 · 395 innlegg

Publisert 6. des.

Guys! I tried my best to prepare this mock. However, I can not say the real exam will be exactly like this. So do not think this is a real exam

447 views

Publisert 6. des.

581 views

Publisert 6. des.

#include <iostream> #include <cmath> #include <fstream> using namespace std; int calculate(int, int); void swap(int* a, int* b) { *a = *a+*b; *b = *a-*b; *a = *a-*b; } void checkEven(int *num) { if (*num % 2 == 0) { *num = 0; } } void writeLog() { ofstream outputFile("log.txt"); if (outputFile.is_open()) { outputFile << "Finished"; outputFile.close(); } } void printMatrix(int matrix[2][3]) { for (int i = 0; i < 2; i++) { for (int j=0; j < 3; j++) { cout << matrix[i][j] << " "; } cout << endl; } } int main() { // bool flag = true; // int j=5; // for (j; j<10 and flag; j++) { // if (j==7) { // flag = false; // } // cout << j << " "; // } // not ! // or || // and && // ifstream inFile("input.txt"); // string word; // while (inFile >> word) { // cout << word <<endl; // } // ifstream inFile("input.txt"); // string word; // while (getline(inFile, word)) { // cout << word <<endl; // } // int x = 10; // checkEven(&x); // cout<<x; // p1 // int score = 75; // if (score>=60) { // cout<<"Pass"; // }else { // cout<<"Fail"; // } // p2 // int i = 10; // do { // cout << " "<< i; // i--; // }while (i>=7); // p3 // int a=3, b=4; // int result = calculate(a, b); // cout << result << endl; // p4 // int data[] = {10, 20, 30}; // int sum = 0; // for (int i=0; i<sizeof(data)/sizeof(int); i++) { // sum += data[i]; // } // cout << sum << endl; // p5 // bool is_raining = true; // double d=9.8; // if (!is_raining) { // cout<<"Sun"; // }else { // int x = int(d); // cout<<x; // } // double d = 9.17; // int x = round(d); // cout<<x<<endl; // p6 // int num = 42; // int *ptr = &num; // cout<<*ptr; // p7 // int **arr = new int *[5]; // arr[2] = new int[50]; // delete[] arr; // p9 // int val = 10; // int val2 = 20; // int const * const p = &val; // p = &val2; // cout<<&val<<endl; // cout<<p; // code 2 // int arr[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 9};; // int *ptr = arr; // int max = *arr; // for (int* i = arr; i < arr+10; i++) { // if (*i > max) { // max = *i; // } // } // int max2 = *ptr; // for (int* i=arr; i < arr+10; i++) { // if (*i>max2 and *i<max) { // max2 = *i; // } // } // cout << max2 << endl; // sorting // int n; cout<<"Enter the size of array: "; cin>>n; // int arr[n]; // for (int i = 0; i < n; i++) { // cin>>arr[i]; // } // int *ptr = arr; // for (int i = 1; i < n; i++) { // for (int j = 1; j < n; j++) { // if (*(ptr+j)<*(ptr+j-1)) { // swap(ptr+j, ptr+j-1); // } // } // } // int max2 = *(ptr+n-2); // cout << max2 << endl; // 3-usul // int arr2[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 9}; // int *ptr = arr2; // int max1 = *ptr; // int max2 = 0; // for (int i = 0; i < 10; i++) { // if (max1 < *(ptr+i)) { // max2 = max1; // max1 = *(ptr+i); // } // } // cout<<max2<<endl; return 0; } int calculate(int x, int y) { return x*x + y; }

429 views

Hashtags

Publisert 6. des.

Does anyone want to participate in review? Come to 205

356 views

Publisert 6. des.

We started📃 #mock

359 views

Hashtags

Publisert 6. des.

Students! We wil hold the exam in 205 MATH

368 views

Publisert 6. des.

Students! We wil hold the exam in 205 MATH

369 views

Publisert 5. des.

🗣COMPUTER PROGRAMMING MOCK 🎓 Attention Students! Due to final exam is near, we are organizing a mock exam from Computer Programming 1. 🗓 Saturday, 6th December ⏰2:00 PM 📍M.A.T.H building Please fill out the form here👇📃Form link Good luck🤞 @cpp_sirius👨‍💻

382 views

Publisert 5. des.

Should we conduct a lesson about File Handling? Yes ♥️ No, I don't have time 😐

359 views

Publisert 3. des.

🗣COMPUTER PROGRAMMING MOCK 🎓 Attention Students! Due to final exam is near, we are organizing a mock exam from Computer Programming 1. 🗓 Saturday, 6th December ⏰2:00 PM 📍M.A.T.H building Please fill out the form here👇📃Form link Good luck🤞 @cpp_sirius👨‍💻

378 views

Publisert 3. des.

🗣COMPUTER PROGRAMMING MOCK 🎓 Attention Students! Due to final exam is near, we are organizing a mock exam from Computer Programming 1. 🗓 Saturday, 6th December ⏰2:00 PM 📍M.A.T.H building Please fill out the form here👇 📃Form link Good luck🤞 @cpp_sirius👨‍💻

1,420 views

Publisert 2. des.

Codes of pointers

381 views
12•••5678910•••20•••30•••3233