Forum: C++ 28 Days Ago |
| Replies: 3 Views: 174 I think he wants to know how random numbers are generated by the built in function..... |
Forum: C++ 28 Days Ago |
| Replies: 2 Views: 187 Also, using the count var can tell u how many nodes u've added.
But make sure you decrease the count when u free the nodes. |
Forum: C++ 28 Days Ago |
| Replies: 2 Views: 187 use a global count variable to keep track of the nodes u are inserting.
if count = 0, then only add a node as head...
Getting the idea? |
Forum: C++ 28 Days Ago |
| Replies: 5 Views: 288 |
Forum: C++ 28 Days Ago |
| Replies: 5 Views: 288 specify a size while declaring the array:
List <GrabStuff> *bucket[52];
you can later 'push' elements to the end of the list. |
Forum: C++ 28 Days Ago |
| Replies: 5 Views: 288 try :
private:
List <GrabStuff> *bucket[];
instead of:
List <GrabStuff> bucket[]; |
Forum: C++ 28 Days Ago |
| Replies: 4 Views: 322 Hi.
Try this. Naive, but should give you some idea.
The way you architect the classes entirely depends on you.
#include<iostream>
using namespace std;
const int SIZE = 3;
class Matrix{... |
Forum: C++ 28 Days Ago |
| Replies: 10 Views: 387 This should work now. You gotta learn arrays, passing arrays to functions, returning arrays, etc. profoundly in order to master arrays.
#include <cstdlib>
#include <iostream>
#include... |
Forum: XML, XSLT and XPATH 29 Days Ago |
| Replies: 3 Views: 557 Hi.
First of all, you need to to decide the language u are going to use for the application.
And then if there is an API to allow your app to communicate with the web.
For example, check this c++... |
Forum: C++ 29 Days Ago |
| Replies: 2 Views: 236 Urmi, your problem seems to be API specific. There are many APIs/connectors/drivers that can be used to connect a language and a database. Search the docs of the API u are using. See if u can find... |
Forum: C++ 29 Days Ago |
| Replies: 10 Views: 387 BTW, cube of a number is different from its cube root, as pointed by jonsca. |
Forum: C++ 29 Days Ago |
| Replies: 10 Views: 387 Hi.
From what i see,
void square_array (double values [size])
{
int index;
cout << "\nThe square of the numbers are:\n";
for (index = 0; index < size; index++)
{ |
Forum: C++ 29 Days Ago |
| Replies: 3 Views: 278 hi,
Did u try writing the '\n' char instead of 'endl'? |
Forum: C++ 33 Days Ago |
| Replies: 4 Views: 213 |
Forum: C++ 33 Days Ago |
| Replies: 17 Views: 619 |
Forum: C++ 33 Days Ago |
| Replies: 4 Views: 247 |
Forum: C++ 33 Days Ago |
| Replies: 7 Views: 296 True. You actually actually schedule any exe(application), written in any of the languages for that matter. |
Forum: C++ 33 Days Ago |
| Replies: 17 Views: 619 See, if u want to compare fractions, why not covert the fraction into string and then compare the strings(the answer and the result) |
Forum: C++ 33 Days Ago |
| Replies: 17 Views: 619 oh. please ignore the above post :P |
Forum: C++ 33 Days Ago |
| Replies: 17 Views: 619 Ah. Floats cant be compared directly. And even if you get a result, the same code might not work on different runtime environments(cmpiler, hardware, etc). Therefore u need to set a margin. ... |
Forum: C++ 34 Days Ago |
| Replies: 1 Views: 166 Check
http://stackoverflow.com/questions/294343/read-and-write-rtf-files-with-c-qt |
Forum: C++ 34 Days Ago |
| Replies: 8 Views: 206 You can write:
# include <iostream.h>
void main ()
{int a=0;
int b=0;
int c=a-b;
char ans; |
Forum: C++ 34 Days Ago |
| Replies: 3 Views: 147 Hi.
Where is the problem?
Have u not understood what the program is?
Do you know c++(basic level)?
Cheers |
Forum: C++ 34 Days Ago |
| Replies: 7 Views: 296 You are definitely right. But i gotta justify my reply.
The poster wanted to ask if he can call exes at given time.
For this the he can write a code to call his exes.
The scheduler does schedule... |
Forum: C++ 34 Days Ago |
| Replies: 4 Views: 213 Hi.
This thread is related to designing/modelling. No two developers can create the same design/model. This issue is related to the ethics of ARCHITECTURE.
If u really want to create a high... |
Forum: C++ 34 Days Ago |
| Replies: 7 Views: 296 Yes you can.
See the system() function for more information.
Cheers |
Forum: C++ 34 Days Ago |
| Replies: 4 Views: 247 Try using this:
test obj;
test *t = &obj;
t->run();
instead of:
test* t; |
Forum: C++ 34 Days Ago |
| Replies: 4 Views: 247 Try using this:
test obj;
test *t = &obj;
t->run();
test* t;
t->run(); |
Forum: C++ 34 Days Ago |
| Replies: 17 Views: 619 Ah. Its a simple error on our hand.
We forgot that floats cannot be compared directly
0.33333 = 0.33 will not return true always and even it does, change in the execution environmet(compiler,... |
Forum: C++ 34 Days Ago |
| Replies: 17 Views: 619 I tried this:
Welcome to my math world and enjoy some training ......
Would you like to play the game? (y/n) => y
Which operation do you like to play? (+, -, *, /) => /
Give me an... |
Forum: C++ 34 Days Ago |
| Replies: 17 Views: 619 |
Forum: C++ 34 Days Ago |
| Replies: 1 Views: 181 Actually there is no need to initialise it to NULL as we do in case of normal pointers.
How ever, for more info, you can refer to the boost library docs.
Cheers |
Forum: C++ 34 Days Ago |
| Replies: 17 Views: 619 OK. I've tried some changes and seems it's working now(hopefully)
change your diviGame() function to
diviGame(intResult, answer, diviWins, diviLosses, diviTotal);
Change you divide()... |
Forum: C++ 34 Days Ago |
| Replies: 17 Views: 619 I see that the intResult variable is a double type.
There are issues with the types alright. |
Forum: C++ 34 Days Ago |
| Replies: 2 Views: 249 initialize bonus as:
double numtick, percentage, total,revenue,balance, bonus = 0; |
Forum: Python Nov 3rd, 2009 |
| Replies: 14 Views: 420 bravo!!! snipsat.
Dint know something like this exists in Python. |
Forum: MS SQL Nov 3rd, 2009 |
| Replies: 1 Views: 610 use getdate() function : insert into tab_name values(getdate()) |
Forum: PHP Nov 3rd, 2009 |
| Replies: 2 Views: 172 You can write a script to open a given dir(which will contain your mp3 files) and start uploading every file in it in loop.(refer to file operaions under PHP)
At the same time you can fill the song... |
Forum: Python Nov 3rd, 2009 |
| Replies: 14 Views: 420 just compare the inString with reversestring using the == operator |
Forum: C++ Nov 3rd, 2009 |
| Replies: 16 Views: 7,073 Hello superiors.
Maybe, the the poster(one who started the thread) was talking about DSLs....like Groovy. |