Beginners (Page 60)

Save and Load text file
Trying to write a way to save and load a game. and i have done this to test it. now the problem i...
[2 replies] Last: You can also use Save << A << " "; (by Atyab)
error with unordered_map + hash functiom
First, I just learn hashing Second, I wrote the following code to: Whether unordered_set is subset ...
[7 replies] Last: could you show me please how to provide hashing function for Candidat... (by MiiNiPaa)
enum initializing
how can i initialize double or char or string to enum? enum players{ player_1=/*'a'*/, play...
[5 replies] Last: No it is not an enum. You cannot use enum the way you want because the... (by MiiNiPaa)
by venros
C++ Sort & Operator Overloading < (less than)
I have a vector of pointers that point to Objects(string name, int score). I want it to sort the ob...
[9 replies] Last: what If I had multiple classes and wanted 1 vector of pointers to com... (by MiiNiPaa)
Allocating dynamic memory class in void function
I am having trouble allocating dynamic memory to a class in a void function and later using it in th...
[3 replies] Last: Making your code obfuscated and then complaining that it doesn't work.... (by ne555)
Compilation problem: pointer
Hi guys ! I'm a beginner in C++ and I create a program to apply the linked list concept. I've one...
[1 reply] : mySortedStack::pop() invalidates this->next. See if you can spot why. (by helios)
C++ Question Solved
Hi all. I am new to the forums and have been working on a game application and have come across a so...
[12 replies] Last: thanks! I can do both actually and prefer to read and see it. Ill chec... (by DreamAces80)
by Falek
Replacing user entered data and only accepting numbers
I need to make a program and part of the program needs to get the users social security number and d...
[3 replies] Last: will only accept numbers #include <iostream> #include <string> #inc... (by closed account j3Rz8vqX)
I'm having a problem on passing a struct array to a function. Help me please.
I'm now getting closer to finishing my program but I am having a problem in outputting my inventory....
[2 replies] Last: Looks like you need modify line 116 to PDISPLAY(newProd, val); a... (by dangrr888)
by h4ever
is there non const variant of c_str()?
is there non const variant of c_str()? I used this to convert from string to char const char *...
[14 replies] Last: Is it possible to use similar solution but for char * buffer It uses ... (by MiiNiPaa)
Write your question here. Hello! I moved to next task, to write a program that converts miles in...
[1 reply] : line 13 should be either int a; or better yet int mile; I would al... (by giblit)
Replacing Permutations within a string
I have a problem. I have a string of determined length that includes 1s, 0s and ?s. For example, my ...
[1 reply] : Binary counting will give you the combinations. e.g. 00000000 000000... (by mik2718)
by mehak
can anybody tell me what is there in a no null reference?
[1 reply] : You cannot bind a reference to nonexisting object (without some tricke... (by MiiNiPaa)
by mehak
is the global data member shared among the various objects of the same class?(this is true in case o...
[4 replies] Last: thnku :) (by mehak)
by mehak
destructors,constructors,virtual functions
when an object of child class is created,first the parent class constructor is executed and then the...
[1 reply] : Constructors are called in order from most base to most derived class... (by MiiNiPaa)
by tdk93
How does this program work
How does the following program work? What's the use of 34 here? #include <stdio.h> char *s...
[2 replies] Last: Effectively all it's doing is something like this; printf("%c%s%c... (by Chervil)
by CDavis
Functions average
I know this is a simple problem but I know i'm missing something in the array but not sure what. ...
[1 reply] : result = (double) array / 7; You are accessing element with index 7... (by MiiNiPaa)
by tdk93
reading from file, prints twice
If the text document is like this "Gone baby Gone" It prints out the same sentence twice But if ...
[1 reply] : There's a logic error. When the fgets reads the last line from the f... (by Chervil)
returning object seg faulting
I've written a member function which returns an object of the same class. But it seems to seg fau...
[6 replies] Last: Ah, thanks. I removed internal_string = str.internal_string; ... (by rozick1)
by Daneos
MS SQL Library?
Hello everyone, Im very new to c++ and dont have very much experience. But Im working on a programm...
[no replies]
Pages: 1... 5859606162... 84
  Archived months: [may2014]

Cannot post in this page. To post a new message, go to the first page.