Forum: Ruby
Aug 9th, 2008, 11:04 AM
|
|
Replies: 7
Views: 182
Re: Ruby syntax is hard to digest
There is definitely a jump from one style to another. However, I came from a C background and eased right in to Ruby. I liked the fact that 'everything was an object'. I like its dynamic nature. I...
|
Forum: C++
Aug 5th, 2008, 6:14 AM
|
|
Replies: 5
Views: 174
Re: Function templates...
I dont think that templates are going to help you here.
What you are doing is trying to return multiple different values/types from the same function. void will never be a bool will never be a...
|
Forum: Python
Jul 21st, 2008, 11:29 AM
|
|
Replies: 10
Views: 384
Re: python vs ruby?
I understand what you are saying. You are missing the point.
If Python has the best GUI toolkit and library base but you dont undertand (or cant use) the tools then they are useless to you.
You have...
|
Forum: Python
Jul 21st, 2008, 6:03 AM
|
|
Replies: 10
Views: 384
Re: python vs ruby?
You are asking the wrong questions. Ruby/Python/C/Assembly dont excel in anything. They just are. Some things are easier done with one than another. However, if you are more comfortable with C and...
|
Forum: C++
Jul 17th, 2008, 1:11 PM
|
|
Replies: 11
Views: 460
|
Forum: Other Programming Languages
Jul 10th, 2008, 4:23 PM
|
|
Replies: 7
Views: 215
|
Forum: C++
Jul 10th, 2008, 5:50 AM
|
|
Replies: 11
Views: 460
|
Forum: C++
Jul 9th, 2008, 6:46 PM
|
|
Replies: 11
Views: 460
|
Forum: C++
Jul 9th, 2008, 6:02 AM
|
|
Replies: 11
Views: 460
|
Forum: Coder's Corner Lounge
Mar 18th, 2008, 12:23 PM
|
|
Replies: 25
Views: 749
|
Forum: C
Mar 12th, 2008, 6:26 AM
|
|
Replies: 15
Views: 731
|
Forum: C
Mar 3rd, 2008, 4:41 PM
|
|
Replies: 2
Views: 161
Re: if and else statements
You have a couple of problems with the code you are using. I have bolded a couple of areas in your example that you should look at.
main should always be declared as returning an int. You declare it...
|
Forum: Coder's Corner Lounge
Oct 25th, 2005, 9:47 PM
|
|
Replies: 71
Views: 1,558
|
Forum: C
Oct 25th, 2005, 8:45 AM
|
|
Replies: 5
Views: 242
|
Forum: Coder's Corner Lounge
Oct 24th, 2005, 11:06 PM
|
|
Replies: 111
Views: 2,635
|
Forum: Coder's Corner Lounge
Oct 24th, 2005, 10:28 PM
|
|
Replies: 71
Views: 1,558
|
Forum: C++
Oct 22nd, 2005, 11:33 PM
|
|
Replies: 53
Views: 1,491
There's quite a bit of C++ to understand.
The...
There's quite a bit of C++ to understand.
The answer to your question depends, really, on what you want to do.
Are you going to be working mostly with text processing? Then I would suggest you...
|
Forum: Coder's Corner Lounge
Oct 22nd, 2005, 11:25 PM
|
|
Replies: 9
Views: 254
|
Forum: C++
Oct 19th, 2005, 5:53 PM
|
|
Replies: 11
Views: 379
|
Forum: C++
Oct 17th, 2005, 9:59 PM
|
|
Replies: 15
Views: 358
@DaWei
I understand that, especially on...
@DaWei
I understand that, especially on proprietary embedded systems, you may design any implementation necessary to complete the task. Often the cost of molding something new to fit your needs is...
|
Forum: C++
Oct 17th, 2005, 8:08 PM
|
|
Replies: 15
Views: 358
With the number (and variety) of OS' out there,...
With the number (and variety) of OS' out there, do you think there is even reason nowadays to design a new one?
What would be the purpose/advantage not provided by an already reliable source?
Don't...
|
Forum: Coder's Corner Lounge
Oct 10th, 2005, 10:18 PM
|
|
Replies: 75
Views: 1,971
|
Forum: Coder's Corner Lounge
Oct 10th, 2005, 12:19 PM
|
|
Replies: 75
Views: 1,971
Marriages would be arranged by online...
Marriages would be arranged by online questionaires determining compatability and divorces would only happen when a larger company bought the rights to the questionaire and redesigned it.
In the...
|
Forum: Coder's Corner Lounge
Oct 10th, 2005, 11:59 AM
|
|
Replies: 34
Views: 856
|
Forum: C++
Oct 2nd, 2005, 12:08 AM
|
|
Replies: 9
Views: 222
|
Forum: C++
Oct 1st, 2005, 11:50 PM
|
|
Replies: 9
Views: 222
No. currents->nexts points to NULL, that is the...
No. currents->nexts points to NULL, that is the terminating case.
@JessehK
Your print statement is never being reached.
You are doing some funky stuff in your appendnumber function...
You are always...
|
Forum: C++
Oct 1st, 2005, 11:13 PM
|
|
Replies: 9
Views: 222
|
Forum: Other Programming Languages
Sep 30th, 2005, 5:20 PM
|
|
Replies: 5
Views: 212
If you want to check that the string contains...
If you want to check that the string contains ONLY letters, you could use isalpha (#include <cctype>) and a loop.
To search for a particular string, the std::string has plenty of search routines,...
|
Forum: Coder's Corner Lounge
Sep 30th, 2005, 12:51 PM
|
|
Replies: 47
Views: 1,094
|
Forum: C++
Sep 29th, 2005, 11:45 PM
|
|
Replies: 11
Views: 354
first you have to know its number....
(sorry, I...
first you have to know its number....
(sorry, I couldnt resist)
Your question is not very descriptive...
Do you mean from within you program, via a pipe, or just plain 'how do I execute my compiled...
|
Forum: C++
Sep 29th, 2005, 9:25 AM
|
|
Replies: 28
Views: 722
|
Forum: C++
Sep 28th, 2005, 11:17 AM
|
|
Replies: 28
Views: 722
|
Forum: C++
Sep 27th, 2005, 10:46 PM
|
|
Replies: 5
Views: 243
|
Forum: C++
Sep 24th, 2005, 10:17 PM
|
|
Replies: 4
Views: 210
After looking into it, alarm (standard library...
After looking into it, alarm (standard library call) is depreciated. getitimer/setitimer are the replacements. However, threads seem to be a better idea here as catching the signal wouldnt do too...
|
Forum: C++
Sep 24th, 2005, 3:31 PM
|
|
Replies: 4
Views: 210
|
Forum: C++
Sep 24th, 2005, 2:47 PM
|
|
Replies: 27
Views: 906
|
Forum: C++
Sep 23rd, 2005, 6:39 AM
|
|
Replies: 4
Views: 200
A base class also becomes useful when building...
A base class also becomes useful when building tree-like structures.
Suppose you want to build a tree of objects and each object will be somewhat different from the others, but you want them in the...
|
Forum: C++
Sep 23rd, 2005, 6:09 AM
|
|
Replies: 10
Views: 352
|
Forum: C++
Sep 23rd, 2005, 6:04 AM
|
|
Replies: 12
Views: 304
x is pointing at nothing.
How exactly do you...
x is pointing at nothing.
How exactly do you expect to advance 'points' places past nothing?
When you say x = 0, you are making x NULL. If you then try to dereference that NULL pointer (as you do in...
|
Forum: C++
Sep 22nd, 2005, 2:24 PM
|
|
Replies: 11
Views: 284
Agreed.
It just seemed to me like you had a...
Agreed.
It just seemed to me like you had a project in mind, with particular specs, and you just expected to have a workable solution plopped in your lap. Don't get me wrong, I see that you are...
|