char *nchar = "Testing 1, 2, 3\n";
Does this create a pointer to a char array on the heap that stores "Testing 1, 2, 3\n" ?
Type: Posts; User: Universe
char *nchar = "Testing 1, 2, 3\n";
Does this create a pointer to a char array on the heap that stores "Testing 1, 2, 3\n" ?
Ok. For starters...
int lbs(int lbs);
int oz(int oz);
float kg(int kg);
float g(int g);
float totalg(int totalg);
Have you tried making a 3 x whatever array?
int SomeArray[3][12]
Thanks for the explaination, guys. I think I have an understanding of what they are enough to get me pass this bit of code.
They aren't const data members, DISGUISED. They are only private...
I am current trying to learn C++ and I'm a little confused about a constructor I found in a book I am reading and was wondering if anyone can explain to me what something means
//this is the...
I am kinda new at C++ and I don't know anything about djgpp but try this.
#include <iostream>
int main()
{
std::cout << "heY";
return 0;
Is there a reason why I should use
int answer()
return 0
rather than
void answer()
it gets the same thing accomplished.
Thanks, it does look cleaner and more understandable.
oh and BTW... it compiled perfectly.
Traveller:
I see it now.. it should be
Well... I didn't get any compile errors when I compiled it.
I was thinking about this myself and I should have put that before my class.
Im not returning anything but the answer is passed...
I am new here and I am new to C++... been slowly picking things up. I created a Basic Calc program and I was wonder what you guys think on how its writen. I know its a little extreme for a...