General C++ Programming (Page 3)

**How to evaluate a prefix expression with Stack -- Logic Errors**
int exp(char* input) { char*token=strtok(input, ""); stack <int>num; stack ...
[3 replies] Last: Could anyone take a quick look at this? I am completely lost. My under... (by Gary 96)
Simple Array Handling
i dont understand why my code is not compiling #include <iostream> using namespace std; void en...
[1 reply] : Line 13: A variable dimension is not standard C++. C++ standard requ... (by AbstractionAnon)
Implementations of Structures
I don't understand why my code is not compiling /* Using the program you developed for Home...
[1 reply] : Line 25: The ; is in the wrong place. Move the ; from line 25 to lin... (by AbstractionAnon)
Does speed determine my success as a programmer?
Hello I recently finished a problem that took me around 8 hours to finish. I broke the problem down ...
[8 replies] Last: Did you solve it in an efficient way? This is the process I used t... (by gutty333)
data structure that have these properties ?
is there a data structure (to contain sorted elements) where you can access items by indices and at ...
[no replies]
Calculating fee charges
Can't put into the right words for what I need to ask, so I'll explain what's going on. Say an inte...
[3 replies] Last: Because I was trying to use a counter, yeah? I thought so, I just coul... (by Guy1988)
by iznar
Access Class Member
Let's say there are 3 classes A, B and C. B is inherited from A. C is a friend class of B. Can ...
[1 reply] : From C you can only access member functions that are declared public o... (by booradley60)
by ncaver
Rainbow Bracelet
for each stone: name of the stone, color of the store, weight of the stone, and price of the store ...
[1 reply] : And the question is ? (by SamuelAdams)
program does not compile
what is wrong with this program? It is in 3 separate files and I´m using Xcode. file print.h ...
[3 replies] Last: [quote=CptJY]I think you should also declare NCOLS and NROWS as extern... (by Peter87)
Using Delimiter separate string and identify that string
I have a string such as " ***abc 1 2 3*has 1 3 2**2 ask 21 ". You can see there are asterisks which ...
[6 replies] Last: > Can you please share your code with me? Here's some code which you ... (by JLBorges)
Class constructor help please.
Hey guys, I need help with my hw. My teacher wants us to create constructors to a class he already c...
[2 replies] Last: This class has exactly one explicit constructor (ctor). A constructor... (by mbozzi)
code help - error compiling
I'm getting an error message saying undefined reference to my function 'f' and 'pow'. Can someone te...
[2 replies] Last: Please use code tags. ... (by integralfx)
String subscript out of range
Hey guys, I was doing nothing so I made myself an exercise in C++. I created a file (Password.dat) a...
[3 replies] Last: @cire I just simply let the OP know a way to fix the [Error: string s... (by SakurasouBusters)
How to know if a pointer points to dynamically allocated memory or not?
So I have searched on the internet and found that there is no way to find out if a pointer points to...
[8 replies] Last: @helios Both GNU and Clang allow segmented stacks Hmm -- good to kn... (by mbozzi)
Can someone please tell me what i am doing wrong. It will run but when it does they all say incorrect and 0%.
I have to write a program helps your instructor grade quizzes. The program will read a file containi...
[2 replies] Last: thank you @whitenite1 (by detroit31312)
How to transpose spatial coordinates into an array
Hello everyone, I want to start off by apologizing if this is an improper use of the forums. At ...
[2 replies] Last: I have to ask my coordinator and get back to you, I'll reply within t... (by donaldJrumpf)
Help please
I honestly don't know how to code this. If/else, Do/while, while or for loop is hard for me to under...
[3 replies] Last: A comment is any line in the program starting with // or, multiple lin... (by kemort)
Simple c program help?
1) Clunker Motors Inc. is recalling all vehicles from model years 1995-1998 and 2004-2006. An int va...
[1 reply] : What help do you need? BTW, Q1 talks about norecall, but your code sn... (by doug4)
by bozmin
private vector
I keep trying to pass a private vector from a class to an other, but still doesn't work even as a F...
[5 replies] Last: but i am having a crazy time trying to use it on a vector of class s... (by AbstractionAnon)
by PacR
Get time in milliseconds and check how much time has passed.
Here is my code: #include <iostream> #include <time.h> int main() { time_t time0; //...
[11 replies] Last: Thank you for all of your help. From what i can see it looks like chr... (by PacR)
Pages: 12345... 31
  Archived months: [jul2016]

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