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 #3K
~10.7K People Reached
Favorite Forums
Member Avatar for Smartflight

Yes, I did a search, and I understand time() better than before, but I would appreciate personal help. Initially, I wanted to make a program/function that would randomly generate a number. Next, I wanted to limit it between two defined numbers. I came across rand() yesterday, and I couldn't get …

Member Avatar for Smartflight
0
262
Member Avatar for rmlopes

Hi everyone I've been looking into boost and c++ reference, as well as some googling, and I cannot find a way to get a thread's execution time, all options I found are related to system time and I need only the execution time for the thread (inside the thread's context). …

Member Avatar for JohnDiego
0
5K
Member Avatar for Hojjat.Mojallal

Hi this program calculate the differentiation of a polynomial by using a tree structure. It's assumed that the variable is x and valid operations are +, -, * and /. The valid operands are x and digits.The program doesn't check the validity! e.g. x*x*x-2*x+7 (valid) x*x*x-12*x+15 (invalid) But I need …

Member Avatar for Hojjat.Mojallal
0
625
Member Avatar for ivaylo91

Good evening to everyone. I have some troubles with a task I have to do. I need some assistance. Excuse me if I haven't searched thoroughly in the forum and there is a similar topic somewhere. Thank you! [B]Here's the issue:[/B] Compute the minimal and the maximal value of function …

Member Avatar for ivaylo91
0
2K
Member Avatar for vbx_wx

I am getting this error when compiling in Eclipse Indigo in windows: [code] mingw32-make all 'Building file: ../src/testing.cpp' 'Invoking: GCC C++ Compiler' g++ -I"c:\MinGW\lib\gcc\mingw32\4.5.0\include\c++\tr1\" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/testing.d" -MT"src/testing.d" -o "src/testing.o" "../src/testing.cpp" g++: no input files mingw32-make: *** [src/testing.o] Error 1 [/code] Can someone help me …

Member Avatar for vbx_wx
0
117
Member Avatar for nolife

hi , i have some problem when i want to build my solution , i use different dll and one of them when a build it , he tel me that fatal error C1083: Cannot open type library file: active.dll someone have come idea ?

Member Avatar for Cosmin871
0
321
Member Avatar for Arbus

i want an .exe file to be automatically executed if a folder having that particular file is opened,that's if you open the folder the file should get executed automatically.I want this to do in c++.can somebody help???

Member Avatar for ravenous
0
87
Member Avatar for waldchr

Hi I am writing a 2D game that only uses the arrow keys for input. I have done a search on this site fro ways to get input from the arrow keys and have come up with many solutions. However all of them use the getch() function. Normally this would …

Member Avatar for Cosmin871
0
628
Member Avatar for Cosmin871

I'm trying to compile the linux source code release of Axis2/C on MacOS but I'm getting errors at building axutil.h. I've tried to apply different patches without success, and I even found a website that explained the necessary modifications in the code and I made them but they still didn't …

0
56
Member Avatar for Icebone1000

First..Im very beginner with winsock and network programing.. Im doing a simple app that can act or as server or as client. What Im doing is that I open the app twice in the same computer, in one I choose server, and in the other client. With the server part, …

Member Avatar for lashatt2
0
815
Member Avatar for guguman

Hi guys, Sorry to ask a question as my first post. I'm totally new with c++ and I couldn't understand much about vectors. [CODE] case 1: { cout<<"Enter [S]avings Account , [C]hecking Account,[G]eneral Account"<<endl; cin>>selection; if ((selection == 'G') || (selection == 'g')) { acc.push_back(newAccount); cout<<"New account added"<<flush<<endl; break; }//end …

Member Avatar for SVR
0
135
Member Avatar for UKmason

[CODE]double distance (double angle, int mps, double earth_gravity) { double earth_distance; double speed_sqr = mps * mps; earth_distance = speed_sqr * sin(2*angle) / earth_gravity; return earth_distance; }[/CODE] its supposed to come out at = 3831.57 intead it ends up being =3155.52 anyone know what im doing wrong?

Member Avatar for Fbody
0
264
Member Avatar for scantraXx-

Hey guys. These functions are not working together correctly because of the true/false statements. Can someone please show me how I can fix the empty() function to work simultaneously with my other function provided? :S My getSmallest() function will not return the value due to the empty() function.. [code] bool …

Member Avatar for dkalita
0
118
Member Avatar for Rabex

i have to give a presentation on classes in c++ and i dont even know the abc of it...plz help how to get started and also few important points.

Member Avatar for Cosmin871
0
86
Member Avatar for adi.shoukat

Bellow is the piece of code that causes Segmentation Fault: (in Linux Segmentation Fault is usually due to illegal memory access) else if(intData==3) { FILE *fp; int ch; if((fp = fopen("file.txt","rb"))==NULL) { printf("Cannot open Source file.\n"); exit(1); } while((ch = (int)fgetc( fp )) != EOF) { printf("%s",(char*)ch); send(client, (char*)ch, 1,0); …

Member Avatar for Cosmin871
-1
85
Member Avatar for walter clark

Using Visual C++ (CLI type) I can place a rectangle of any width and color on the screen where the ends are defined by the calls to ->MouseDown and ->MouseUp. But I'd like to see the rectangle grow while I'm holding the mouseButton down. It seems like I should be …

Member Avatar for Cosmin871
0
100
Member Avatar for Cosmin871

I have created a win32 application in which you can draw different objects(lines, rectangles, etc.) and now I want to save the drawings as bmp files because I already now how to load bmp files. These is as far as I got: [CODE]void OnSave(HWND hWnd) { OPENFILENAME openFile; TCHAR szPath[MAX_PATH]; …

0
44