No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
18 Posted Topics
In your opinion what is the fastest c++ compiler? I have found the gnu's compiler on my schools linux machines tobe very fast but i personally prefer the windows enviroment, is there any fast compilers for windows , something faster then g++ and mingw? | |
[code]return tree == NULL ? -1 : tree->height;[/code] I am trying to understand AVL trees but the one really nice example I found has a couple of methods defined like this. It is really pretty but I cannot read it? Can someone explain it to me? Or even just write … | |
Havent written any code in along time but took up a little project that requires some C++ , Just need a little help getting started. Does any one have the source code for a program that will Read file write what it reads to another file. Pick out specific tokens … ![]() | |
Re: try checking different cs departments teachers websites where they post they're home work not really practical stuff but challengeing and usually meant to show how to impliment concepts beyond what tutorials do. | |
Re: [QUOTE=winbatch]SunOS ... 5.8 Generic_108528-14 sun4u sparc SUNW,Sun-Fire-280R (Basically, solaris 8), using Forte 7 compiler.[/QUOTE] you should be able to write an algorithm for this problem. the problem does not lie in the executeable it lies in the class you are using, all it does is takes the amount of seconds … | |
HAving trouble with my pointer arithmetic, any ideas appreciated My orgional code [code] Activity p[51]; for ( int i = 1; i <= n; ++i ) { // Read the activity records. pert >> p[i].i >> p[i].j >> p[i].pt >> p[i].prt >> p[i].ot; pert.getline(p[i].desc,21); [/code] converted but wrong [code] Activity … | |
Re: Im using gcc and mingw and im not able to use curses ... is it non included library? I did try -lcurses | |
Re: Why not open test and close the file each time you write to it it high overhead and useless in the real world im sure but if you really want to know if the file is there that seems to be the best way to do it. Just so that … | |
Re: The tail end of your program makes little sense [code] if (char; Y = Y ); { ofstream myFile("c:/reciet.txt"); // Creates an ofstream object named myFile if (! myFile) // Always test to see if the file open { cout << "Error opening output file" << endl; return -1; } … | |
im includeing [code] #include <windows.h> // Header File For Windows #include <gl\gl.h> // Header File For The OpenGL32 Library #include <gl\glu.h> // Header File For The GLu32 Library #include <gl\glaux.h> [/code] how do i link this(the opengl headers) in the cmd console window im using mingw and g++ any ideas? | |
Re: will the txt file be static or do you need to account for changes in it during runtime? in other words do you need to addnew students to the program during run time. because its a class assignment, how touchy is your teacher when it comes to stuff like knowing … | |
Re: for C and c++ i use the mingw command line for compile and vis c++ for the editor, i personally find that the command line compiler is faster then the vis c++ compiler. (my opinion nothing more) | |
I know this is a stupid questions how do i send this : struct Activity { int i, // Beginning node number. j; // Ending node number. float pt, // Pessimistic time. prt, // Most probable time. ot; // Optimistic time. char desc[21]; // Activity description. } p[51]; into this: … | |
Re: [QUOTE=Narue]Usually after the flowcharts, in the design stage.[/QUOTE] Why wouldnt pseudo code be in all stages of developement starting with flowcharting? just curious. | |
Re: another thing you might want to do is comment your code, I find this incredibly usefull when im working on anything bigger then a hello world. | |
I have a few questions that I was hoping somone here could answer. 1. how can i pause my cout output? or is it possible to do it without calling a system command 2. is there a way to clear the console screen without makeing specific os comands? 3. does … |
The End.