Search:
Type: Posts; User: Rich2189
Search:
Search took 0.09 seconds.
-
March 15th, 2011, 06:33 AM
What have you done so far?
Break the problem down and tell us what part you are having trouble with.
-
March 10th, 2011, 05:58 AM
The second half of the sequence on a line is just the reverse. Try storing what you print into a vector, then print out the contents backwards.
-
October 31st, 2010, 06:10 AM
I'm going to guess "cycle".
-
November 7th, 2009, 06:24 AM
I guess it is this section of code which is causing that particular error, you cannot store a string literal into an integer.
Try declaring grade as type char and assigning it character literals....
-
October 31st, 2009, 04:15 PM
"What is the output type" circ ("What values do you need to calculate the circumference?")
{
return "The result of the calculation";
}
//Example:
-
October 31st, 2009, 12:48 PM
More for the large user defined types rather than any built in types.
-
October 31st, 2009, 12:25 PM
It is faster to pass by reference when dealing with larger data types, in this case it doesn't really matter as the size of an int and an int pointer are comparable.
You will come across uses...
-
October 31st, 2009, 11:24 AM
Post the code you have so far then indicate any specific issues you are having.
-
October 28th, 2009, 12:44 PM
Also you should not be multiplying your Big O functions, the steps you describe are consecutive.
-
October 28th, 2009, 10:23 AM
I started life as a VB programmer but prefer using the {|, &&, ^} operators. It is easier to distinguish between operators and operands at a glance.
-
September 24th, 2009, 06:19 AM
Would declaring the template class as a friend of A and B work?
template <typename T>
class NCommon
{
//...
protected:
~NCommon(){}
-
September 20th, 2009, 02:16 PM
You would be better off storing your digits in a vector of bytes rather than an array of bytes.
The vector can be dynamically resized and limited to however big you require.
Iteration through...
-
September 20th, 2009, 06:08 AM
Main must be written with a lower case m.
#include<stdio.h>
void main(void)
{
scanf("%*c");
}
-
September 20th, 2009, 05:32 AM
Since this is homework I will only provide hints.
This line:
root2 = (-b + sqrt(d))/(2*a);
Contains a maths error, or the line above does depending on the way you look at it.
-
September 19th, 2009, 02:06 PM
It it much harder to hide things from task manager. This project of yours sounds slightly fishy, for what reason would you want to hide an application to that extent?
If you have a good reason to...
-
September 19th, 2009, 08:49 AM
Navigate according to the following instructions:
Tools -> Compiler Options
"Settings" tab
On the left hand side tree view select "Linker".
-
September 19th, 2009, 04:56 AM
I think C++0x also includes a for each implementation which will be even quicker to type.
-
September 19th, 2009, 04:29 AM
What IDE are you using? Often there is an option to run the program with no console window without having to hide it with code.
-
September 18th, 2009, 11:49 AM
POD (Plain Old Datatype) - The fundamental data types such as bool, int and double. So an Object which contains only these types as members.
struct POD
{
bool b;
int i;
};
-
September 18th, 2009, 11:40 AM
I would recommend reading the introduction so you are familiar with what can be achieved with the STL. Then begin to learn specific parts as you come across problems that can be solved using...
-
September 18th, 2009, 05:57 AM
Awesome article! *Devours*.
This being the most important point I think; well following that advice will lead to the least amount of headaches.
-
September 17th, 2009, 06:13 AM
Just remember to think carefully about memory management when you start throwing exceptions.
-
September 16th, 2009, 12:02 PM
Good point.
Agreed, not the best.
-
September 16th, 2009, 05:43 AM
This was in my college text book if I remember correctly.
The first actual case of a computer bug was caused by a moth which had died in a computer case.
...
-
September 16th, 2009, 05:24 AM
It is not wise to use message boxes for printing results; in the unfortunate event you do get stuck in an infinite loop you're stuffed.
Most of us here will be good enough to avoid infinite loop...
|
Click Here to Expand Forum to Full Width
|