你们不能强行插入么= =
你们不能强行插入么= =
jillちゃん 发表于 2010-3-31 08:53 http://nwbbs.com/images/common/back.gif
去冒充初二生..?
初二花痴太多..不去..
不明真相的围观群众翻墙
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
/* frequency(const char *filename): the function reads a text file
* and writes the frequency table for each char in a new file.
* Param: filename -- the name of the target file
* Post-condition: the new file contains the frequency table
*/
void getFreq( const char *filename ) {
ofstream freqFile;
//open a file called "char_freqs.txt"
freqFile.open ("char_freqs.txt");
string line;
//read the target file
ifstream targetFile ( filename );
//check whether the target file exists
//print out "The file doesn't exist" if there's no such file
if (targetFile.is_open()) {
int i, size, value, array;
char ch;
//initialize the array to be 0
for ( i=0; i <= 255; i++ ) {
array = 0;
}
//check each line in the file
while (! targetFile.eof() ) {
getline ( targetFile,line );
cout << line << endl;//for testing only
size = line.size();
//check each character in the file, and count the frequency
//in the array
for ( i=0; i<size; i++ ) {
value = (int)line;
array++;
}
//check the number of new lines
//array++;
}
//print out each character and its frequency
for ( i=0; i <= 255;i++ ) {
ch= (char)i;
if ( array != 0 ) {
freqFile << ch << ' ' << array << endl;
}
}
//close the files
targetFile.close();
freqFile.close();
}
else cout << "The file doesn't exist" << endl;
}
最近熬夜写的C++的部分程序
其实我是来看妹子的。。。
听说工口U要追随暴风啊的脚步啊- -
日语课初三不给上那是美女老师的课阿阿阿阿阿阿
187楼的头像好可怕= =b
手抖..不小心回复了..
四菜一汤看妹子。。。这贴真火
#include
#include
#include
using namespace std;
/* frequency(const char *filename): the function reads a text file
* and writes the frequency table for each char in a new file.
* Param: ...
Tample 发表于 2010-3-31 09:04 http://bbs.newwise.com/images/common/back.gif
这是C++的语言?不是吧 貌似很多都是java关键字啊
虽然我们才学完循环结构 但是看得出来这里似乎有数列,对象和方法 不过没有看到main方法
你是学游戏开发的吧?
有日文課選修課但因為初三沒得選修者淚目..說起日文選修我真的狠不憤啊啊啊啊啊啊啊啊啊..爲什麽日文老師是美女..爲什麽初三沒得選修..(哭
demon_enjoy 发表于 2010-3-31 08:40 http://bbs.newwise.com/images/common/back.gif
原来这才是主要目的……
话说回来 我们现在学编程这老师倒是不难看…… 但是说话口音很让人痿
美女老師。。。從小學開始就沒見過這樣的生物。。。更別說什麽日語課了。。
原来这才是主要目的……
话说回来 我们现在学编程这老师倒是不难看…… 但是说话口音很让人痿
breaker 发表于 2010-3-31 10:53 http://nwbbs.com/images/common/back.gif
其实妹子不都看帅哥的么= =
那你让学校聘请个AV女优来教你日语吧
Av女优是正当职业别黑人家
一人女优全家光荣......
当年在语言学校时某哥们总结出来的
如果學校真的可以請一個的話,咱也完全沒有意見
java是参考C++来的= =
话说189的童鞋是BTEC专业的?
其实妹子不都看帅哥的么= =
hman 发表于 2010-3-31 10:58 http://bbs.newwise.com/images/common/back.gif
真正百合的妹子也是有的 比如论坛里的某某人就是。。。真的在现实世界里找妹子百合 分了一个之后居然又找到个新的。。。
我咋就找不到个合适的男人玻璃呢 还是说实在是因为男人有同性激素的太少了?
别露出职业本能就好-_,-