Well yesterday was pretty tiring and nothing much happened!!!
I realised one thing though:
There are two mindsets to adopt while programming:
1. Make the implementation of the solution so simple such that there are obviously no flaws
2. Make the implementation of the solution so complicated that the flaws are not obvious.
Some people are adopting the second mindset!!! How Sad ...... for me.....!!!
I cracked up when one of my students told me that she has been working so much on a labsheet that she has even dreamed of programming.... I dnt know how to interpret that. Well since she did not say that 'Programming gave her a nightmare..' I'll assume that you only dream about pleasant things. So I prefer to assume that she is enjoying programming!!!
Had only one lecture and that was tiring enough!!! And on top of that, met Tigrooooo!!! Hoo Hoo Hoo, who was in a bad shapes and it worries me coz the state she was in is really bad. I sincerely hope she get well soon and starts bouncing around.....
Please get better n come back, i have no one else to tease!!!:'-)
Take care of yourself Tigrooo! HOo HOo HOo!!!
Got home at about half past six and hey... I had my microwaved Nachos with Peri-Peri and Mozarella..... it did not taste as good without Jalepenos... But anyways!!! Was still better that nothing.
Then went for the usual MSN/Facebook Session....... nothing much apart from that!!!
I did try the returning array/strings thing and i came up with the following code and it worked fine on Visual C++
void get_ary_A(int b);
void getName(char chr );
void tnt::getName(char chr)
return Name;/*return the string (pointer to char)*/
void tnt::get_ary_A(int b)
b[g] = a[g];
char gname, gname2;
channel.getName(gname);/*pass string to fn and it behaves as if its passed by ref*/
strcpy(gname2,channel.getptrName());/*returning the pointer to the array and copying result in a string*/
cout<<"Using the pointer\n";
cout<<"Using an array passed by ref\n";