Forum: C++ 19 Hours Ago |
| Replies: 1 Views: 43 |
Forum: C++ 19 Hours Ago |
| Replies: 6 Views: 137 Re: C++ help needed please >im still overlooking question 4
n1 is 10 because the loop is never executed, 10 is greater than 5, after all. n2 is 11 because the condition is checked after the loop executes once. This analysis... |
Forum: C++ 1 Day Ago |
| Replies: 2 Views: 86 Re: Need help with basic C++ codeing >and take it easy on the code, I am varry new to CPP. I am at the hello world level.
Since you've specified mutually exclusive requirements (relatively non-trivial tasks and code at the hello world... |
Forum: C++ 1 Day Ago |
| Replies: 6 Views: 137 Re: C++ help needed please >1) im still lost on, i know the three types of loop but not
>the method to discover which one to use and when.
You use the loop best suited to the problem. For example, if you always execute the... |
Forum: C++ 1 Day Ago |
| Replies: 3 Views: 55 |
Forum: C++ 1 Day Ago |
| Replies: 10 Views: 164 Re: Deitel 6th vs C++ Primer OOP >This caused serious problems
This I don't agree with. Yes, OOP shines when it comes to organizing large projects, but if structured design caused serious problems, it's because the designer messed... |
Forum: C++ 1 Day Ago |
| Replies: 10 Views: 164 Re: Deitel 6th vs C++ Primer OOP >they create and initialize everything under main function as one source code program.
How far into the book are you? Beginner books generally keep it simple at first and ease into full blown OO... |
Forum: Software Developers' Lounge 1 Day Ago |
| Replies: 2 Views: 59 Re: Handling Design Mistakes in TDD >Should I then just remove or modify the tests, too?
That makes sense. You should also modify the tests that rely on that class as well, which (depending on your level of coupling) could mean changes... |
Forum: C++ 2 Days Ago |
| Replies: 7 Views: 98 |
Forum: C++ 2 Days Ago |
| Replies: 7 Views: 98 |
Forum: C++ 2 Days Ago |
| Replies: 7 Views: 98 |
Forum: C++ 2 Days Ago |
| Replies: 6 Views: 109 Re: My first C++ problem :( >For some case such as break multiple-level of loops, goto is inevitable.
I wouldn't say inevitable, but goto can be the cleanest solution if you have deep nesting and can't refactor it. The... |
Forum: C 2 Days Ago |
| Replies: 9 Views: 117 |
Forum: C 2 Days Ago |
| Replies: 9 Views: 117 Re: about C and exe I wouldn't say that we've entered the realm of issuing infractions quite yet, but it's getting closer. kv79, I'd suggest you refrain from even implying that you intend to spam or engage in DoS... |
Forum: C++ 2 Days Ago |
| Replies: 6 Views: 109 Re: My first C++ problem :( >Now the idea is if b is equal to 5 then it breaks out of
>the if loop, the for loop c, the for loop b, the for loop a.
Nope. You can write as many breaks as you want, but only the first one will... |
Forum: C# 2 Days Ago |
| Replies: 18 Views: 239 Re: Is that C# and C#.NET are entirely different? >Sorry I forget the word 'serious'
Ah, so you think Mono is some kind of joke then. Well, that's your opinion, and as such doesn't count as an objective argument in favor of your claims.
>And if you... |
Forum: C++ 2 Days Ago |
| Replies: 2 Views: 69 Re: map function pointer #include <iostream>
#include <map>
#include <string>
std::string foo() { return "Foo"; }
std::string bar() { return "Bar"; }
int main()
{
std::map<std::string, std::string (*)()> m; |
Forum: C++ 2 Days Ago |
| Replies: 2 Views: 88 |
Forum: C# 2 Days Ago |
| Replies: 18 Views: 239 Re: Is that C# and C#.NET are entirely different? >Can you tell me where its use C# outside of the .NET Framework.
How many times do I have to mention Mono before you actually read it?
>Firs of all C# existed long before it was standarized.
Yep,... |
Forum: DaniWeb Community Feedback 3 Days Ago |
| Replies: 2 Views: 97 Re: starting a thread Well, it seems you haven't had any trouble with the process of starting a thread, so now the only problem is figuring out which forum is best suited to your question. Might I suggest one of the... |
Forum: C++ 3 Days Ago |
| Replies: 7 Views: 156 Re: Identify || statements >My problem is that I am not quite sure how I have to think.
Think in terms of an expression tree, just like any other expression. The only difference here is accurately handling short-circuiting on... |
Forum: C++ 3 Days Ago |
| Replies: 4 Views: 91 Re: Vectors and Inheritance If your real situation is exactly like this test, then it's because your data is wrong. Assigning all of the items to the vector is based on the line beginning with "stuff" followed by a space. So... |
Forum: C++ 3 Days Ago |
| Replies: 4 Views: 91 Re: Vectors and Inheritance How about you give us some real code that compiles and gives you the error. :icon_rolleyes: It's kind of hard to tell you how your code is wrong when you summarize it using pseudocode. |
Forum: C++ 3 Days Ago |
| Replies: 11 Views: 247 |
Forum: C# 3 Days Ago |
| Replies: 18 Views: 239 |
Forum: C++ 3 Days Ago |
| Replies: 31 Views: 4,473 |
Forum: C++ 3 Days Ago |
| Replies: 11 Views: 247 |
Forum: C++ 3 Days Ago |
| Replies: 11 Views: 247 |
Forum: C# 3 Days Ago |
| Replies: 18 Views: 239 Re: Is that C# and C#.NET are entirely different? >there is no need of say C#.Net when you say C# is the same as if you were saying C#.NET
Makes sense to me. So even if you're wrong in saying that C# and C#.NET are the same thing (which you are),... |
Forum: Geeks' Lounge 3 Days Ago |
| Replies: 3 Views: 91 Re: Planning your projects >Just interested in the different methods everyone
>uses to plan their projects, set timelines, etc.
What is this planning thing you speak of? Just kidding, I use a variation of Scrum that's... |
Forum: C++ 3 Days Ago |
| Replies: 4 Views: 101 |
Forum: C# 3 Days Ago |
| Replies: 18 Views: 239 Re: Is that C# and C#.NET are entirely different? >Why don't you call it C#.Net compiler since they call
>it like that almost throughout the whole article ;-)
Because there's no need. If I say "Microsoft's C# compiler", you know that it's on .NET.... |
Forum: C# 3 Days Ago |
| Replies: 18 Views: 239 Re: Is that C# and C#.NET are entirely different? >Obviously you didn't read the last link that I post.
Oh, you mean the one that compares Microsoft's VB.NET compiler and C# compiler? Once again, I claim that you don't know the difference between a... |
Forum: C++ 3 Days Ago |
| Replies: 3 Views: 87 Re: Linked List Help!!! >What do you mean by this?
I mean that your professor is either incompetent or doesn't care enough to learn C++ properly and thus isn't qualified to teach it.
>Is my professor not good enough?
Well,... |
Forum: C# 3 Days Ago |
| Replies: 18 Views: 239 Re: Is that C# and C#.NET are entirely different? >Maybe is no 'official' bu go to this link and tell me fi
>you still think that is not correct that are the same thing.
Visual C# .NET is a compiler for C# on the .NET framework. That doesn't in any... |
Forum: C++ 3 Days Ago |
| Replies: 3 Views: 87 Re: Linked List Help!!! >my prof gave me this sample program
If you haven't modified it, then I would suggest you drop that professor and find another that can actually teach you C++.
>Please help me.I need this by... |
Forum: C++ 3 Days Ago |
| Replies: 3 Views: 86 Re: Increase number of char input >I want it to be infinite, if possible.
Then you need to write something that can build a buffer of variable length from chunks returned by _cgets (_cgets_s in this case because you want length... |
Forum: C++ 3 Days Ago |
| Replies: 4 Views: 101 |
Forum: C++ 3 Days Ago |
| Replies: 11 Views: 247 |
Forum: C# 3 Days Ago |
| Replies: 18 Views: 239 Re: Is that C# and C#.NET are entirely different? >C# and C#.NET are the same thing.
Technically that's not true. C# is an internationally standardized language that isn't bound to the .NET framework as long as the implementation conforms to the CLI... |