No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
|
Re:
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 … |
Re:
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). … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 ? |
|
Re:
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??? |
|
Re:
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 … |
|
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 … |
|
Re:
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, … |
|
Re:
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 … |
|
Re:
[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? |
|
Re:
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 … |
|
Re:
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. |
|
Re:
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); … |
|
Re:
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 … |
|
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]; … |