Beginners - March 2012

Overloading operators in singly linked list (C++)
 
Hey everyone, I'm working on an assignment and I'm having some trouble figuring out how to implem...
[2 replies] Last: > Here is what I tried to do for the output operator but it tells me t... (by JLBorges)
Sorting a STL List
 
Hi Everyone I am struggling to sort a STL list I have created. I have tried using the .sort() fu...
[2 replies] Last: Use list<>::sort() http://en.cppreference.com/w/cpp/container/list/s... (by JLBorges)
factorial function
 
Can someone tell me why my factorial function gives different output than wolframalpha.com after 22!...
[6 replies] Last: Thanks for all of the replies. @firedraco, I probably will have to us... (by CJC0117)
Creating a Quadratic Equation Solver HELP!
 
Hello, I created this simple program to solve quadratic equations: #include <iostream> using...
[15 replies] Last: I had this code on my laptop since my first year comp science. It seem... (by ariesthechamp)
Pig latin Translator program. stuck... stub program?
 
The program is supposed to basically ask the user for a choice from a menu to translate an entire .t...
[1 reply] : You wouldn't happen to be a student at BG taking CS 2010, would you? i... (by mexicansnowball)
conversion issues
 
i am making a battle ship program for my class, the teacher wants me to use a 2d array to replicate ...
[no replies]
Initializing a character array
 
I have a class with a member variable: char * name. I would like the program to ask for a name, and...
[1 reply] : Our teacher explains they are faster than strings I expect they are... (by Moschops)
Why does this version of the 'swap ints' program work?
 
Why does this program work?/ #include <iostream> using namespace std; void swap(int &a,...
[2 replies] Last: Thanks I understand it better! I don't know if someone would want to ... (by dmanniteaux)
how to sort a linked list using selection sort
 
#include <iostream> #include <string> #include "Employee.h"; #include "EmployeeList.h"; ...
[no replies]
Cannot find error in program
 
I am new to C++ and was debugging the program below. I believe the error is in the if statements whe...
[5 replies] Last: I never meant to say you were wrong. I said that when i tried to code ... (by meurtre)
by GulHK
print chars as the keys are hit
 
Hello everyone. I found this method TCHAR win_getch() (below) on a website which is used for pri...
[5 replies] Last: ok Thanks (by GulHK)
deleted topic
 
.
[2 replies] Last: Undeleted! Hi, I some trouble with the syntax for passing a member o... (by Moschops)
by Skyza
What is wrong with my C++ program?
 
This is my assignment: Write a menu-driven program that will allow the user to select 1 item fr...
[14 replies] Last: Maybe you want to try it like this: string main; string side; string... (by frema)
Input from file.
 
Hey guys I have been working on this for a while now and I decided I needed help. I can't figure th...
[4 replies] Last: Thanks man ill look it over. (by TheNewKid)
Pointer question
 
I have a struct for a linked list, if I declare it like this struct node { const char *sn...
[5 replies] Last: ok I think I understand now. So with the first pointer: struct node... (by doddolfur)
Problem using pointers
 
I have a small issue with my code. My instructor provided the main and we are to write the function...
[2 replies] Last: Thanks so much for your help. I made the corrections and it works per... (by apeachaday)
by vsk23
Map of Vectors of strings
 
Hi, I am new to this forum and to c++. I am writing a program that will create a map of vector...
[no replies]
by hay123
Loop + Random numbers = help needed for a beginner!
 
This is all the info given to me in the directions of the book: How this program works: If a...
[1 reply] : You have some nice equations, but you don't have anything that drives ... (by Stewbond)
question about functions and switch in c++
 
;;;
[3 replies] Last: Yes, use nested switches. (by frema)
Static scope in Class
 
This is what i understood from reading a book, i made this example, it is not working. I understood ...
[3 replies] Last: thanks defining the member did it (by Cristi Stefan)
March 2012 Pages: 123... 71
  Archived months: [feb2012] [apr2012]

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