General C++ Programming - February 2013 (Page 31)

displaying variables from a function class
 
Hello, I am very new to C++ can some one help with the following problem. I am trying to display a variable from a class function the code works in debug but th...
[2 replies] Last: Thanks for your help that worked I am also changing the variables and ... (by jdwwap5)
Equation help
 
void Layer::DrawLayer(int maxx, int maxy) { SDL_Rect loc; loc.x = 0; loc.y = 0; for (int i = 0; i < (maxx*maxy); i++) { if(i == 0) { loc.x...
[6 replies] Last: holy cow it work thank you :O :D :3 <3 (by tianajrp)
Shortest path through sudo-linked list
 
Hello everyone, Ill start out by saying im not an extremely experience programmer by any means. I am needing to code a shorted path algorithm through a sort...
[2 replies] Last: As your `weights' are all the same, you could simply use Breadth-First... (by ne555)
class destructor and new and delete
 
Hey peoples, This should probably be posted in beginner forum but it looks pretty busy in there. I didn't see anything in the tutorials that really talks about...
[3 replies] Last: K thanks guys was trying to avoid a lot of stuff I clearly should be d... (by cPlusN00b)
Multiple inclusions of a Header File
 
I'll start with my code. #ifndef H_cylinderType #define H_cylinderType class cylinderType { public: void getRadius(double radius); void getHeight(double he...
[11 replies] Last: Like I said, I was re-working it. This is what I've come up with: #if... (by menious)
Declaring arrays
 
I haven't posted on this forum before, so sorry if there's some type of etiquette I'm missing, or if this problem has been addressed before. I can't find a solu...
[7 replies] Last: I see... So, I was misunderstanding the way the compiler works by assu... (by lastDollar)
by hvigil
How to create a container class.
 
Can anybody show me an example. I know that it's a class that contains data from another class I just do not know how to make them both work together.
[1 reply] : There's a nice example of a bag container here: http://www.cplusplus... (by AbstractionAnon)
C++ Problem
 
If/Else Homework A “magic” number is an integer in which the number is equal to the sum of the cubes of its digits. Write a program to determine whether a ...
[2 replies] Last: Hey double posts, the above works or I posted the solution in your oth... (by rcast)
by Qedg
Panda3D and load_model
 
I am new to panda3d and am trying the hello world. I have gotten the program to run with just: PandaFramework framework; framework.open_framework(argc, ...
[no replies]
Why my palindrome dont work help me please
 
here is my code, the issue is its not determine if the value is a palindrome or not. // unit 5b.cpp : Defines the entry point for the console application. ...
[1 reply] : You never call the isPalindrome function. There is also a problem wit... (by Peter87)
find empty inventory slots
 
I made two dimensional array to represent my (game) inventory. Slot is empty if its value is 0 and 1 if not. Now i need to find if i can put new item in my inv...
[2 replies] Last: Yea, i got all wrong with rows and columns, should be 2x4 to find. Loo... (by morando)
non restricted and restricted linear data strcutre
 
can linear and non linear data structure can be used together in a program
[4 replies] Last: so its measn that restricted and non restricted linear data structure ... (by newworld)
Matrixoperations (with Eigen?)
 
Hi, I have two 3 dimensional descritest curves describt by 3 double arrays per curve (each curve has one array of doubles for x, one array for y, and one arr...
[no replies]
Data structure in C++
 
To check if a set B is a subset of A or not. Which data structure to be used to store set A for quicker response(linked list/hash map)? What if I want to check ...
[1 reply] : It is enough to sort the both sets and to use standard algorithm std::... (by vlad from moscow)
header file
 
Hi all, i just joined here. I appreciate if you could help me debug my code. i am using dev-c++ and created the following files just to see how to work with he...
[3 replies] Last: Thank you cire. The problem was that I had not added them as a project... (by farzadyousefian)
Help please
 
Hello everyone... can anybody help me with that please! which component like a memo, the c++ borland give us? I want a component to add a text but also...
[2 replies] Last: ty for answer. And where is Qt in c++? (by steliosc1)
Why Not Printing Simple Character?
 
I am reading a character from file '☼' this character is typed in notepad by pressing (ALT+15), now I have to print this character and the value 15(Respective...
[1 reply] : "☼" is no ASCII symbol, it is UNICODE. if a character is in unicod... (by DonLuccar)
fscan bad pointer
 
What's wrong with this code? if (myPlayerFile) { int data = -1; string lol = ""; fscanf(myPlayerFile, "%s", &lol); // s Player.setName(...
[8 replies] Last: you're welcome :) (by Fransje)
nested switch
 
can anyne plz give me a program that can be used with nested switch and if else statement and give same output
[no replies]
Sorting 2 Dimensional Array problem
 
Hi, I am new in C++ programming. I got a question that I don't know how to answer. It is about sorting two dimensional arrays. So here is the question. I mus...
[2 replies] Last: But i need to arrange them . I need to accept 5 different names and ar... (by danielZX)
February 2013 Pages: 1... 2930313233... 43
  Archived months: [jan2013] [mar2013]

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