Forum: C++ Jan 2nd, 2005 |
| Replies: 4 Views: 1,889 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 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 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 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 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 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 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 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 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 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 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 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... |