No, I know 5!! is not factorial of a factorial, but do the parentheses make a difference?
Type: Posts; User: manutd
No, I know 5!! is not factorial of a factorial, but do the parentheses make a difference?
OK, I'll be nice.
Yeah, so :)
Anyways, here's how the code should look:
#include <stdio.h>#include <conio.h> //Eww. See below.
void convert(int);
int main (void){
int x; //Sample X
...
I disagree. I think C++ is easy to learn as long as you take it in small steps. Once you've got the language basics, you can move on to more complex stuff, eventually bringing yourself up to the...
Have you read anything?
Oh, OK. My fault, I haven't used .NET in so long.
I assume the factorial of the factorial would be like: (5!)!
Methinks this is C#. This is a C++ forum. Mods, please move.
if ( a >= 0 && a <= 100
Here's the error. Correction bolded:
if ( a >= 0 && a <= 100 )
"dear experts"...oh dear. I'll say it: post your attempt and we'll help you with it. We are not here to do your homework for you.
This got sidetracked.
More important would be the upgrade to (as Prelude said) .NET 2003 or 2005. Then look at Enterprise.
I've done that once. Nothing very functional, but it was funny :)
aka
std::string a = "C:\\";
std::string b = "C:/";
Then put it in your posts. And don't make Prelude angry.
So? That's what you'll do in the real world, too.
21 Days is just ok. It gets a meh. Also, another free (and great) IDE is Code::Blocks.
PS: Prelude, I like the new logo.
Yes, assembly is hard to do, particularly anything useful. Kennedy would know ;)
Show us the code.
schildt?
Yeah, I started programming at 13. It's great to learn then because you have a solid base for the future.
Pick up a good book.
Also try
cout << endl << x + y << " " << x * y << endl;
Then remove the cout << "\n".
1.
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
Should be:
#include <cstdio>
#include <cstdlib>
2. Indentation.
3.
d.dbl=(double*)malloc(sizeof(*d.dbl));
You link the libraries in. Look at the sample's makefile.
Icons are introduced in the resource and put into the window in the main piece of code.
After the std::cout line insert std::cin.get().