General C++ Programming - April 2012 (Page 11)

seethrough texture help
 
Does anyone know if it's possible to make parts of a bitmap texture seethrough? Like, if a specific part of the bitmap is colored with a certain color, it's see...
[4 replies] Last: The easiest way is to store the transparent color in the image itself.... (by Disch)
problem in read mp3 multible file and put them in a list
 
how to read mp3 ID3v1 tags from directory and put them in a list???
[8 replies] Last: thanks :) thats very helpfull :) i would never do it that alone :) (by stathis)
SUPER simple C++ multi-threaded server?
 
I'm working on a simple, text-based console RPG game by myself to play online with my little brother and maybe 1~2 friends at most. I've got the RPG mostly set ...
[2 replies] Last: Thanks, I'll take a look at this one. (by Pikmeir)
by dlh
Template Template Class Error, Policy Based Design
 
Hi, I am getting the following error when compiling my program: main.o: In function `main': main.cpp:(.text+0xd65): undefined reference to `Foo<A, B, C>...
[7 replies] Last: The name AA isn't necessary (and is redundant as said earlier) Equally... (by guestgulkan)
Go back to part of code
 
I am making a text adventure, I am a beginner at c++ and I need the code to loop back to a previous part of code every time you leave the shop. Here is my co...
[1 reply] : Use a while loop. Or use a for loop. Use some kind of loop. If you ne... (by Vlykarye)
Pointer to struct member
 
What I'm trying to do is have a pointer assigned to a member of an array of structs so that I can loop through them. Something along the lines of this: s...
[13 replies] Last: Btw. I get a compiler error with Framework's code. It has trouble fin... (by Vlykarye)
Need a help for an exam question
 
Hello friend, I found this question from a pass paper of our institute. can anyone please submit a sample answer program for this question? If it is a great he...
[no replies]
C++ Phonebook project, Need Help
 
I am given the code below and need to add a few things to it: after developing the code i have these are still the things I really am not sure how to finish. An...
[6 replies] Last: Here is an example of using a vector; it is much like an array but it ... (by LB)
hasing and collisions
 
How would hashing be used to implement a table abstract data type? How would the basic operations of insert, delete, and retrieve be implemented? This is a ...
[1 reply] : Search for "Hash Table" and "Bucket" and you'll get some information. ... (by LB)
Using Dynamic Arrays as objects in a class
 
I have a question, if I was creating a program to calculate students final grades how would I have the program repeat for the number of students defined by the ...
[2 replies] Last: 1) Ask user for input. 2) Use user input in a constructor of some obje... (by clanmjc)
queues containing objects
 
I want to use the STL container queue and store objects of my class in it. My question is when i retrieve my object with function call front; can i copy the re...
[1 reply] : Yes. (by clanmjc)
vector swap
 
hi, I have some code with the following line and am trying to understand what that does. std::vector<double>().swap(test); where std::vector<double>...
[2 replies] Last: thanks, that answers my query (by itcplpl)
templated que class
 
I am trying to make a que class so that I can store any type of data in node such as string or int or double or any other class ..... what am I doing wrong?...
[2 replies] Last: Great!!! and also on line 66 I have been "cout-ing" temp instead ... (by mahinkhan22)
by Hurl91
Assigning a value from a file to a 2d array
 
I have two text files to read from. The first has the size of the 2d array. The second has the values to be assigned to the 2d array. Not sure where to sta...
[1 reply] : You can use std::ifstream to read data from the file. 1. First read th... (by Peter87)
Organizing playing Cards into Stacks by the Cards Figure
 
I am reading the cards that are being generated in Deck.h. I am fairly new to this and I have to organize the cards into stacks by their figures, being either h...
[1 reply] : First things first: use code tags. #include"stdafx.h" #include"Deck.... (by yukyduky)
How to use reference pointers or pointers
 
Hi, I need help with this generic question on ref ptrs and ptrs, I don't understand what to do. Write a function that takes two input arguments and provides...
[3 replies] Last: Hi coder777, how would I call your function and shouldn't it return an... (by closed account 4ET0pfjN)
infix to postfix problem
 
else if (stringType == 2) { while (topValue != "("); { postFix.push_back(myStack.top()); ...
[3 replies] Last: Sorry it isn't exactly short (by jgorospe)
HangMan game, beginers.
 
hello, i am in introduction into c++ at school, and i don't understand this project. My Teacher has been sick, so she has been out of the classroom, so can any ...
[no replies]
Need Some Help With a Function
 
I can't seem to figure out what is wrong with the snippet below. It works in Java with a simple class surrounding it. What is wrong here? I am using GNU GCC wit...
[9 replies] Last: #include <iostream> using namespace std; int sizea (int array ){ /... (by lulipeng)
Optional parameters
 
As a matter of convenience, I would like to implement optional parameters into my functions to maintain a legacy interface for a set of users. For example, a s...
[19 replies] Last: Notice the order of the arguments as well as them even being existent,... (by clanmjc)
April 2012 Pages: 1... 910111213... 49
  Archived months: [mar2012] [may2012]

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