Beginners - June 2013 (Page 40)

I'm begginer c++ programmer . Array of pointers?!
 
I'm beginner C + + programmer. I have to implement a code that asks you to simulate the election of the president (in a simplified way). The text says to predic...
[3 replies] Last: Sure, post it! (by MikeyBoy)
by jayk99
second function skipped by main
 
Hi, I have been working on an assignment and having some seriously frustrating issues, and I hope someone can point me in the right direction. The assignment is...
[7 replies] Last: Sorry about all the white space. I am using a Linux based text editor ... (by jayk99)
by JulioR
For Loop is not working
 
Hello, I'm having an issue with my code when doing the For Loop. I have to input single digit values in my code where it adds up all the values I input and ...
[5 replies] Last: ah ok just never seen a variable declared in that manner XD. I always ... (by gobiking)
riddle game
 
im trying to make a riddle game where your correct answers get you to the next level, but having a hard time coming up with what way to go about it any ideas wo...
[6 replies] Last: I would go about having a couple of functions names of functions will ... (by gobiking)
by stux16
replacing char
 
I want to replace a cout with spaces //I have cout << "-" I want to replace - with just one space everywhere in my program how can I do that?
[3 replies] Last: you need to implement a character search, I'll assume that you already... (by Tertius Kgatla)
Problems with Struct being called from other functions
 
So my code has a struct called Storage that first appears in the function void List::set(int no); For test sake I have it displaying the results inside that...
[2 replies] Last: how would i make storage a pointer to the object array instead? (by Steph Mackenzie)
cannot convert ‘double*’ to ‘double’ in assignment
 
not sure what I did wrong... the error comes from line 2 double pmodelw; pmodelw = new double ;
[2 replies] Last: That was so easy, dont know how I missed that! thanks (by dhilchie)
by mrm40
class member call.
 
hi, I'm creating a binary search tree. class code: class bstnode{ private: int key; bstnode *left; bstnode *right; public: //bstnode bst...
[7 replies] Last: Do you mind sharing the code snip-outs so I can help out?? (by Tertius Kgatla)
Null character
 
Character strings in C++ are automatically terminated by null character. Explain how this feature helps in string manipulations.
[10 replies] Last: I am mostly pointing out the ambiguity in the question: both C++ strin... (by Cubbi)
Does || not work in if statements?
 
Does something like this not work or was there just something else wrong with my code? I had a whole bunch of if statements with || in it and ended up changing ...
[7 replies] Last: I understand it a little better now, thanks. (by Dominic4774)
Referenced from
 
Hello, I have some code, though I don't think it is necessary. I have the following error: Line Location Tool:0: "StartProfile::Player::Player()", referen...
[3 replies] Last: One or both functions are not implemented. You have declarations for... (by AbstractionAnon)
What is the cost of resizing a vector?
 
Suppose I have a vector and I want to size it somehow, but I don't want to initialize values. This website says that the "resize" method of vector will value-i...
[7 replies] Last: [quote=erock]You will see that the allocation of memory doubles each t... (by Chervil)
Duplicate symbols
 
Hey y'all, I have the followingcode: /* * Startup.cpp * MyMultiplication * * Created by Nicky on 6/1/13. * Copyright 2013 __MyCompanyName__...
[8 replies] Last: i get two errors. You didn't implement those functions (constructor/... (by coder777)
What operator should??
 
My question is what operator should i use in my loops to tell if the char is in the string variable string password; password = "red"; char letter; cout <...
[4 replies] Last: Thanks guys for the help. Got it! (by mauri11)
Question regarding pointers and vectors
 
NOOB here I am trying to learn pointers, I had a question in regards to how pointers 'point' with vectors, or I think that is my question. for example...
[1 reply] : I may have figured it out but correct me if I am wrong. Calling the p... (by Hambone)
For every "new", there should be "delete"
 
Every time you use new keyword, there should be also delete keyword. In short, the ratio 1new/1delete. Could anyone please help me imagine why? Yes, followi...
[7 replies] Last: > Every time you use new keyword, there should be also delete keyword.... (by JLBorges)
by lbi11
c++ print monthly calendar
 
the program isn't asking for a year but simply just outputting a few months in the grid like format. i've never taken any programming class so this is all WAYY ...
[1 reply] : Go noles! (by stux16)
Compile error..
 
I just wrote this code to implement a basic function but I am getting weird compile errors. I am using Ubuntu and compiling on bash via g++. #include <...
[2 replies] Last: that's exactly what I intended and what was missing. thank you very mu... (by smahamoo)
Compiler Error When I Compile More Than Once
 
I'm currently following along in a book that teaches DirectX. I started using Dev-C++ but after complications with the software and DirectX I moved on to Code::...
[1 reply] : I have ABSOLUTELY no idea what I did. but I got it to compile correctl... (by genebit)
If/Else if statements not working with string.
 
I am having trouble with my else/if statements. When I run my program it only displays the if statement. The else if statements don't work at all, and I get an ...
[6 replies] Last: I put "highest" instead of length and still wont work here's my new ... (by MarcoEE)
June 2013 Pages: 1... 3839404142... 49
  Archived months: [may2013] [jul2013]

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