Beginners - July 2009 (Page 14)

Segmentation fault
 
hi frnds below is my code when i run this program iam getting the error message as segmentation fault.can any one tell me what is segmentation fault and how to ...
[8 replies] Last: How many more times will you need to hear this? The program you poste... (by helios)
Question regarding pointer initialization
 
Hi all, I have one simple question here. I know that the class primitive members are automatically initialized to 0 or "" if they are string. But is this ...
[10 replies] Last: Thanks for posting the examples and text from the std. I was having t... (by kempofighter)
How can I avoid duplicate sets with elegance
 
Ok. I have a program that basically counts (I'm basically writing this for fun over the summer for the heck of it). It keeps track of a set consisting of 5 se...
[1 reply] : http://www.cplusplus.com/reference/stl/set/ It will also automatica... (by helios)
by NGen
Global Object Pointer
 
I'm making a sort of system that will process every object in a list, and will use a function inherited by another class. Every object in this system will inher...
[5 replies] Last: Is it possible to still have the derived classes to have their own co... (by Disch)
by lCaYnl
I'm new; can someone take a look at this?
 
I just started learning c++ this week, and as such, I dont yet have a great understanding of really anything xD. I know that there are errors galore in this pr...
[6 replies] Last: /*else if (y == 5) { cout<< x%z; } You can use: cout <<... (by NGen)
How to inherit from one class to another
 
Hi Guys, I'm having a problem with inheritance. I have created a class called cteams and when the program runs it asks the user to enter team names which are...
[11 replies] Last: The problem im having here, is I want it to return a string and I'm no... (by DragonKnight)
PlaySound and char *
 
Hi, As most users here, I'm new at C++. I have quite some programming experience, mainly in GML [Game Maker Language], PHP and Visual Basic. I use GML freque...
[1 reply] : Read through the Language Tutorial on this site to learn more about ... (by Duthomhas)
Can arrarys in a class store data from another class?
 
Hi guys, I have set up a class where the user enters a team name and it will display that name and also the starting points for that team (starting points a...
[8 replies] Last: Having set_team1_name in the class which represents just one team make... (by Bazzy)
Finished an online introductory course...where to go from here?
 
Hi. After a 6-week course, I know a bit about VC++, but I'm still a noob. Unfortunately the website only had an introductory course, so I'll have to look for so...
[5 replies] Last: Yes, I meant game programmers. (by akstylish)
Compile time error
 
I'm getting an error when i'm compiling this function. Its supposed to take a date and turn it into a julian day. I just used the formula provided to do it an...
[7 replies] Last: It would be julianDay = long( intRes1 + ... + 1720994.5); ... (by jsmith)
Compilation error, where did I go wrong?
 
#include <iostream> using namespace std; //include protype functions int main() { char choice; bool terminate = false; const int SIZE = 10...
[5 replies] Last: Mmmm... smells good ... chocolate... (by jsmith)
pointers for a beginner
 
Hello, I have a simple code where I am trying to store multiple arrays in an object for global retrieval. A simplified version of my cpp code is the following:...
[4 replies] Last: [regarding memory leaks] Yeh, I just wrote the code hyperspeed to show... (by trahancj)
string type max lenght
 
Hi, last week i found that i can define a variable as a string type, ans this will be the same that a char vector (char name ), but with the teacher and class, ...
[4 replies] Last: Thanks a lot :) (by rv53705)
by mulch
need some advise with a program for a game
 
ok, so i need help mostly with making the decimals round to 2 places (ie.0.50) i'm not the best at this, so if you wnt to change mroe of it, to make it easier ...
[8 replies] Last: A switch wouldn't make much of a difference. Some kind of a lookup tab... (by jmc)
Looking for direction with assignment
 
I've given it some thought and I have decided not to seek outside help until I speak with my professor since this is for a test grade. Thanks
[2 replies] Last: Thanks for posting that helios, but I don't think I'm having an issue ... (by sonowilson)
Boost library path
 
Hi, I've downloaded the Version 1.39.0 from http://www.boost.org and I'm using Dev-C++. In the IDE I can add paths so that I can #include using <> (Tools -> Com...
[1 reply] : Many of the boost libraries don't need to be linked, if you read at ht... (by Bazzy)
Binary Search Trees - InOrder Traversal
 
Hi, I have a big problem to understand the recusrsive way of implementing InOrder Traversal - BST. Lets have a look: void inorderTraversal( Node root...
[7 replies] Last: Thank you :-) It is clear to me now (by waelali)
by boon
Pointer to array, problems
 
I am trying to make a program which accepts an input number from a user. This number will then be used as the variable in a 2-dimensional array grid. What I...
[3 replies] Last: Oh man.. I am an idiot... lol.. Thanks alot for catching that, jmc and... (by boon)
by Pether
Creating GUI in C++
 
Does anyone know how to create a quick GUI in C++? Maybe in the same way Visual C#? Drag and drop boxes, buttons, etc. I am only looking for the basic forms...
[3 replies] Last: Thank you. I dont know Dev C++, so dont think that is for me. I lo... (by Pether)
Codepage
 
Hi... I want to know how to change the code page and the font in c++. I need syntax and the name of header file to be included.
[1 reply] : Why start a new post for the same topic? http://www.cplusplus.com/for... (by Duthomhas)
July 2009 Pages: 1... 1213141516... 20
  Archived months: [jun2009] [aug2009]

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