15,993,913 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Quirkafleeg (Top 26 by date)
Quirkafleeg
20-Sep-17 12:22pm
View
Your problem is "pce", which should be of type "ObjectContext" - and it is not. Given you have not provided any code regarding what "pce" is, I cannot provide anything more.
Quirkafleeg
14-Sep-15 6:18am
View
Deleted
Oops! Forgot the valueCounter - but you get the idea...
Quirkafleeg
31-Jul-13 6:52am
View
Agreed. Imagine "hi i want a bugatti veyron give me one". This approach doesn't work - at least not for me!
Quirkafleeg
21-Feb-13 3:22am
View
Fair points
Quirkafleeg
20-Feb-13 6:24am
View
My vote of 3.
This is fine if you are using the abominable (in my opinion) Managed C++, but they have no use if you using "proper" C++. Remember that the "Windows Forms application" could be relating to MFC and the asker could still be using VC++6!
Quirkafleeg
8-Feb-13 9:40am
View
OK - You should set a result, e.g. int result = chdir(str) and check the value of errno if result is -1. The errno is just another integer that you can output to the console. For more detail on which error values are returned, consult http://linux.die.net/man/2/chdir
Quirkafleeg
8-Feb-13 9:20am
View
Unfortunately, the use of the 'z' in "please" generally negates help from the majority - but I applaud you for limiting yourself to just 1.
Quirkafleeg
6-Feb-13 10:06am
View
Two problems:
1) You cannot set str1[400] - str1 is an array from 0 to 399,
2) You cannot set a character from an entire string - you need to use strcpy instead
Quirkafleeg
6-Feb-13 10:04am
View
What is the problem? You should get back 0 or -1 from chdir... then use errno to find out what the actual error code should be. This will give an idea as to what is happening.
Quirkafleeg
24-Jan-13 12:31pm
View
The problem with this is hard to diagnose. Your variable names remind me of horror stories that I've been told about 30 year old code; you are allowed - and recommended - to give your variables meaningful names, rather single letters.
For example, the parameters "k" and "n" do not help anyone here scan your code for immediate issues. What it does instead is force us to spend more time than we should examining (and decrypting) the code.
Most of us are either too busy or too lazy to do that.
I am probably similar to a number of users by a being averse to having to download things (which is what your hyperlink asks me to do!) - it adds to the "we are having to spend far more time on this than we should" argument.
What also makes it difficult is the other functions that this code calls - there is no code snippets of these functions. As such, when you say "It not worky!", there is no evidence to show what the expected output and the actual output is.
From what I can see, the code snippet seemingly has no problems - the real problem may lie in the code you have not posted, e.g. "Horizontally" or "Vertically" (do these change the value of count?)
So I am sorry to sound harsh, but I cannot help you without at least more code logic - and I'm guessing other people would post a similar request.
Quirkafleeg
22-Jan-13 9:39am
View
Only a 2...
What happens when you type 'a'? A FormatException error.
"Programmers need to learn how stupid customers can be"
Quirkafleeg
17-Dec-12 7:15am
View
+5. A rare occasion when a C++ question is answered using C++, rather than C!
Quirkafleeg
17-Dec-12 7:12am
View
2 things:
1) The title says vector to stream, whereas the description says vector to string. Which is it?
2) A vector of what?
Quirkafleeg
10-Dec-12 10:39am
View
Agreed. C/C++ programmers should learn what "definition" and "declaration" mean - which begs the question of why create a forward declaration of "do_var_fun", when the definition could easily have been moved above "main"?
Quirkafleeg
7-Dec-12 11:49am
View
A deque should be the preferred option to a list.
Quirkafleeg
3-Dec-12 12:12pm
View
Heed the advice of lewax00... THE most common problem in any commercial C++ project are memory leaks. If you are happy to program with bad habits then you are just asking for a painful future for you and all work colleagues.
Also the final for loop with "j" should be "j >= 0", not "j > 0" - unless you want to ignore the first element.
Quirkafleeg
6-Nov-12 5:06am
View
If you're going to use the C++ string, why use a C function?
Quirkafleeg
4-Oct-12 5:05am
View
...and this was the polite reply! Personally, the solutions giyf and lmgtfy are best.
Quirkafleeg
20-Sep-12 4:19am
View
I think the first thing you need to do is learn what arrays can do...
I grant bravery for publishing it, but creating 300 variables kind of shows that you may not be ready to handle either socket or multi-threaded programming just yet.
Quirkafleeg
21-Dec-11 6:11am
View
Hint: What do you return after you've handled the exception?
Quirkafleeg
1-Nov-11 4:52am
View
Deleted
You should never overload && and ||. Why? Because both parameters are evaluated - not necessarily in the order you would expect. This results in unpredictable behaviour. But this article should also have explained this
Quirkafleeg
22-Jul-11 6:31am
View
Deleted
I myself write 1000 line functions?
Perhaps you need to read my post more carefully - it intimates other peoples code. In some cases (although its C or VB, not C#), the code is over 10 years old. But I guess you don't understand that some companies keep support for their software open for several years (ours is 7). A good example is Windows XP - that is now 10 years old and still has coders bolting on fixes.
You also assume that where I work, I haven't imposed some coding standards. Again, this is wrong. I could go into details, but given your consistent hostility it probably isn't worth it.
Quirkafleeg
21-Jul-11 11:10am
View
Deleted
Did you write those debunks? :)
Quirkafleeg
21-Jun-11 3:50am
View
Deleted
double post?
Quirkafleeg
21-Jun-11 3:49am
View
Deleted
Reason for my vote of 1
Peoplpe who cannot indent should go back to school and learn why it is a recommended practice... no comments... no explanation... no decent votes!
Quirkafleeg
1-Jun-11 6:52am
View
...and with a different string of, say "11.98677"?
Show More