
please wait
by Ponvo
Storing and converting bases using recursion and exception handling.
|
Hey guys I have an assignment due in 3 days(Wednesday). The program is supposed to take a number from any base and be able to display it in any base as well.The... |
Apr 4, 2017 at 10:24pm
[5 replies] Last: Big thank you to lastchance!!! I made the whole thing :D. (by Ponvo)
|
help!!!!!!! undefined reference to |
i'm trying to compile and run my code but it gives me the error undefined reference to `main_savitch_15::graph<int>::add_vertex(int const&)'.... i can't seem to... |
Apr 4, 2017 at 8:01pm
[3 replies] Last: Hi, ricciopasticcio. The long, boring but utterly useful guide to the ... (by Enoizat)
|
figuring out if letter is uppercase or lowercase |
So i am doing a code in where i enter in initials and from the initials i entered, the code will say if the letter is uppercase or lowercase. I know i would pos... |
Apr 4, 2017 at 6:14pm
[3 replies] Last: There are also library functions that will help: #include <cctype>... (by AbstractionAnon)
|
by kubanm3
creating a function with function as a argument
|
I have to create a program with sorting algorithms. The program will have to do all the algorithms in one go. I was thinking of using this code for all of algor... |
Apr 4, 2017 at 6:01pm
[7 replies] Last: That's great. If a function takes 3 arguments do I make another functi... (by kubanm3)
|
by ukeleke
Polish Notation
|
How to check that a Postfix notation is valid or not?For example :a+b is wrong postfix Thanks in advance. |
Apr 4, 2017 at 4:38pm
[1 reply] : Use a stack. Push numbers until you find an operator. Once you find... (by mbozzi)
|
by coradelaide
Simple addition funtcion
|
I'm new to functions and I'm trying to add 2 numbers. Where am I going wrong? #include <iostream> #include <iomanip> #include <cmath> using namespace... |
Apr 4, 2017 at 2:29pm
[2 replies] Last: #include <iostream> using namespace std; int add(int, int); int ma... (by closed account 48T7M4Gy)
|
by CalvinProg
trouble with getline, fin, 2d array, for loop
|
Hi all, first time poster here. My problem is either my output file is repeating the same line for every array or the array is not incrementing correctly with e... |
Apr 4, 2017 at 2:07pm
[5 replies] Last: cout << "Enter the number of students: "; cin >> num_studen... (by jlb)
|
Recursion on main |
First of all, during this post keep in mind that when I am referring to a program or a code it means that the program is only able to do 1 thing or function or ... |
Apr 4, 2017 at 12:13pm
[7 replies] Last: And don't forget that main() is a special function that can call other... (by jlb)
|
by NabeelUsmani
simple array output overloading question.
|
In my cmpt notes, there is array cout overloaded, ostream. Its job is to just simply print an array. They used for loop to print the array except the last eleme... |
Apr 4, 2017 at 11:29am
[6 replies] Last: coder777 - yeah, i think you're right, that's what it could be ... edi... (by gunnerfunner)
|
by ru12adis
Ofstream/Ifstream help
|
Hello all, I have finished my program, but when I try to use ofstream and ifstream in order to print my output onto a different file, I either get errors or jus... |
Apr 4, 2017 at 11:20am
[1 reply] : Hello ru12adis, I have not tested your program yet and I do not know ... (by Handy Andy)
|
by DatDankMeme
other version of cout
|
...this must be the dumbest question but If we need using namespace std; to access the standard version of cout then what does the other version of... |
Apr 4, 2017 at 10:56am
[3 replies] Last: Unless someone writes their own cout function std::cout is an std::... (by gunnerfunner)
|
by Mvpg
A class using it's own created objects by function parameters
|
I was wondering if it's normal to create a function inside a class that uses it's own made objects. For example: Entity.cpp void Entity::playerAttack(Entity ... |
Apr 4, 2017 at 10:47am
[1 reply] : Non-static member functions have to be invoked by a calling class obje... (by gunnerfunner)
|
by BambiWithPMS
Smart pointer to dynamically allocate an array
|
Hello! I recently was introduced to use smart pointer to dynamically allocate an array using "unique_ptr<int > array(new int )" All is going well until I need ... |
Apr 4, 2017 at 10:21am
[3 replies] Last: OP: the ctor for int's probably OK but in general prefer std::make_uni... (by gunnerfunner)
|
by esokoletsky
Function calling functions
|
How do I return true into the other functionside,and how can I call functions within functions. These are the instructions that I'm working with: Write a f... |
Apr 4, 2017 at 5:48am
[10 replies] Last: Thank you so much everyone! I was able to finish the entire assignment... (by esokoletsky)
|
by kaluhfornia
Help With C++ Homework (Loops)
|
Hello, I am having trouble getting my program to output the correct information, it runs but not with the correct information. These are the directions, I have ... |
Apr 4, 2017 at 4:00am
[7 replies] Last: > What kind of loop should I use (for, while, do) to cause my program ... (by JLBorges)
|
by osur
Linked List and Class Inheritance
|
Good day, I have been assigned a project about polymorphism. The idea is that there is a linked list with the node data type containing one of four classes. The... |
Apr 4, 2017 at 2:01am
[1 reply] : Hi, A few things: I don't think you should have a generic class as o... (by TheIdeasMan)
|
by alexisahmc
Structure Declaration
|
Hello everyone, This is my first post so please bear with me. I am struggling to understand the structure declaration in the following piece of code. This cod... |
Apr 4, 2017 at 1:36am
[3 replies] Last: Ill go a tiny bit deeper. static Route *cRoute; //Help needed ... (by jonnin)
|
negative struct output |
I'm trying to write a general struct practice code, but the output is always negative. can anyone spot what I'm doing wrong? #include <iostream> using na... |
Apr 3, 2017 at 10:58pm
[2 replies] Last: JayhawkZombie, thank you so much, I don't know how I overlooked that. ... (by mountainsloth)
|
by Sentoo
Arrays vs Arguments
|
Hi there, I am currently lost on how to fix my code for this assignment. Any help will greatly be appreciated! Write a function called fillArray that will... |
Apr 3, 2017 at 8:52pm
[5 replies] Last: Thank you so much for the help. The program is working as intended. (by Sentoo)
|
by code4545
How to draw data structures?
|
So in our class our professor prefers if we draw out our data structures before diving into coding. If anybody knows a resource that elaborates such things I wo... |
Apr 3, 2017 at 8:05pm
[1 reply] : look at a program called graphviz. You will thank me once you need ... (by jonnin)
|