49,761 Topics
| |
Hi anyone who knows good and documented CHM library? There is [URL="http://www.jedrea.com/chmlib/"]chmlib [/URL]which is X-platform but I cant find documentation or example. Is it hard to write cross platform CHM reader library. Just reading, no writting Thanks | |
Please help me....... I want to buy a book for C++... i want your suggestion for this..... i am confused... HELP..... | |
My current c++ application is compiled by calling "make", and invoked by calling "./fileName.bin". Now, I want to add the functionality of cairo library into the application. Note that the the program written specifically for testing cairo (outside my application) is compiled by "g++ -o fileX $(pkg-config --cflags --libs cairo) … | |
Hi all, I'm gradually starting to make this transition from the world of C to C++, and now that I have a little progress, I have some things that are still a bit confusing to me. One of them is if I nest a class inside another class. If I'm … | |
In order to traverse a tree you could use something like this: [B]For inorder traversal:[/B] [CODE=C++] inorder(TreeNode* currentNode) { if (currentNode) { inorder(currentNode->LeftChild); cout << currentNode->data; inorder(currentNode->RightChild); } } [/CODE] [B]For preorder traversal:[/B] [CODE=C++] preorder(TreeNode* currentNode) { if (currentNode) { cout << currentNode->data; preorder(currentNode->LeftChild); preorder(currentNode->RightChild); } } [/CODE] [B]For post … | |
I am trying to write a program that takes a user submitted number of test, along with the test scores. Then I need to sort them in ascending order. (I've done all this). Now I need to get the average, but my getAvg function drops will drop the decimal and … | |
Hi. Can anyone help me get started with the following program please? I know the concept but i am having problem writing the syntax codes. I know we have to use arrays and then split the array and convert it into string and then back to integer. I believe we … | |
Which is the best C++ IDE for windows that is free and where can i get it?I have tried downloading Code Blocks and Dev C++ but none of them works. | |
Write a function with the prototype void findMisspellings(const char *text, const char *correctlySpelled, char *result) which populates the string result containing all the words in text that are misspelled, in the order they appear in text, with a single space separating each word and no leading or trailing whitespace. A … | |
Write a function with the prototype unsigned long findFibonacciPrimes(unsigned long lowerBound, unsigned long upperBound, unsigned long result[]) which populates the array result with all of the prime numbers that are also Fibonacci numbers between lowerBound (inclusive) and upperBound (inclusive), and then returns the number of Fibonacci primes that were found. … | |
Hello, I got this question for my weekly c++ exercise: Imagine you want to solve the following problem. Given a date (of the form dd/mm/yyyy and day of the week) and a non-negative integer n, you want to determine which date it is after n days. For instance, Given Thursday … | |
Hello all. I am a new c++ programmer and I am having a lot of fun with it. I just wrote this programming to help with some American History. I've read tutorials and have learned enough to write this program. I am dissapointed in my code however. I noticed that … | |
I'm sort of duplicating this post because it requested that I start a new thread because I was replying to an old one, but here is a statement that prompted my questions: "Accessors should be const methods at the very least, because the object state isn't changed in the body." … | |
so i need some direction in c++ for grabbing a jpg file sending it to a text file that i can edit to manipulate pixels and send back to a jpg... i have been googling for some time and im having a hard time... just some direction will do.. cuz … | |
[CODE]a= a >0 ? a : 0;[/CODE] what does this mean? thanks | |
Driving me crazy keep getting "this line contains a '{' which has not yet been matched on several lines even though i cant find where there missing. thanks main.cpp [CODE] #include <iostream> #include <string> #include "USER.h" using namespace std; string Get_password(); string Get_username(); void Open_account_sucess(); void Error(); void Exit(); void … | |
Hi there, I'm having trouble dealing with dynamic arrays and was wondering if someone could tell me where the problem lies. I'm new to C++. Basically, in the following code, the dynamic array of Fuzzy objects works fine. But when you uncomment out the bit that actually assigns values to … | |
Hi, I search everywhere and i didn't found anything good. Do you know how to search a string inside a .txt file ?? Like, this is a text file: -------------------------- i love mc donalds food i hate my brother i want a answer a good answer -------------------------- How can i … | |
can someone help me with these compiler errors? im not sure how to fix them. intset.cpp:16: error: prototype for âIntegerSet::IntegerSet(int*)â does not matc intset.h:6: error: candidates are: IntegerSet::IntegerSet(const IntegerSet&) intset.h:9: error: IntegerSet::IntegerSet(int) intset.cpp:7: error: IntegerSet::IntegerSet() main.cpp: In function âint main()â: main.cpp:36: error: invalid conversion from âint*â to âintâ main.cpp:36: error: … | |
Hi everybody, I think this question will be kind of stupid for you ... but I am fighting with since yesterday evening. I have a class Test defined as such in the hpp file (Test.hpp) [CODE] #include <iostream> #include <vector> using namespace std; class Test { public: Test(); static const … | |
Hi, I have a code design problem: I have several classes *MainWindow - holds 2 widgets, a QTableView Widget and a QTabWidget *TabLayout - layout of the tab, comboboxes etc. Creates an instance of TabCode and connects its signals to it. *VideoTab - contains the slots. Slots are called whenever … | |
Hello Coder, My application crashed the problem while read the file from end position to beginning position????? So can anybody solve the siuation?????? | |
Hey guys, I am a CS major at Bradley University and school is about to start so just to brush up on my C++ syntax I decided to make a simple program that would be used to study. It is basically just a notecard program, where you enter the front … | |
Hi. I need program wich will start other program (for example notepad.exe) and if notepad.exe will exit my program will start it again. How can i get info about process state and put it into variable to use with if? I'm beginner at C++ so please write all headers witch … | |
sorry dont know how to delete :). this was ment to be in C# i forgot i changed over to C# becuase i knew more. sorry about that | |
Hello, Can someone please help me with this problem.:( I am trying to openFileDialog in VisualC++, and I want to load an image through cvLoadImage, but I'm getting error that it cannot just convert [code] error C2664: 'cvLoadImage' : cannot convert parameter 1 from 'System::String ^' to 'const char *' … | |
Hi guys, actually i'm trying to write a program which will write the user input into dat file and start to count the user input from 1. When user inputs second value, it will go to other line and put 2 in front of user value. Any idea how to … | |
i have a question,it's about header files, the header files i always use is stdio.h and conio.h.... how can i use other header files like iostream, c time, etc.. whenever i use them and compile the source code, bad header files always exists,. Can you help me? Thanks a lot |
The End.