Forum: C++ Sep 6th, 2008 |
| Replies: 15 Views: 2,360 You have missed a semicolon at the end of this line.
double gettestscores
You can't get your program to run should mean compiler errors or link errors. Next time post the error or warning... |
Forum: C++ Mar 24th, 2008 |
| Replies: 2 Views: 749 Change
Deck *dk; = new Deck; in the main() function
To
Deck *dk = new Deck; |
Forum: C++ Mar 21st, 2008 |
| Replies: 30 Views: 1,557 Either you didn't know that you should use braces, or you forgot.
for (int i=0;i<rollsize;i++)
{
switch (rolls[i])
{ // Forgot this
case 3:allresults[0] = allresults [0]+1;... |
Forum: C++ Mar 21st, 2008 |
| Replies: 1 Views: 480 Since you know the indexes, the number of indexes, and they are in sequence, all you have to do is,
// comment : Number of Indexes = N;
// comment : Index Array = Index[ N ];
Current_Index = 0;... |
Forum: C++ Mar 15th, 2008 |
| Replies: 4 Views: 611 cout << n1 << " + " << n2 << " = " << n1+n2 <<endl; |
Forum: C++ Mar 10th, 2008 |
| Replies: 1 Views: 704 Why don't you just enable displaying file extentions (http://www.fileinfo.net/help/windows-show-extensions.html)? |
Forum: C++ Feb 23rd, 2008 |
| Replies: 19 Views: 3,437 I have not used eclipse, so I don't know exactly what steps are needed. But I don't think there is any problem with your eclipse version. Looks like you are adding the source file to the .settings... |
Forum: C++ Feb 18th, 2008 |
| Replies: 2 Views: 1,815 time.h (http://www.cplusplus.com/reference/clibrary/ctime/) |
Forum: C++ Feb 8th, 2008 |
| Replies: 5 Views: 839 make the following changes to the set function.
void LList::set(int c, int val)
{
int i = size-1;
current = head;
while ( current != NULL )
{
if(i==c) |
Forum: C++ Feb 8th, 2008 |
| Replies: 12 Views: 12,925 I don't see anything wrong with checkIfMagic. But what is this function void ManiMatrix() in the first warning? Also make sure that Mani is not a misspelling for Main. |
Forum: C++ Feb 1st, 2008 |
| Replies: 1 Views: 3,086 Rules (http://www.daniweb.com/forums/announcement8-2.html).
And why are you spamming (http://www.daniweb.com/forums/thread107050.html) the board?
I am closing this thread. |
Forum: C++ Jan 26th, 2008 |
| Replies: 20 Views: 2,476 No he has not missed the point. You have. Arguments can be used to pass things both in and out. Passing by reference can be used to get things out. It is also memory efficient because another copy of... |
Forum: C++ Jan 26th, 2008 |
| Replies: 20 Views: 2,476 When you call the function calculation, you will have to pass the variable names that you want to get the output from.
int main(void)
{
int num;
int first, last, total;
while (num... |
Forum: C++ Jan 26th, 2008 |
| Replies: 20 Views: 2,476 What are the problems you are getting? Passing by reference can be used when you want to update the values in last and first. Is that what you want to do? |
Forum: C++ Jan 26th, 2008 |
| Replies: 20 Views: 2,476 You can do something like this.
int main()
{
int num;
cout << "Enter an integer (0 to stop): ";
cin >> num;
while (num != 0)
{ |
Forum: C++ Jan 25th, 2008 |
| Replies: 4 Views: 1,144 The functionality is the same. The only difference is that the maximum delay possible by the second function is greate than the maximum delay possible by the first function. This is because the... |
Forum: C++ Jan 24th, 2008 |
| Replies: 2 Views: 530 9999999999 cannot be stored in a long typed variable. You will have to use a double typed variable. However if you use double, you will have to change the condition inside the while statement. I will... |
Forum: C++ Jan 18th, 2008 |
| Replies: 1 Views: 1,421 Try the Borland C++ Builder 6 Webpage. Google for it. |
Forum: C++ Jan 18th, 2008 |
| Replies: 6 Views: 870 There is a spelling mistake with the function name.
showlist() and
showList() |
Forum: C++ Jan 18th, 2008 |
| Replies: 4 Views: 1,460 Thanks for the heads up. I know next to nothing about the UNIX utilities. |
Forum: C++ Jan 18th, 2008 |
| Replies: 4 Views: 1,460 You should copy test to a folder in your PATH variable, or add the folder that contains test to the PATH variable.
Refer the Adding to PATH variable section in this link... |
Forum: C++ Jan 18th, 2008 |
| Replies: 6 Views: 870 What error does the compiler give? At first glance I can't see any problem with the code. |
Forum: C++ Jan 17th, 2008 |
| Replies: 7 Views: 986 Right. Now we all know what an address book is. So what has this got to do with C++? |
Forum: C++ Jan 17th, 2008 |
| Replies: 21 Views: 3,966 Didn't your professor or anybody else at least tell you about this awfully fun site called http://www.google.com/ where you can type A-Star Algorithm... |
Forum: C++ Jan 16th, 2008 |
| Replies: 11 Views: 2,072 Read the replies in this (http://www.daniweb.com/forums/thread104979.html) thread. |
Forum: C++ Jan 16th, 2008 |
| Replies: 2 Views: 4,192 The icon is compiled into a .RES file, which is then linked to the executable file. Think of it like a static library file (.lib file). Once the library is linked and the executable is created, you... |
Forum: C++ Jan 16th, 2008 |
| Replies: 11 Views: 2,072 In the vclskin2.zip file that can be downloaded from the above link, there is a folder called help file. And in that Help file there are instructions on how to install it in C++ Builder 6. |
Forum: C++ Jan 16th, 2008 |
| Replies: 11 Views: 2,072 Try this (http://www.link-rank.com/download.htm) download page. Figure out the rest yourself. |
Forum: C++ Jan 16th, 2008 |
| Replies: 11 Views: 2,072 If this is a C++ Builder 6 Enterprise library, look for it inside the Lib folder of the CB6 installation directory. Also read the documentation for this TSkindata thing. |
Forum: C++ Jan 15th, 2008 |
| Replies: 2 Views: 1,762 Because TMemo is a wrapper for the Windows Edit Box, I don't think you will be able to have different formats for different parts of text in the same memo. I think you will do better using the... |
Forum: C++ Jan 13th, 2008 |
| Replies: 2 Views: 7,851 I don't see any problem except, you are using <iostream.h>.
What problems are you having? |
Forum: C++ Jan 13th, 2008 |
| Replies: 1 Views: 671 srand is a standard C++ function. So g++ also supports it. What is the problem you are getting? |
Forum: C++ Jan 11th, 2008 |
| Replies: 6 Views: 18,601 main function (http://en.wikipedia.org/wiki/Main_function_(programming)). |
Forum: C++ Jan 10th, 2008 |
| Replies: 2 Views: 525 Here (http://www.daniweb.com/forums/announcement8-2.html) |
Forum: C++ Jan 10th, 2008 |
| Replies: 1 Views: 500 No there is no specific forum for Windows Programming. You can ask in the C++ forum. |
Forum: C++ Jan 9th, 2008 |
| Replies: 9 Views: 979 Google for finding maximum in array C++ |
Forum: C++ Jan 9th, 2008 |
| Replies: 6 Views: 2,574 Hmm. Yeah. I felt something was not right there. Thanks. |
Forum: C++ Jan 9th, 2008 |
| Replies: 5 Views: 1,159 the same way.
system("dir"); |
Forum: C++ Jan 9th, 2008 |
| Replies: 5 Views: 674 Remove the return statement in line 10, and you will get the display. |
Forum: C++ Jan 9th, 2008 |
| Replies: 6 Views: 2,574 Haven't you written at least a "Hello World (http://en.wikipedia.org/wiki/Iostream)" program in C++ ? |