General C++ Programming - June 2012 (Page 19)

Counting the Number of Loops in a program
 
I was wondering if you can count the number of times you loop a segment. for example: int x = 4; while (x<6) { cout<<"Hello World! \n"; } could I co...
[4 replies] Last: Hello World will be displayed 10 times int i; for(i=0;i<10;i++) { cou... (by iantac)
Easier way to make Window GUI Applications?
 
I don't want to spend a lot of time on programming GUI. I want to make Windows with buttons, etc. Anyone know of a simple library that does this?
[6 replies] Last: I would use Qt. Qt is nice and easy to learn. (by Chance Zibolski)
Glut OpenGL Translate
 
I am making an OpenGL game in which the user presses 1, and a square appears in a random spot. Now, that part works all fine and dandy, but after the square is ...
[3 replies] Last: glut and sdl are targeting two different groups of people. Glut is lig... (by closed account o1vk4iN6)
How do i make a game using DirectX with a model maker?
 
i dont want to have to put in the coordinates for each and every point in the game... how can i make directX use something like Blender3D models?
[2 replies] Last: just found out that its possible using 3DSMAX, but idk how to load mod... (by Invader2010)
If Conditional Issue
 
I'm having an issue where I try to execute arguments when a specific condition is met, and ONLY a specific condition. The program is a shopping list assistant....
[2 replies] Last: It was fixed a while ago and I didn't have time to thank you until now... (by Alpha15)
Semi-Easy Programming Help
 
Hey everyone, I have programmed for many years now, and I never got deep into C++, so i'm going back to it. I bought a book with some extra practice problems ...
[3 replies] Last: I think that to be honest you ought to at least say that you have no i... (by Duthomhas)
by Rudey
printf with leading zeros
 
Hi all, int i = 1; printf("%05d", i); should output "00001". That's fine. However, I am wondering whether there is any way to determine the total num...
[2 replies] Last: Thanks a lot! That will solve my problem. (by Rudey)
vector output to text file
 
Hi. I'm a computer science student studying c++. My professor gave an assignment where I had to write a program using arrays then convert the program to use vec...
[4 replies] Last: Thank you! (by sistasweetpea)
What happens when constructor throws excetpion
 
Hi, what will happen if class constructor throw an exception? try { MyClass obj; } catch(...) { } obj.Function(); // Is this statement will b...
[13 replies] Last: Yes, c will be invalid (if NULL is invalid to you) because the base-... (by closed account zb0S216C)
Stopping packet injection?
 
Hello, How would you go about stopping packet injection ? I have read somewhere you could use ISAAC and RSA for this. If this is true, how would I go about ...
[1 reply] : Nevermind found it. For anyone looking for this also: http://forums.ru... (by Deadmau5)
Making and Transferring c++ Libraries
 
Can anyone explain how to make a c++ library of functions (i.e. my library.h) and then transfer it to another computer via a usb drive or some memory device lik...
[1 reply] : Write your functions. Compile them into a library (ensure your compile... (by Moschops)
trying to learn from c to c++
 
Can someone help me write this code to c++. I wanted to see how hard it was to self teach c++ from only knowing basic c. ************* #include <stdio.h> ...
[2 replies] Last: You aren't exactly scratching the surface of C++ if you are just porti... (by closed account o1vk4iN6)
WCHAR[] to 'wchar_t'
 
Hi guys I'm writing a program for Microsoft's Kinect. I borrowed some code from one of the samples provided in Microsoft's SDK and now I'm getting an error whic...
[4 replies] Last: Yea so I'm an idiot and forgot the * in my function prototype. Thanks ... (by mjolnir91)
Reading from a file
 
Hi :) I have some text in a .txt file with some codes that represent a separator to me. Example : #?city#!=New York#!100#! #?city#!=London#!60#! #?city...
[2 replies] Last: I didn't explain very good. I have this string : #?city#!=Zagreb#!70 ... (by fajkovicsasa)
Mocking Legacy Code in C++ (Webinar, TOMORROW June 13)
 
Testing the Untestable - Unit Testing Dependencies and Legacy Code (in C++) To sign up: http://www.typemock.com/mocking-legacy-code-june When: Wednesday, ...
[no replies]
CreatePointFont to make barcode
 
I want to use C++ to create barcode font. Can the CreatePointFont function be used in? And How?
[1 reply] : What do you mean by "create barcode font"? You want to make a font you... (by coder777)
Getting a wrong answer !!!
 
Here's question :- As we all know caterpillars love to eat leaves. Usually, a caterpillar sits on leaf, eats as much of it as it can (or wants), then stretche...
[4 replies] Last: Hm, you seems to have some mathematical knowledge. Your problem is t... (by coder777)
Minimum memory adresses set for MS-DOS?
 
What are the minimum memory adresses (16-bit segment:16-bit offset, e.g. 0x0000:0x0000-0xFFFF:0xFFFF) MS-DOS needs to run, on a 8086 emulator? E.g. what data i...
[1 reply] : http://freecomputersolutions.blogspot.co.uk/2011/02/pc-dos-and-ms-dos-... (by kbw)
Weird Bitmap Problem
 
Hey there, I'm new so I'd like to say "Hello" :) I have a strange problem with creating a bitmap file. I'm using the MSDN BITMAPINFOHEADER Structure for creat...
[1 reply] : The Header of the bitmap is: 42 4D 36 00 04 00 00 00 00 00 ... (by AllDayPiano)
Help with including
 
I have a problem, i need to connect three files, made the whole code, but now have to separate it to 3 files. intmain.cpp,intfunc.cpp and intclass.h, its pretty...
[1 reply] : in every file use assert header and define some variable, and check fo... (by vkrishan)
June 2012 Pages: 1... 1718192021... 33
  Archived months: [may2012] [jul2012]

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