CPP
学术科技 · 当前来自首页固化板块目录。
int a = 1; cout <<a++ <<' ' <<++a; 在DEV里,为什么这里输出的是2 3……
#include <stdio.h> #include <stdlib.h> char* get_string(){ char* s = (char*)malloc(sizeof(char)*11); int j; for( j=9; j>=0; --j ) s[j] = 'A'; s[10] = '\0'; retu…
近期在刷leetcode,然后碰到了关于全排列的问题,原题:https://leetcode.com/problems/permutation-sequence/ The set [1,2,3,…,n] contains a total of n! unique permutations. By listing and…
/************************************************************************* > File Name: test.cpp > Created Time: Thu 21 Jan 2016 02:36:57 PM CST ***************…
好久没有新帖。来娱乐一下 0. C/C++标准规定,源代码应当以ASCII编码保存在文件里,以便编译器编译。所以,把源代码用ms word编辑,存成.doc文件,或者用Windows画图板画一个源代码,如下图,都不是合法的C/C++程序。 1. C/C++标准规定,一个char占1字节,一个short或者int占2字节…
题目描述: Long time ago , Kitty lived in a small village. The air was fresh and the scenery was very beautiful. The only thing that troubled her is the typhoon. Whe…
我写了一个socket通信,通过sendto发送数据报,但是recvfrom收到的数据报不是收到的,而是发送的数据报。为啥呢
…
我想用c写一个接收机,无奈网上好多资料都是matlab写的,求大神给点基于c语言的教程和实例,感激不尽!!
为什么会生成失败呢
rt
新年一过,来年就是研二下了,今年寒假竟然成了弥补自己不足的最好时机。 恩恩,趁工作前好好踏踏实实学学~ 共勉。 1.26
求助各位大神。不知道怎么就错了。 vector<int> vector_init(int length, int range)//在0~range 的范围内产生length 个数 { vector<int>v; while (length--)v.push_back(rand() % range); return v;…
#include <cmath> #include <cstdio> #include <cerrno> #include <cstring> using namespace std; int main() { double result = sqrt(-1.0); int err = errno; printf("%…
求助各位大神~本人信通大三~最近想申请实验室或者公司实习。面试了一个公司直接让写代码 把结果发过去。小白跪的特别惨烈。虽然C++和数据结构都90多 代码能力好让我担心。想求助一下大家,有什么题或者网站可以是那种出比较经典的算法题,然后实践,然后有答案可以给出多种时间复杂度分析最优算法。(因为时间比较短,想高效的提高C+…