General C++ Programming - July 2014 (Page 13)

by abbash
General C++ Template class
 
#include <iostream> template<class T, T t = T()> class A { private: template<bool b> class B { public: static const int ...
[2 replies] Last: Cubbi, Many thanks. It is clear now. Kind regards (by abbash)
File Icon
 
Is there code that determines what the program.exe icon is or is it entirely unrelated to code?
[4 replies] Last: (if duoas is telling you to use it, you should probably use it. but th... (by Little Bobby Tables)
Code error please help!
 
Everytime I try to compile my program it gives me an error I'm not familiar with, I will post the relevant part of my code and what the error says. void CMa...
[5 replies] Last: Oftentimes, the compiler may "point" to a function stating that it is ... (by Little Captain)
Arduino Bot: Virtual Controller and Path Map, How to...?
 
I know how to create your basic programm that compiles as a CLI or exports and/or saves data to a .txt file... But how does one build a GUI? I ask because I...
[4 replies] Last: Qt is fairly simple to use for GUI. http://qt-project.org/ (by giblit)
mysql connection object in other classes
 
MYSQL *conn; MYSQL_RES *res; MYSQL_ROW row; char *server = "server"; char *user = "user"; char *password = "password"; // got tot keep my data secre...
[2 replies] Last: I've tested it with valgrind, and it's bad. Memory leaks, and it gets ... (by oraclekid)
Need help with Calculator
 
This is the code to my calculator. It is supposed to be set up like an accountants in that you start at 0 and can keep performing operations on it. Currently ...
[7 replies] Last: Thank you. I will make several changes to it and then post. (by gallimorej)
by abbash
How does this program work?
 
#include <cstddef> #include <iostream> class A { public: A() : m_x(0) { } public: static ptrdiff_t member_offset(const A &a) { ...
[3 replies] Last: @Disch Thank you very much for your detailed explanation. It was very... (by abbash)
Need Help with C++ Calculator
 
This is the code to my calculator. It is supposed to be set up like an accountants in that you start at 0 and can keep performing operations on it. Currently I ...
[no replies]
EMGU CV thresholding exception
 
So I'm trying to threshold a video feed, and I'm getting a weird Exception that shuts down my program. I'm very new to image processing so I have absolutely no ...
[no replies]
Passing parameters in threads (1,2)
 
So, I've figured out some stuff about it, now the only thing I need to learn next is how to pass arguments to threads. Do you do it with pointers? I want to bui...
[32 replies] Last: Thanks! it works now :D now I just need to analyze how all of these w... (by greenleaf800073)
Heap Class
 
how to program a binary heap class that can insert
[3 replies] Last: I dont want to copy anyone else work.. this is what I got so far.. how... (by whoovian11)
Help with password program my strong and medium functions don't seem to work. I need them to
 
#include<fstream> #include<string> #include<iostream> using namespace std; bool searchCommon(string userpassword, int count,string commonpasswords ) { ...
[4 replies] Last: Lines 181-192 are problematic. They are logically equivalent to: ... (by booradley60)
Create Texture From File
 
Im having problems with this little function im making for some reason the texture dont get created (messagebox never gets called) Im trying to pass a BYT...
[6 replies] Last: I tried it just like that before i made this topic. But it dont create... (by poohpooh)
help guys i really need help with this problem as i have 0 knowledge regarding c++ pls help !!!
 
convert a positive integer code into its english name equivalent for digit. A valid code is of size between four (4) to six (6) digits inclusive. A zero is not ...
[8 replies] Last: 1. Read a word. 2. Test if word contains character '0'. 3. Test the le... (by keskiverto)
Vector Iteration C++11
 
I have a vector of pair<int, int> . vector<pair<int, int> > A . I have sorted this vector by the first element of the pair. Now I need to compare i and i+1 ...
[5 replies] Last: How does that help? Lets take {3,2,1}. Three inversions: 3-2, 3-1, 2... (by keskiverto)
Horizontal+Vertical Toolbar Win32 API
 
Hey All! I have been searching around for a fix to the toolbar issue i have. I have created two of them, one horizontal and one vertical but they overlap at th...
[no replies]
Declaring object of a class in another class
 
This is my first post and I'm thankful for all of your answers. I'm learning C++ with an online book and I came to the part were OOP is being explained. I prett...
[15 replies] Last: @ne555 >There is no reason for 'CGame.h' to include 'CPlayer.h' You ... (by HalfNOoB)
Help with a Bubble Sort
 
I have a bubble sort that takes 10 numbers. Before I modularized it it worked fine, but somehow when I created my modules this strange error occurs: The highest...
[6 replies] Last: Thanks, that clarifies things (by mendus59)
by kawni
cant complie
 
hello im new at this forum and im having a problem with c++ compling building debug any thing i tried many up to now visual studio ultimat 2013 c++...
[3 replies] Last: 2 days no new reply so up (by kawni)
by vanev
Dynamic Arrays and User Input
 
Hi all, I'm still fairly new to c++ and am having trouble with dynamic arrays. My task is to create an array for test scores. The user needs to define the si...
[1 reply] : You need to get the input before you create the array. int tnos; ... (by ResidentBiscuit)
July 2014 Pages: 1... 1112131415... 26
  Archived months: [jun2014] [aug2014]

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