ok I was experiementing, and got the following working:
Random rand = new Random();
return rand.NextDouble; //returns a random number bw 0.0 and 1.0!
Thanks anyway!
Type: Posts; User: Lord CyKill
ok I was experiementing, and got the following working:
Random rand = new Random();
return rand.NextDouble; //returns a random number bw 0.0 and 1.0!
Thanks anyway!
Can anyone help me to generate random number generator between 0 and 1?
Thanks Quantum1024! I got it.
No. My program does unit testing. It is given the address the "to be tested file" and it tests it by compiling it and running it on values the user has given to test with! I hope i am more clearer...
I am runnig an exe file and thru that i want to compile another .cpp file which is not related to it in any way! How i am going to do this? Using Visual C++ and Windows XP!
How to get processor Mhz and ram?
Using Windows, Visual C++!
Yeah, that tutorial was excellent!But here is another 1 comming.
How can i compare the 2 dates/time strings?
No, I am using VC++ 6.0 and i searched in its help!
I have found it msdn but the implementation they have given is very complicated!!
How do I get a file's date and time stamp?
I have found the FileGetDate() function but can someone show me how to use it in a program!
Using Visual Studio 6.0.
Thanks for all ur inputs!
Having done that, got the following errors:
Linking...
EnumProcesses.obj : error LNK2001: unresolved external symbol "void __cdecl setrgb(int,int)" (?setrgb@@YAXHH@Z)
EnumProcesses.obj : error...
OK, i have specified the include and lib folders of the SDK, added psapi.lib to the settings, now i am getting this following error only:
LINK : fatal error LNK1104: cannot open file "psapi.lib"...
the process is the same in VC++ 6.0 but which folder/files should i specify?
even after entering the psapi.lib, i get the following error message:
fatal error C1083: Cannot open include file: 'psapi.h': No such file or directory
I have just installed the latest SDK, but...
Os= Windows XP
Compiler= Visual Studio 6.0
prog language= C++
How to link the library?
How to get psapi.h working?
Any one who wants a gmail account, post ur contact email!!
Should this works, let me know. add'.h'
#include <iostream.h>
To output simply '\', try
cout<<"\\";
yes!
Its the same concept as screen saver. my application should be activated when the machine is idle!
The Problem is:
My application monitors the cpu usage of local machine and whenever cpu usage goes below 10%, it will send the ip address to an already designated pc, lets say a server, and that...
Well the instructor has written following in the course outline!
Projects include but are not limited to:
• Developing/extending intrusion detection systems
• Developing new intrusion...
I am taking Network Securityand there is a porject which the students have to complete in 1 month time. Do u ppl can give me some idea?