General C++ Programming - April 2016 (Page 23)

OpenGL-Texture to wxImage conversion
Hi there, i want to convert a huge texture stored in my "clsBuffer"-object (see code) to a small wxImage of a given size, but somehow i don't get it. My plan i...
Apr 1, 2016 at 8:03pm
[no replies]
Code Problem
here
Apr 1, 2016 at 6:33pm
[2 replies] Last: You push nodes at the front of the adjacency list, so the list for nod... (by dhayden)
Help with Compiling Errors
I'm trying to make an airline reservations program based on a linked list of passenger objects. Below is my code so far, I've commented out the two functions th...
Apr 1, 2016 at 4:29pm
[2 replies] Last: database.h line 17: Your Passenger object contains a list of Passenge... (by AbstractionAnon)
why is this loop only executing once???
here is my code, it supposed to execute at least 5 times ifstream List; List.open("Mailings.txt"); while(List >> Name >> LName >> Snum >> Address >> D...
Apr 1, 2016 at 3:28pm
[3 replies] Last: "White Bridge Road" is going to mess up your reading, because it's 3 w... (by MikeyBoy)
ERROR in code , BIN-DEC converter
Hello i have an issue with the code in line 37 the code is for : convert from DEC to BIN & BIN to DEC + Addition & multiplication of two BIN numbers ...
Apr 1, 2016 at 1:47pm
[1 reply] : result = int or_bin(myqueue , myqueue[i+1]) ; What's the int do... (by Moschops)
by trudyk
build node tree in c++
Can anyone please help. I have to create a program that will read in an expression from a text file eg if(x>0 && x<9), and correctly build a node tree. So far ...
Apr 1, 2016 at 12:56pm
[no replies]
SDL2 sprite class issues.
I'm trying to create a sprite class that loads and draws sprites. I'm getting the following errors. syntax error: missing ';' before '*' missing type specifi...
Apr 1, 2016 at 11:06am
[18 replies] Last: naturally that would work but this is a function that loads a texture... (by a10e29)
Project configuration settings
Hello All, While compiling VC++ apps, getting the below error . PLease advise. C:\documents and settings\narsips\desktop\trendsetter\vs\smoothdata.h(35) : e...
Apr 1, 2016 at 10:56am
[3 replies] Last: It seems you have no entry point to your program, i.e. a main functi... (by MikeyBoy)
Program Challange
The below program executed successfully. but I have a confusion how it will works. Can anyone explain the program execution. #include <iostream> int main () ...
Apr 1, 2016 at 9:48am
[2 replies] Last: When you write: std::cout << "Hello world"; the compiler looks at th... (by kbw)
by homing
bitfield integer problem
Hey, Does anyone know why this bitfield integer is -1 int my_int : 1; my_int = 1; std::cout << my_int << std::endl; //here it outputs -1 my_int = 0; std::c...
Apr 1, 2016 at 8:32am
[2 replies] Last: ahh :D thank you :) (by homing)
Std::find_if question
function template <algorithm> std::find_if template <class InputIterator, class UnaryPredicate> InputIterator find_if (InputIterator first, InputIter...
Apr 1, 2016 at 7:26am
[4 replies] Last: template <class InputIterator, class UnaryPredicate> InputIterator f... (by keskiverto)
How to store a variable number of parameters in a class?
Hi, I have a class that executes a member function in its destructor, to ensure the functionality is performed when abandoning the scope. It can take a param...
Apr 1, 2016 at 6:49am
[5 replies] Last: Damn. I didn't know about that. That's a really nice feature. (by helios)
question about Cin
i am writing a program the reads 5 digit zip code and calculates check digit. take a look at a piece of my code cout << "Enter your zip code followed...
Apr 1, 2016 at 5:47am
[1 reply] : #include <iostream> #include <string> int sum_digits( int zip_code )... (by JLBorges)
i need fresh eyes on my code
......
Apr 1, 2016 at 3:58am
[2 replies] Last: std::string digit_to_string( int digit ) { static const string s... (by JLBorges)
Recurrsion Maze
im having trouble implementing a loop to read the starting points from a text file allowing the user to answer if those are to points they want to use below I h...
Apr 1, 2016 at 2:33am
[no replies]
Getting my program to print out users saving of every year not just the last year
Hello I writing a program that asks a user to input a deposit amount, the posting frequency, and how many years they plan to save. I am able to print out the fi...
Apr 1, 2016 at 12:03am
[1 reply] : First of all, please surround your code with the [code ][ /code] (Remo... (by HOWDOIAIM)
April 2016 Pages: 1... 212223
  Archived months: [mar2016] [may2016]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.