Search Results

Showing results 1 to 12 of 12
Search took 0.01 seconds.
Search: Posts Made By: happyHour
Forum: C++ Jan 2nd, 2005
Replies: 4
Views: 1,889
Posted By happyHour
ok i re read that and it isnt clear...here is something a little more clearer!

#include <iostream>

using namespace std;

int proto(int, int);
int proto2(int);

int main()
Forum: C++ Jan 2nd, 2005
Replies: 4
Views: 1,889
Posted By happyHour
Hello just finished re- reading chapter 3...about functions... I learnt more of this from reading it when i was at home than when im at uni! Amazing!!

However I get a compile error saying

'not...
Forum: Computer Science Jan 1st, 2005
Replies: 8
Views: 9,474
Posted By happyHour
but your paying all that money for someone to teach you are you not??
Forum: Computer Science Jan 1st, 2005
Replies: 29
Views: 8,364
Posted By happyHour
hmm could you not do any for c? simple ones? , since like you lot im at uni and only get the standard sux ones out of the book
Forum: C++ Jan 1st, 2005
Replies: 23
Views: 8,347
Posted By happyHour
basically if a user enteres a - followed by the numbers then the statment will look for the sign and says that the sign is a -.

if its not a minus then the number enetered must be a plus
Forum: C++ Jan 1st, 2005
Replies: 23
Views: 8,347
Posted By happyHour
upon trying to make the code more powerful ....

int n = 0;
if ( string[n] < 0 )
{
cout << "The sign is: -" << '\n';
}
else
{
cout << "The sign is: +"...
Forum: C++ Jan 1st, 2005
Replies: 23
Views: 8,347
Posted By happyHour
intresting, is they anyway i can deeper understand these pointers? I get everything else i've been taught but hate to use pointers since i don't know how to use them... A nice tutorial with examples...
Forum: C++ Jan 1st, 2005
Replies: 23
Views: 8,347
Posted By happyHour
I get a load of garbage which is already in memory with this code:


char string;
const char *source ;

source = &string;

cin >> string;
Forum: C++ Jan 1st, 2005
Replies: 23
Views: 8,347
Posted By happyHour
Cool, that looks good, but if a user wanted to enter data into the array, since you've used a const pointer to an array of characters it wouldnt work would it? but upon taking out the const and...
Forum: C++ Jan 1st, 2005
Replies: 23
Views: 8,347
Posted By happyHour
umm, we havent been taught that way, is they not a for loop i could use to tell it to stop... ie

for (int i = 0; i !='.'; i++ )

i know that does work but something amounst those lines?
Forum: C++ Jan 1st, 2005
Replies: 23
Views: 8,347
Posted By happyHour
Thanks for the replies, just wondering if you can split up a string of numbers? ... say all the numbers before the decimal point...into string1
and all the others after the decimal point into string...
Forum: C++ Dec 30th, 2004
Replies: 23
Views: 8,347
Posted By happyHour
Intresting topic we have here, I'm wondering if theres a away to just print out the values after the decimal point.

This is what I thought -

If you entered it into a string you'd have some...
Showing results 1 to 12 of 12

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC