Beginners - November 2013 (Page 13)

by bebarb
Help implementing a Dynamic stack template
 
The title may be a little misleading, as I have the stack template working just fine. I can't for the life of me figure out why I'm getting an unresolved link e...
[3 replies] Last: No I figured it out. I'm an idiot. I declared the funtions in question... (by bebarb)
c++ client with php monitoring server
 
I'm trying to make a simple project. first i will make a simple c++ client, it function is generate a random string and ID. Then if I run the c++ client, and if...
[no replies]
Cannot fix this compile error
 
Below, the line after public, it my compiler is complaining about the commas and I don't know how to fix this. class NameRecord{ private: //vars are priv...
[1 reply] : for your constructor you are putting the variables name instead of the... (by Garion)
ATM machine program help...
 
I need some help with my atm program. I don't remember how to inFile. I need to use that so that the users who log in are saved onto the program for future use....
[no replies]
First c++ homework assignment
 
I have to store names, ask for a users input name, add it to the stored list, display it, then remove a name from the list and display it. So far I have done th...
[1 reply] : java and c++ share a lot of similarities. It sounds to me like what yo... (by bebarb)
F(n) = 2 + 4 + 6 + ... 2n recursive function program
 
Hello all, I'm working on trying to write a recursive function to compute F(n) = 2 + 4 + 6 + ... 2n. I think I have the correct formula or at least close and ...
[19 replies] Last: Oh ok. Hmmm. Will have to think on that a bit. Thanks. (by newlearn33)
Question regarding passing by reference errors
 
Hi all, Quick question regarding passing by reference. I've looked at a zillion samples of it but still can't figure out how to do this properly. Let's say I...
[6 replies] Last: Thanks! (by newlearn33)
by Kaput
C++ and flow chart
 
Can anyone help out with Flow chart... im very noob at C++ yet ... From the code below i need to make flow chart #include <stdio.h> #include <math.h> st...
[no replies]
by aatrox
Making an array with using malloc need help.
 
Hello I have to do exercise in which i cant use " " , and in which i can use malloc(), free(), realloc() and calloc(). I need to make an table which for example...
[no replies]
by hilft
Classes and inheritance question Help!
 
Hi, I don't know why the output is 22 instead of 12. can someone explain me the lines that made it 22? #include <iostream> using namespace std; ...
[3 replies] Last: > If it did it like this then get() would not be called > and both bo... (by ne555)
inner class - urgent!!
 
hi, i got lots of errors while using inner class:tenant in class:building i don't know why.. could someone help? here are some of the errors, i coudn't copy ...
[3 replies] Last: oh.. thank you!! finally there are no errors,indeed the problem was at... (by katty123)
Homework Help
 
This is my final homework assignment. I've been looking over these errors but I need some help. Is anyone out there? #include <iostream> #include <vect...
[1 reply] : template <typename T> /*¿return type?*/ mlist<T> :: front() { re... (by ne555)
Program crashes with invalid input.
 
First of all, thank you for the great information on this site, I've referred to it regularly during my intro to C++ course and have found all the answers I nee...
[4 replies] Last: long double main, I made the changes as you mentioned, all works great... (by zensailor)
help me to understand these errors
 
machine.cpp: In member function `bool bottleStack::pop(int)': machine.cpp:24: invalid types `int ' for array subscript machine.cpp: In member function `bool ...
[3 replies] Last: hey guys thanks for the help. I tried to change what you guys suggeste... (by byronflds)
how to convert lowercase to upper case without using string.h?
 
how would I get this to work right now all its doing is giving every value an ascii of 222 capital I with an accent. void Upcase (char S[ ]) { for(int i ...
[2 replies] Last: By this: S = S[(i-32)]; I think you mean this: S = S - 32; ... (by booradley60)
Push back values in a struct
 
Hi guys, I'm currently working on a project for my intro programming class. I currently have a global struct defined as so: struct GeneSequence { char nuc1; ...
[4 replies] Last: (tmp.nuc3 == 'U'||'C') should be (tmp.nuc3 == 'U'||tmp.nuc3 =='C'... (by Chervil)
Sort string
 
Hello, how to sort strings? I know how to sort string arrays, but how to sort one string lenght to another? Here,s function how I sort strings arrays void Ana...
[2 replies] Last: Yes, I'm sorting strings my length (by deividas717)
by Garion
Using Getline() and Peek() functions
 
I've been trying to find a way to stop an infinite Getline() loop from reading the last line in a file. I'm hoping to be able to pause a parsing program when i...
[2 replies] Last: That does exactly what I was hoping for. Thank you again Chervil :) (by Garion)
by binso
Comparing arrays within a class.
 
I need to compare an array within a class by using overloaded operator <. It is within the bubble sort part of it. I have put in the friend bool operator, but ...
[11 replies] Last: Ok, the problem was with the input to begin with. Line 70 and 75. I ch... (by binso)
Vector and Pointer Error C2039
 
I'm trying to write a program for a class where players participate in a rock paper scissors tournament. I'm currently working on option 2 which is supposed to ...
[4 replies] Last: What does your people.h file look like? That could also be important t... (by godachilles)
November 2013 Pages: 1... 1112131415... 80
  Archived months: [oct2013] [dec2013]

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