General C++ Programming - February 2012 (Page 24)

Need help determining which C++ implementation to use...(learn)
 
Hello guys i've studied c++ for some while now, I wouldn't say I put 100% effort in but I'm atleast intermediate. Before that I was doing some work in visual ba...
[3 replies] Last: Another IDE which makes GUI design really easy is Qt. That is worth c... (by Stewbond)
by oonej
Cascading Member Functions (1,2)
 
Question about Cascading member functions. I need an output that takes a Matrix class and transposes it. we will call this function transpose(); Since its ca...
[23 replies] Last: perhabs you dont have the keyword const before your Matrix object,... (by therockon7throw)
Getting a list of filenames
 
I'm trying to get a list of filenames with a specific extension in the current directory (non-recursive). I want this to be platform independant so I am using t...
[4 replies] Last: Cool it works. Thanks. This is now very clean: #include <vector> #... (by Stewbond)
use object as parameter
 
How can I use an object of a class as parameter for a another class (as overloaded constructor). Man this is confusing but I hope I explained it right. Look for...
[3 replies] Last: // define a variable using Benefit in Employee Employee(string fir... (by closed account o1vk4iN6)
Calendar.cpp
 
#include <iostream> #include <cmath> using namespace std; int main() { int year, first, currentMonth=1; cout << "Please enter a year for the ...
[4 replies] Last: As Vins3Xtreme notes above the following (from lines 18 and 19 of your... (by cire)
can't access public object inside a class
 
I declare an public object of 'Benefit' class inside 'Employee' class name 'benefit'. In the code below (bold area) should I be able to acheieve the following. ...
[3 replies] Last: Thanks you guyz. Your prompt help saved me a lot of time :) ...will ke... (by pagalbilal)
C++ standard & size of a template array
 
Hi! Many people browsing through these forums are familiar with the sizeof -operator in C++ . The use of it is simple: sizeof(int); // Return the size ...
[8 replies] Last: As you know, this only works with int arrays. Actually, that method... (by cire)
by rucafe
still can't get it..
 
I posted this last time but I am hoping I can get some more input. This seems like a pretty easy task to implement but I can't figure out the best way of doing ...
[8 replies] Last: You are very likely clobbering memory you shouldn't be. The %s in th... (by cire)
Problems?!
 
Input the scores, store in array, find the average of those scores, then display the scores out of the array in ascending order. everything works but the sort ...
[2 replies] Last: Also your sum code wont work like you want it to. At the moment the s... (by Hippogriff)
Finding Three Dimensional Force Vector
 
I was looking for a way to a find three dimensional force vector. I currently in high school taking physics and thought is would be cool if I created a program ...
[2 replies] Last: you can use structure: struct typeVector3D{ double x; double... (by Vins3Xtreme)
Simple Payroll Program
 
This is my program so far: #include <iostream> #include <iomanip> #include <string> #include <cmath> using namespace std; //**********// int main() { con...
[2 replies] Last: I think I managed to combine the loops just fine. Everything checked o... (by closed account 2NyT0pDG)
Non-Ivalue in Assignment Error
 
I am new to programming and trying to complete a program for school. The assignment is to compute the perimeter and area of a triangle, given the input of the t...
[5 replies] Last: Got it. Thanks!! (by dzimme2)
Palindromes
 
what would I need to put in my coding to see if what the user inputted was a palindrome... some sort of search function?
[4 replies] Last: Very helpful! Exactly what I was looking for! Thanks guys (by kcomp11)
by atjm88
Failed to load image
 
Hi, I tried to run the following code in Visual Studio 2010 C++ but then it give an error: fatal error LNK1120: 6 unresolved externals May I know what happen...
[1 reply] : I haven't done any programming in Visual C++, but at first look at the... (by hnefatl)
Can Someone please help???
 
Hello I'm making a cd player for windows and I have the option to set it as the default cd player. It works ok when I Click on the CDRom Drive it opens up my cd...
[2 replies] Last: You might have better luck on a forum dedicated to Win32 coding. We're... (by Moschops)
A sorted linked list
 
I'm using a linked list to store ints and want to implement a way to ensure that no duplicate ints can be put in my linked list. What are some (conceptual) ways...
[3 replies] Last: Consider the list L is always sorted. Then when you want to insert a v... (by aquaz)
SDL Surface Array
 
I want to store all the surfaces in an array for efficiency. I have... SDL_Surface *CharLib ; This dosen't work. Should I use A list of objects storing ...
[3 replies] Last: It's impossible to know where the problem is when we can't see the cod... (by Peter87)
Memory Leak issue in Visual Studio 2010
 
Hi, I have migrated my project in Visual Studio 2010 after that when debugging the application i getting following error. Loaded 'C:\WINDOWS\system32\mfc...
[4 replies] Last: I think that you should use a deleaker or similar debugger... (by Spiker)
by tercel
How to create a binary file with write()
 
I want to create a binary file. But when i input string "hello world!" for the file, the following code cann't create a binary file, it create a text(ASCII) fil...
[3 replies] Last: What exactly do you mean by a binary file? Why do you think you are n... (by mpauna)
Why can't I access the length of my array? (1,2)
 
I have the following function: string Polynomial::toString(const int arrOfNumbers ) const{ for(int i=0; i < arrOfNumbers.length() ; i++){ } re...
[21 replies] Last: you can apply dischs method to create a templatex function instaed. ... (by closed account o1vk4iN6)
February 2012 Pages: 1... 2223242526... 43
  Archived months: [jan2012] [mar2012]

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