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
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 11
Member Avatar for defender_

Hi, i am having this problem with c structure pointers. this is snippet from a larger program in which i use temp* to assign values to different other pointers but whenever i update temp* it automatically updates the value of all other assigned pointers as well. pointer b points to …

Member Avatar for defender_
0
63
Member Avatar for defender_

i am writing a program with threads. it's a simple program in which user will enter how many number of thread he want to be created. what technique we use to create multiple threads ?? using for loop ??? suppose to run 3 threads... [code=c++] for(c=0; c<3; c++ ){ pthread_create(&thread[c], …

Member Avatar for kvprajapati
0
88
Member Avatar for defender_

I am using this code for simply reading from a text file but i want to put file pointer at the begining again when it reaches to the end of file. But my code below is not working. u can ignore extra bits of my code... like header files... :) …

Member Avatar for ArkM
0
108
Member Avatar for defender_

i am working on c++ server client example using sockets.... whenever i tried to run server 2nd time on the same port it fails !! ok... i know that port is not free and still opened for my previous program but i have used [icode]SO_REUSEADDR[/icode] but still it's not working …

Member Avatar for jencas
0
1K
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
Member Avatar for defender_

Hi, I am new to c++ programming.... i am working on a example and when ever i run the following code i get error "Server fifo failure" this is an example and should work alright but error making no sense... :( I am running this code using sun C++ compiler.... …

Member Avatar for defender_
0
149