This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"//": "Font", | |
"font_size": 12.0, | |
"//": "Indentation Settings", | |
"tab_size": 4, | |
"translate_tabs_to_spaces": true | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 有近百名学生选修了某们课程,他们来源不同的专业班级,按班级,学号顺序打印学生的班级名称,学号和姓名。 | |
#include <stdio.h> | |
#include <string.h> | |
#define N 5 | |
#define LENGTH 10 | |
void s(); | |
void main() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 输入一个字符串,存放在字符数组中,然后将某个字符插入到该字符串的某个位置 | |
要求考虑输入的插入位置可能小于0(在首位插入),或大于字符串长度的情况(在尾部插入)等情况*/ | |
#include <stdio.h> | |
#include <string.h> | |
void main() | |
{ | |
char s[256]; | |
char ch; | |
int i, len, position; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 输入一个字符串,存放在数组s1中,然后再输入一个字符串s2,在字符串s1中查找s2,并将找到的s2 | |
删除,重复这一过程,直到删除了s1中包含的所有s2,最后打印删除了所有s2的字符串s1 */ | |
#include <stdio.h> | |
#include <string.h> | |
void main() | |
{ | |
char s1[256], s2[256], s3[256]; | |
int i, j; | |
printf("输入字符串s1:"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 绘制几何体的形状,省略绘图代码 | |
// main.m | |
// Shape-Procedural | |
// | |
// Created by Novnan on 14-2-15. | |
// Copyright (c) 2014年 Novnan. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
OlderNewer