Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #4K
~3K People Reached
Interests
read, listen to music, play games, travel everywhere.
Favorite Forums
Favorite Tags
Member Avatar for ttqtrang146
Member Avatar for gdkons
0
143
Member Avatar for ttqtrang146

These are my examples: [code] /*int WriteFile(const char* file_name) { fstream file; try { file.open(file_name,ios.out); file << "67"; //file << "I miss you very much."; file.close(); } catch(exception& e) { cout << e.what(); return 1; } return 0; }*/ /*int ReadFile(const char* file_name) { fstream file; file.open(file_name,ios.in); if(file.is_open()) { string …

Member Avatar for Nick Evan
0
110
Member Avatar for Ombegoh

Hi guys, Am kind of looking for web designers, programmers and system developers and I hope am @ the right place. I am good in the .Net frame work esp ASP & Visual Studio but that doen't rule me out in VB6. I also like using PHP in rapid website …

Member Avatar for ttqtrang146
0
93
Member Avatar for TheBattlizer

I'm trying to declare a structure definition in a header file so I can use the structure in other files, however I get the error: error C2011: 'Points' : 'struct' type redefinition from the file where the structure definition is declared. The structure is only defined in that header file. …

Member Avatar for ArkM
0
2K
Member Avatar for ttqtrang146

I've got code sections which write and read binary files. But when I print data reading from file. It appears unnecessary characters. [code=cplusplus] int WriteFile(const char* file_name) { fstream file(file_name,ios.out|ios.binary); if(file.is_open()) { string data_block="I don't understand!\nAdd one line"; file.write(data_block.c_str(),data_block.length()); file.close(); cout << data_block << "(" << data_block.length() << ")" << …

Member Avatar for ttqtrang146
0
176
Member Avatar for ttqtrang146

I've got following code section: [code=cplusplus] #include "stdafx.h" int main() { string str; cout << "Enter file name: "; getline (cin,str,cin.widen('\n')); char* file_name=new (nothrow) char[str.length()]; if(file_name==0) { cout << "Error: Memory could not be allocated!\n"; } else { strcpy(file_name,str.c_str()); WriteFile(file_name); ReadFile(file_name); [COLOR="Red"]delete[] file_name;[/COLOR] } getch(); return 0; } [/code] When …

Member Avatar for ttqtrang146
0
130