我有个程序,在某个端口接受tcp请求。
我用 test 2>temp.txt 执行我的程序,在程序 中,
。。。。
fprintf(stderr, “aaaaa”);
。。。。
fprintf(stderr, “bbbbb”);
发现 “aaaaa” 打印到了t……继续阅读 »
10年前 (2015-05-11) 1337浏览 0评论
0个赞
c语言
编译原理
词法分析
简单
改进
构造miniC语言的词法分析程序,程序要求能对输入的字符串流进行词法分析,并输出相应的单词。miniC语言的单词包括整数、标识符、分隔符、运算符和关键字,编制相应的词法分析程序。
标识符 ID = letter (letter|digit)*
……继续阅读 »
10年前 (2015-05-11) 1484浏览 0评论
0个赞
c语言
数据库
指针
前言:
本人不是c开发,对大学的c也忘得差不多了,突然有个需求要用c写,简直急死个人啊,网上查资料拼了代码,求指导!需求如下:
1 打开文件
获取文件夹下匹配成功的文件(昨天的文件)
2 获取内容,解析文件,判断普通用户/智能用户
普通用户字段6个,智能电表用户8个字段,全部转化成8个字段(拆分,合并)
3 打开数据库,将……继续阅读 »
10年前 (2015-05-11) 1547浏览 0评论
0个赞
搜索
dfs
c语言
Problem Description
The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie ……继续阅读 »
10年前 (2015-05-11) 1482浏览 0评论
0个赞
c语言
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
char get_first(void);
int main(void)
{
char a;
while ((a = get_first()) != EOF)
{
printf_……继续阅读 »
10年前 (2015-05-11) 1379浏览 0评论
0个赞
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
int main(void)
{
printf(“%d bits\n”, sizeof 2147483647*CHAR_BIT); // 显示3……继续阅读 »
10年前 (2015-05-11) 1064浏览 0评论
0个赞
请各位高手解答scanf_s(“%S”, ws, 10)和scanf_s(“%S”, ws[10]);的区别,原来一直以为两个没什么区别,但是今天写书上的习题的时候用scanf_s(“%S”, ws[10])则程序会出故障,然后说让调试程序。如果用scanf_s(̶……继续阅读 »
10年前 (2015-05-11) 1402浏览 0评论
0个赞
c语言
调试
//C Primer Plus
#include <stdio.h>
#include <string.h>
#define LIM 10
#define SIZE 81
void str_oriout (char *fs……继续阅读 »
10年前 (2015-05-11) 1258浏览 0评论
0个赞
c语言
二维数组
有一个txt里面存有不同列数的数,比如
1 2 3
4 5 6
1 3 34 4 98
13 21 213 234 45
1 2 3 4 5
0 0 0
12 34 56 78 9
2 3 4 5 6
9 8 7 6 5
............
1、2两行只有三个数4、5、6行有五个数7行三个数8、9、10行有五个数,后面也是……继续阅读 »
10年前 (2015-05-11) 1341浏览 0评论
0个赞