Forum: C Feb 24th, 2005 |
| Replies: 3 Views: 1,944 This book has the solution you want, it's also available online
http://images.amazon.com/images/P/0471250600.01._SCLZZZZZZZ_.jpg |
Forum: C++ Feb 24th, 2005 |
| Replies: 1 Views: 3,049 Round robin(RR) - Are you taking an OS class? This is not hard man,
just think a little about it. You've got 10 processes, and you wanna slice the time to 2 units and switch between them to make it... |
Forum: C++ Feb 24th, 2005 |
| Replies: 2 Views: 2,648 add this to the top of your file
#include <fstream> |
Forum: C++ Feb 19th, 2005 |
| Replies: 19 Views: 4,050 OMG, man you're so full of it. |
Forum: C++ Feb 19th, 2005 |
| Replies: 19 Views: 4,050 Yeah just like this
http://www.daniweb.com/techtalkforums/thread18857.html
and you call it 'in your experiance'???
maybe you should know we we are talking about. It's not our job to teach what... |
Forum: C++ Feb 19th, 2005 |
| Replies: 8 Views: 5,426 Oh man, you even don't know the down side of "goto" stmt in C++? Crab, well then i should not waste my time replying to your posts. |
Forum: C++ Feb 19th, 2005 |
| Replies: 19 Views: 4,050 Narue,
I have some respect for you, don't make me lose it. Goggle out the benchmark scores for all C++ compilers. It's been proven, I don't need to prove it again. Oh well,... |
Forum: C++ Feb 18th, 2005 |
| Replies: 8 Views: 5,426 tuskyballer ,
Never ever ever use goto stmts. |
Forum: C++ Feb 18th, 2005 |
| Replies: 19 Views: 4,050 The best
http://www.intel.com/software/products/compilers/cwin/
Good luck. |
Forum: C++ Feb 17th, 2005 |
| Replies: 3 Views: 4,838 Lazy way to do it:
First strore the file name and location in a string. Append to this string 'del ' at the beginning. Execute the 'System' stmt on that string. |
Forum: C++ Feb 16th, 2005 |
| Replies: 6 Views: 6,408 You need both
#include <iostream>
#include <iomanip>
I/O ops defined in STD namespace .... I/O manipulators are deined in iomanip |
Forum: C Feb 16th, 2005 |
| Replies: 2 Views: 2,458 You need Microsoft .NET Framework installed on the other machine not VS. Download and install this on your second machine:... |
Forum: C++ Feb 16th, 2005 |
| Replies: 6 Views: 6,408 Man you've done most of the work, just call your function in main, here is the code with some changes:
#include <iostream>
#include <iomanip>
const float PI= 3.14;
float circle_area(float... |
Forum: C++ Feb 16th, 2005 |
| Replies: 8 Views: 5,649 My guess then is that rand is defined in the file space - glut.h, check it out and you'll see .... |
Forum: C++ Feb 16th, 2005 |
| Replies: 8 Views: 5,649 #include <cstdlib> is declared in glut.h so when u declare it first it wont be redefined in glut.h , [#ifndef ... #def ... #endif] |
Forum: C++ Feb 16th, 2005 |
| Replies: 8 Views: 2,187 Specify a problem, there are a lot of them, and will help. |
Forum: C++ Feb 16th, 2005 |
| Replies: 8 Views: 5,649 Try
std::rand();
Here is how i used it
#include <iostream>
#include <cstdlib>
#include <GL/gl.h>
#include <GL/glu.h> |
Forum: C++ Feb 16th, 2005 |
| Replies: 8 Views: 5,649 In C++, rand() is defined in
#include <stdlib.h>
I used rand() and all i included is
#include <GL/glut.h> |
Forum: C++ Feb 15th, 2005 |
| Replies: 8 Views: 5,649 Oh boy,
Make sure you include the .h files in your project - add them to your project.
Copy "glut32.dll" to your C:\WINDOWS\system\
Copy "glut32.lib" to your C:\Program Files\Microsoft Visual... |
Forum: C++ Feb 9th, 2005 |
| Replies: 9 Views: 1,888 Dave,
Be nice to people, either answer their Q's or simply dont make fun of them, please.
-----------------
Save this in a file called Rationall.h
#include <iostream>
using std::cout;
using... |
Forum: C++ Feb 9th, 2005 |
| Replies: 6 Views: 7,066 Use
System::Math::Round(3.44, 1);
INTEL |
Forum: C++ Feb 7th, 2005 |
| Replies: 6 Views: 14,138 eventPtr[0] is a variable associated with a memory address.
Pointers store the address of some other variable associated with a memory address. We dereference the pointer to get the value that is... |
Forum: C++ Feb 7th, 2005 |
| Replies: 3 Views: 2,326 Easy,
1. You have 'front' defined as pointer and you're using the '.', think of '->'
2. You are accessing name, but name is defined in class 'info'
i could fix it but it looks like you'll get... |
Forum: C++ Feb 7th, 2005 |
| Replies: 4 Views: 2,628 Borland SUX, sorry Borland but exe size is way too huge. USE ICL |
Forum: C++ Feb 7th, 2005 |
| Replies: 4 Views: 13,859 Pass arraycounter as a reference or pointer or do this
if( menuvalue == 1 )
{
addholder (holder, arraycounter);
++arraycounter
};
and remove the other one in the function. |
Forum: C++ Feb 6th, 2005 |
| Replies: 4 Views: 3,186 |
Forum: C++ Feb 6th, 2005 |
| Replies: 4 Views: 13,859 USe do-while look like this:
do
{
cout << "Select a option\n";
cout << " 1 Enter a new holder\n";
cout << " 2 Print holders information\n";
cout << " 3 Find... |
Forum: C++ Feb 5th, 2005 |
| Replies: 2 Views: 2,355 If you're used to windows, use Cygwin or Dev-C++ to write C++ aps using GNU compiler under windows.
http://www.cygwin.com/
http://www.bloodshed.net/devcpp.html |
Forum: C++ Feb 5th, 2005 |
| Replies: 5 Views: 4,191 Use CodeWarrior Development Tools for Windows V8.0 to develop your project. It should be easy. |
Forum: C++ Feb 5th, 2005 |
| Replies: 4 Views: 3,186 HERE ................
#include <iostream>
#include <vector>
int main()
{
using namespace std;
vector< pair<int,double> > Dim;
vector< pair<int,double> >::iterator itr,largest; |