User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 370,573 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,001 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 500
Search took 0.09 seconds.
Posts Made By: Narue
Forum: C++ 19 Hours Ago
Replies: 1
Views: 43
Posted By Narue
Re: Operator Overloading in Namespace, not working, printing address

You're printing a pointer, of course the result will be an address. Try dereferencing brd:

cout << *brd;
Forum: C++ 19 Hours Ago
Replies: 6
Views: 137
Posted By Narue
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
Posted By Narue
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
Posted By Narue
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
Posted By Narue
Forum: C++ 1 Day Ago
Replies: 10
Views: 164
Posted By Narue
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
Posted By Narue
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
Posted By Narue
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
Posted By Narue
Re: Difference between a null pointer and a bad pointer

>So, at this point, pnA still contains the old address where there is now no data?
pnA still contains the old address, but you don't own that memory anymore. Which means it could already be in use by...
Forum: C++ 2 Days Ago
Replies: 7
Views: 98
Posted By Narue
Re: Difference between a null pointer and a bad pointer

>int* pnBad;//bad pointer?
Yup.

>How would that happen?
If you allocate 10 bytes then copy 15 bytes to the pointer, you may overwrite private data used by the memory manager for handling dynamic...
Forum: C++ 2 Days Ago
Replies: 7
Views: 98
Posted By Narue
Re: Difference between a null pointer and a bad pointer

>So, what is the difference between NULL pointers and bad pointers
Null pointers have a predictable value while bad pointers do not.

>why do the delete statements fail with the bad pointers?
"Bad...
Forum: C++ 2 Days Ago
Replies: 6
Views: 109
Posted By Narue
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
Posted By Narue
Re: about C and exe

>but I did't said anything about attacking .
You strongly implied it.
Forum: C 2 Days Ago
Replies: 9
Views: 117
Posted By Narue
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
Posted By Narue
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
Posted By Narue
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
Posted By Narue
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
Posted By Narue
Re: Template class specialization in template class

You've stumbled on a gray area, but the long and short of things is that what you're trying to do is illegal in standard C++, and all of the direct workarounds are also illegal. An explicit...
Forum: C# 2 Days Ago
Replies: 18
Views: 239
Posted By Narue
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
Posted By Narue
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
Posted By Narue
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
Posted By Narue
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
Posted By Narue
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
Posted By Narue
Re: Converting std::string to System::String^ NEED HELP

>cannot access private member declared in class 'System::Windows::Forms::Control
Well, the error message is pretty freaking clear about what the problem is. Are you not capable of figuring out why...
Forum: C# 3 Days Ago
Replies: 18
Views: 239
Posted By Narue
Re: Is that C# and C#.NET are entirely different?

>don't say C#.NET or Visual C# because they know
>(as we do) that they're talking about C#.NET
Well, they don't say Visual C# because it's possible to write and build C# code outside of that...
Forum: C++ 3 Days Ago
Replies: 31
Views: 4,473
Posted By Narue
Re: Finding the lowest of five test scores

>make the int small global
Yea, that's bad advice.

>Globalizing variables ROX!!!
You're just messing with us, aren't you?
Forum: C++ 3 Days Ago
Replies: 11
Views: 247
Posted By Narue
Re: Converting std::string to System::String^ NEED HELP

How about removing the string streams and simply doing this?

txtresult->text = Convert::ToString ( method );
Forum: C++ 3 Days Ago
Replies: 11
Views: 247
Posted By Narue
Re: Converting std::string to System::String^ NEED HELP

That's what you get for taking the path of least resistance. Now why don't you tell us what you're trying to do so we can suggest a good solution using System::string?
Forum: C# 3 Days Ago
Replies: 18
Views: 239
Posted By Narue
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
Posted By Narue
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
Posted By Narue
Re: How to optimize this function(about pattern match,A problem in a Interview)

>I don't know the answer of the second question:
>if pattern is a array, how to optimize it?
The answer is the same.
Forum: C# 3 Days Ago
Replies: 18
Views: 239
Posted By Narue
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
Posted By Narue
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
Posted By Narue
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
Posted By Narue
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
Posted By Narue
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
Posted By Narue
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
Posted By Narue
Re: How to optimize this function(about pattern match,A problem in a Interview)

>but I think this solution is not efficient.
Why? If you're just guessing or using your "programmer's intuition", you're probably wrong. Interviewers (good ones) tend to smile more on people who...
Forum: C++ 3 Days Ago
Replies: 11
Views: 247
Posted By Narue
Re: Converting std::string to System::String^ NEED HELP

>I can't find any way around it because System::string
>has no stringstream, or any ostringstream.
You probably don't need a string stream. System::string is a surprisingly robust class that can...
Forum: C# 3 Days Ago
Replies: 18
Views: 239
Posted By Narue
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...
Showing results 1 to 40 of 500

 
All times are GMT -4. The time now is 5:13 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC