General C++ Programming - July 2012 (Page 17)

No 'qt gui application' option in qt creator, help!
 
Hello all I am creating a basic c++ gui application using Qt but according to available tutorials available out there, there is no option for Qt GUI applicatio...
[no replies]
by soranz
Array sorting...
 
I have 2 arrays with the exact same elements but a few extra zeros in the wrong places. The relative order of the numbers is always the same. Array 1 = {1, 3...
[11 replies] Last: no, only the existence of the number of '0's is guaranteed and element... (by soranz)
What is wrong with my Fraction class program?
 
Hi, everyone! So I have a program I am doing for a CS course. I have pasted the .h and .cpp's below. It's not really calculating the 2 fractions I input. Co...
[1 reply] : Hi ! Please use code tags and indentation :) This looks pretty wierd ... (by soranz)
How to read bit by bit in a file
 
What I would like to do is read a raw Image in decimal (8 bits, so value 0 - 255) The code below is something I have started. When I tested it prints out nu...
[1 reply] : cout << data << endl; The type of thing you are printing is a c... (by Duthomhas)
How do you use ALLEGRO Event/Timer to update character movement
 
For example, I have a character on screen. If i press the "Left Arrow key", the character would move left, but then it won't move again unless i let go of th...
[11 replies] Last: FourSight, you may find better help from the forums for Allegro. I may... (by BHX)
Program Stops Responding
 
I wrote this program to take a scrambled word and unscramble it using a list of words in a document. I got this program written that works for the first 15 wor...
[3 replies] Last: @ Dornith : Post the debugging information. Also, take it easy with th... (by closed account zb0S216C)
Generated File? or not?
 
I have recently made a short app that allows the user to make a short wish list... and retrieved the exe file, but when i run it the file is no where to be fou...
[5 replies] Last: You'll have to specify an absolute path. E.g. file_.open("C:/.../Fo... (by closed account zb0S216C)
Cannot understand what's wrong here... (1,2)
 
I wanted to take this as a challenge: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=22&problem=1969&mosmsg=Su...
[31 replies] Last: @ne555, I guess I am used to dealing with reasonably large objects, s... (by TheIdeasMan)
Add element to a vector of objects?
 
Hi! I've just started with Classes and what I want to do is to create a new instance whenever the user presses x key. For that, I created a vector, but the prob...
[4 replies] Last: you can also use initializer lists, to initialise the object without u... (by viliml)
by Xiang
Unknow reason porgram stop at while{} in a thread
 
Variable stop will be 1 in main process. I want the thread to start its when stop==1 The weird thing is that it is good when I add a line "cout..." in while ...
[10 replies] Last: They're great reference pages. Kudos. They are still work-in-progres... (by Cubbi)
How should I structure my hitbox class?
 
I am making a game that requires hitboxes. There will be rectangular and circular hitboxes. I want a function that returns a bool that indicates whether any t...
[3 replies] Last: Yeah that's much simpler, but then they don't share a common base clas... (by Disch)
Is any mathematical term for integer number for which factorial is evaluated?i (1,2)
 
It is interesting is any mathematical term for the integer number for which factorial is evaluated? That is n! is called factorial and is written as factoria...
[32 replies] Last: I am going to use it as for example factorial<long long> f( 10 ); st... (by vlad from moscow)
linking issue... dll not found during runtime...
 
Hi all, I'm still pretty new with c++, I'm using visual studio 2012 RC and i ran into a runtime error. I think this has to do with static/dynamic linking? b...
[1 reply] : ssleay32.dll is part of OpenSSL project, put the dll in the same folde... (by modoran)
doubt in session
 
hi all, wat is session. when do we create a session Regards, Sharath.
[5 replies] Last: Heh. I think a new language is being formed. (by ResidentBiscuit)
Array,random generated num...
 
my qns:declare and create an integer array of size 10. Then, the program should randomly, using a while loop, insert in numbers, in the range of 1 to 50, inclus...
[2 replies] Last: i just not very sure how to let the integer in the array to generate o... (by Darlord)
ODBC problems in a C++ project
 
Hello, I'm trying to include an ODBC connection in a C++ project, I created new WIN32 Console Application project and included the files #include <sql.h> ...
[no replies]
Interview with Alan Kay (Dr. Dobb's)
 
The pioneer of object-orientation, co-designer of Smalltalk, and UI luminary opines on programming, browsers, objects, the illusion of patterns, and how Socrat...
[2 replies] Last: Very nice link to read. Thanks for providing. (by acn)
GUI's
 
Hi! I just wanted to ask how do you make GUI's in Visual Studio. I use Ultimate 2012 RC. Thanks! Shahmeer
[5 replies] Last: Why do you ask same question with different topics ? Please avoid, it ... (by acn)
Graphics
 
Hi! I am sort of a beginner in C++. I am in the middle of Functions (I) of this documentation. I just wanted to know how do you create graphics in C++ in Visual...
[6 replies] Last: Hey Shahmeer. I think you want to do GUI creation ? Right ? Then here... (by acn)
Assimp Mesh Drawing OpenGL
 
This is the code I am using to draw my meshes, but for some reason nothing is displayed? The values of x, y, and z look correct. for(int k = 0...
[3 replies] Last: I think you should draw 3 vertex for a face Be clear about your model ... (by Xiang)
July 2012 Pages: 1... 1516171819... 30
  Archived months: [jun2012] [aug2012]

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