General C++ Programming - June 2011

which is best container to use for this problem?
 
I'm trying to set up a container of classes that each contain a point A and a point B, and this container's objects should follow a contiguous line (ie. index 0...
[7 replies] Last: Thanks so much for the well thought out answer and good advice as to w... (by whitmcrae)
by Ez0n3
Static lib linking - similar functions
 
Hello, I just have a fairly quick question. The program I'm working on has a DLL that I would like to link to statically. I really don't have the option of usi...
[4 replies] Last: Ok, I'm going to try that and see what happens. I don't suppose there... (by Ez0n3)
by shahj
GUI in C++
 
Hi, I have created many console based programs in C++. But, I have not created any GUI or windows application. I am willing to learn it. It would be really help...
[10 replies] Last: this question must be asked here more then 1000 times.. is google such... (by writetonsharma)
by xDavid
clean terminal
 
I want to add something like system(cls) to ubuntu, but can not find anything that works for me :s
[2 replies] Last: Thanks! (by xDavid)
by ramako
while (cin >> NumData >0)
 
As written in the title, this won't work. If I try writing a 0 it DOES goes into the loop. Can't it be done inside the while?
[7 replies] Last: True, input validation can't be done with that method. I just meant to... (by closed account D80DSL3A)
strings not working
 
Hello, as you may know already I am new to the C++ environment. Recently I have been trying to wright a program using strings (shown below) however, it says tha...
[3 replies] Last: just fixed it thanks for the help! (by GeckoLink)
by xDavid
Sleep(int)
 
I need use sleep(int), but im programing in Ubuntu, then I have not this library, how can I use this? Forgive my bad English. Thanks!
[3 replies] Last: always use man pages when you dont know how to use any function. man ... (by writetonsharma)
Casting to string
 
I'm running into something I've never seen before and would very much like to understand what is going on. I'm trying to round a double to 2 decimal places and...
[1 reply] : I realize the issue is coming from the fact that std::precision does... (by ricomoss)
by moi134
Pattern Recognition and C++
 
Which pattern recognition/ machine learning library is better to use with C++, OpenCV, CImage or something else? thanks.
[no replies]
warning in dynamic_cast while casting from base class to derived class
 
HI, test1.cpp ---------------------------- #include <iostream> using namespace std; class A{ }; class B:public A{}; int main() { A a,*x; ...
[8 replies] Last: Hi, @writetonsharma, @webjose and @Disch thanks for your comments. Y... (by anandnilkal)
Connecting to Database using C++
 
I want to write an application using pure C++ code. I have to use MS Access as Database because that is the only way that I can access my OPC server to acquire...
[1 reply] : The below code is the one I designed using MFC (ODBC connection), the ... (by NewDev)
help with iterators?
 
im having a problem understanding what they do and how to use them. can anybody help?
[5 replies] Last: this helped me too thanks for taking the time to post the examples (by acorn)
by oz1cz
(C++0x) Use of the function<> template
 
Consider this piece of code: #include <iostream> #include <functional> std::function<void (int)> fff; void fun1() { int val; fff=[&val](int i...
[2 replies] Last: It is safe because val is captured by value so a copy of val exists in... (by aquaz)
How to convert octal to decimal
 
I am trying to write a program in Visual C++ 6.0 using MFC where I take an octal number and convert it to decimal. I understand how to convert octal to decimal ...
[5 replies] Last: Thanks Buffbill, I have one more question, how to store 62 into a var... (by tipjones19)
by kamari
NULL parameter in ADOCommand::CreateParameter
 
Hi all I've got a stored procedure which gets called from the code with set of parameters. One of the expected arguments in of DATE type. The value for this...
[no replies]
by NewDev
Need help with the code using Xerces Parser for C++
 
Hello There, I have written the below code to parse the XML file and display some of its contents in the Win32 console.I am able to rum this code and everyt...
[3 replies] Last: Thanks writetonsharma,but Xerces Parser has a built in API getAttribut... (by NewDev)
Converting an integer array to a string array
 
Hi, I am trying to convert an integer array (with six entries) to a string array. My code is the following (run is an integer array.) ...
[2 replies] Last: is run defined as char or int? (by writetonsharma)
Taking a percentage
 
My code is computing taxes. The user inputs how they are filing and their taxable income. If the user inputs a 1 (married jointly) I need that tax to calculate ...
[4 replies] Last: #include <iostream> using namespace std; int main() { //prompt... (by jkretzer)
"Storage class specified" for C++ code
 
Hi all I am running an image processing algorithm using OpenCV library and C++ in Eclipse SDE. here is my code...the unnecessary stuff is removed.. #includ...
[5 replies] Last: thanks coder777 I have solved it with what you said. I passed the addr... (by greenlife55)
Experience with Ethanon Engine?
 
Hi, does someone of you have experience with this engine? If yes, then please send me PM or reply, thanks!
[no replies]
June 2011 Pages: 123... 28
  Archived months: [may2011] [jul2011]

This is an archived page. To post a new message, go to the current page.