I am writting some code and wish to use a get/set for a class variable. This variable will be used within the main(), and also internally within the class. Here is some syntax to better explain the...
Type: Posts; User: Toonzaka
I am writting some code and wish to use a get/set for a class variable. This variable will be used within the main(), and also internally within the class. Here is some syntax to better explain the...
I see... Since the test value will remain if declared as a pointer, I want to know what happens to the mutex class which is called... Will the class also be destoryed, and if so do the pthead calls...
Alright I am going in circles here and cannot find a definitive answer to my question online... I have the following classes...
Class A:
#include classB.h;
classA :
{
public:
I have an Ada related question. I was wondering where I could post it on this forum?
Hah so obvious, thank you...
I was reviewing some code that a friend of mine wrote and was wondering what exactly this declaration did...
(This is only a snippet)
bool x;
bool y;
x = y !=0;
For my real application I do not have to worry about return types they are already set up within the function that will be doing the processing.
But its good to know that I can do that! Thanks...
As I mentioned the syntax might not be exaclty correct... The return type is an int. Also I understand definition and as mentioned I have researched this enough to have seen the definition plenty of...
Hello all and thanks in advance for reading!
I have been playing around with classes and now want to dive in the 'this' keyword. I have been looking over the internet and I cannot get a good...
You are never reseting second so it will never get past 1 minute...
After 59 seconds minute + 1? Nothing is setting equal. Look over your code its all simple mistakes. Also you do know about the...
Alright my bad; maybe next time instead of being snarky with me you should just answer my question and correct me. I am sorry that I did not see my typo. I understand the concept so thank you for...
How is it always true when i is being incremented? Maybe I should specify that direction will either be 1 or -1
so for instance if direction is -1...
i = 2
check i >= 1 || i <= 3 YES
"run...
Hey all really quick question...
I tried doing this...
for(i = 2; i >= 1 || i <= 3; i += direction)
can I do that boolean operation right within the for loop. It compiles ok but I forget if...
Hey all quick pointer question that I am not understanding...
The following is a quick code snippet of my full program.
void main()
{
**CODE**
int array[] = {10,20};
I am writing some code and I am getting stuck, here is the snippet.
int j = 1;
char r[7];
if(j=1)
r = "Degrees";
else
r = "Radians";
Hi, I am fairly new to C and have been teaching myself the language for now in prep. for the class I am taking in the Fall. I have been writing a prgram for my girlfriend and have encountered a...