TGTGInsighttelegram intelligenceLIVE / telegram public index
← Computer Programming

TGINSIGHT SIMILAR POSTS

Finn lignende innhold

Kildekanal @cpp_sirius · Post #368 · 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; }

Hashtags

Resultater

4 lignende innlegg funnet

Generelt globalt søk

Tombkeeper

@tombkeepertk · Post #11671 · 26.03.2026, 13:06

# Markdown 测试 ## 代码块 ```c #include <stdio.h> int main(void) { printf("Hello, World!\n"); return 0; } ``` ## 表格 | 1 | 2 | | ---- | ---- | | 3 | 4 | via tombkeeper的微博

Hashtags

不要糖醋放椒盐

@saltplayerupdate · Post #1319 · 21.07.2025, 14:11

发布 SPW 后我才知道侧键可以在一些软件前进后退,因为我从来没用过 说来搞笑,大一的时候买了个 G102,一直用,最开始发现可以自定义 然后我的侧键一直是点击后可以输出文本: #include<stdio.h> int main() { return 0; } (当时初学 C 语言,经常写题目要打这些哈哈哈哈哈)

Hashtags

Telegram github commits and releases

@tgappsupdates · Post #19704 · 15.04.2026, 18:17

TelegramMessenger/tgcalls/experimental • 616810f • 38 files, +38/-0 build: add #include <cstdint> for GCC 15 compatibility TelegramMessenger/tgcalls/experimental • 24fd51b • 7 files, +2218/-19 feat: SCTP signaling improvements for reliable connection establishment Add writable gate for role-based SCTP handshake ordering: caller (isOutgoing=true) starts writable and sends INIT immediately; callee starts not-writable and defers Connect() until first received packet triggers setWritable(true). Implement CustomDcSctpSocket to fix WebRTC's missing timer backoff cap on t1_init and t1_cookie handshake timers. Without this, simultaneous-open under packet loss causes 20+ second stalls due to unlimited exponential backoff (1s, 2s, 4s, 8s...). With the fix: 400ms init, 750ms max backoff, yielding ~18 attempts in 15s and 100% success at 30% loss. Timer values are configurable via JSON custom parameters: - network_sctp_t1_init_ms, network_sctp_t1_cookie_ms, network_sctp_max_backoff_ms Squashed from: - feat: add SCTP writable gate for role-based handshake ordering - chore: whitespace cleanup in NativeNetworkingImpl - fix: CustomDcSctpSocket with t1 timer backoff cap for signaling SCTP TelegramMessenger/tgcalls/experimental • 212a874 • 1 files, +5/-0 fix: use-after-free in InstanceV2ReferenceImpl::writeStateLogRecords() writeStateLogRecords() captured a raw Call* pointer on the media thread and posted it to the worker thread. If stop() called _peerConnection->Close() (which destroys Call) between the post and worker thread execution, the worker thread would dereference a dangling pointer. WebRTC's call_ptr_ is Call* const and never nulled after Close(), so the existing null check didn't catch this. Fix: add _isStopped atomic flag, set before Close() in stop(), checked in the worker thread lambda before accessing call. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> #tgcalls

小小溪部落

@Tribebrook · Post #82 · 27.06.2025, 12:39

#Surge6.0 #Testflight Surge for Mac 6.0 Testflight发布 Surge Mac 6.0 采用全新订阅制,首次购买含 1 年维护订阅期,期满后仍可无限用最后版本,但要升级需续订。首发后一周内订阅可享 20% 折扣。 主要更新亮点: • 全新 Surge Gateway Mode:VMNET 虚拟网关取代原 DHCP Server,支持 IPv6 RA,更灵活高效。 • VIF 引擎重写:极致性能(M4 Mac Mini TCP 吞吐达 31 Gbps)。支持 AQM、TCP pacing、WireGuard 加速。 • Ponte 2.0:多通道穿透,支持自建 STUN,自动选路提升连接质量。 • Snell v5 协议:动态记录大小、UDP over UDP(QUIC 代理),可选出口网卡,systemd socket 激活。 • Smart Group 智能组支持 UDP 流量智能切换。 • 流量统计升级:按主机名统计,保留上月数据。 • Fake DNS v6:支持 IPv6 fake 解析,实现透明代理。 • Linked Profile:托管配置可用 #include 引用,方便本地改动与中心同步。 • 全新 macOS 界面,支持 HTTP 全头模式、wildcard、zstd 压缩等改进。 订阅价(1/3/5 设备):$19.99 / $29.99 / $45.99 每年;首发周内约 $15.99 起。Surge 5 用户若在 2024.7.1 后购入则自动获一年订阅。 完整发布笔记与价格细节见官方链接,想换代、追求高性能和复杂代理玩法的折腾频道用户可重点关注。