
please wait
counting characters |
I'm building a program I'm stumped on a part. I'm wanting to use setw() but for the length of the gap I want it to be the length of the number of characters ... |
Sep 24, 2015 at 4:42am
[7 replies] Last: I just realised you can re-size the cmd box..... (by learningcplusplus898)
|
by marjstov
How do I get the names to print then ask me for the amount?
|
Write a program that will ask the user how many of each type of cookie they want and will then print out an itemized receipt. Bob’s Buttery Buttons - $5.99 ... |
Sep 24, 2015 at 3:37am
[2 replies] Last: Have you thought about using arrays of struct's or classes to program ... (by closed account 48T7M4Gy)
|
by zzhao0610
pass an object to a member function
|
I just don't understand why "s.total_val" works here. By doing the command "s1.topval(s2)"; topval(...) is a member function for object s1 therefore it can acce... |
Sep 24, 2015 at 2:57am
[4 replies] Last: Thank you so much Renthalkx97 and MiiNiPaa! (by zzhao0610)
|
For simply programs, is function prototyping necessary? |
What is the difference between: void foo(); //function prototype int main() { //... } void foo() { //implementation } and this: ... |
Sep 24, 2015 at 1:44am
[2 replies] Last: Formatting, stylistic reasons. Logical order as well in that you want ... (by YFGHNG)
|
by johndoey
Hard time getting pass makefile
|
Hey guys, I'm sorry to be coming here with all this but I feel like I almost have this cracked but feel completely lost. Any help would greatly be appreciated.... |
Sep 24, 2015 at 1:22am
[no replies]
|
by dendritic
Using doubly linked list
|
I have this function below, and I'm having difficulties on where to start. I have to build a Grid World using doubly linked lists. And the function below must b... |
Sep 24, 2015 at 12:09am
[no replies]
|
by CodeWriter
why is the messy setup required?
|
Why can't the experts make using c++ with libraries automatic the way it it is with Java with its simple import directive? After many years writing code with BA... |
Sep 23, 2015 at 11:16pm
[3 replies] Last: Thank you for your replies they have been very helpful in understandin... (by CodeWriter)
|
by kripology
Swapping two arrays
|
nvm i got it |
Sep 23, 2015 at 10:59pm
[no replies]
|
by Marth
breain=freid. do.while demons
|
it couldn't be simpler. yet it doesn't work. there is no explanation i can come to. edit: choice1 = 1.80 choice2 = 2.60 ; etc. if i put into userPayment, at... |
Sep 23, 2015 at 9:43pm
[1 reply] : Line 54. else if (userPayment > choice1 || choice2 || choice3 || ch... (by thefly)
|
by kalrin
program help please
|
program that the relevant data, such as the student number, number of modules and the module codes. the program should validate the number of modules that a stu... |
Sep 23, 2015 at 8:04pm
[8 replies] Last: You increment totalDiscount at line 86 and display it at line 116. Th... (by AbstractionAnon)
|
by hpardo11
Infinite Loop
|
Why is this infinitely looping? This is my input.txt verbatim: sin 45 cos 45 tan 45 Aren't sin, cos, and tan supposed to be stored in the oper string but I ha... |
Sep 23, 2015 at 8:00pm
[2 replies] Last: Line 38: If the last in >> operation was successful, you're going to ... (by AbstractionAnon)
|
by Marth
Help for While Loop
|
getting infinite looping on this beast. beast. beast. le code gets the amount of money from the User and puts into variable userChange. I need to simult... |
Sep 23, 2015 at 7:48pm
[3 replies] Last: Having someone else look at code usually makes the writer feel stupid.... (by Duthomhas)
|
by Steven Zinn
For loop help?
|
As you my be aware of, I am a beginner in C++ and started using classes. I am asking user how many books he/she would like to enter then used the number provide... |
Sep 23, 2015 at 7:00pm
[3 replies] Last: The default skip value is one so cin.ignore() ignores only a single ch... (by AbstractionAnon)
|
by Jaman3
How to separate words on the same line in an .txt file
|
What I'm trying to do is have an input .txt file with multiple words on one line. I am able to have it produce an output .txt file but I want the words to be on... |
Sep 23, 2015 at 6:56pm
[2 replies] Last: Thank you so much. That was all I needed. (by Jaman3)
|
by Phil15
keyword "new"
|
Hi I am trying to understand the implementation behind keyword new. what I have is a simple class (RandomClass.cpp) : void * RandomClass::operato... |
Sep 23, 2015 at 6:38pm
[9 replies] Last: There is an important difference between what you posted and what JLBo... (by AbstractionAnon)
|
by newb4lyfe
Memory allocation (deletion)
|
So I am trying to figure out how I should properly delete a matrix. I believe the code I have correctly allocates memory and sets it up correctly if I type so... |
Sep 23, 2015 at 6:02pm
[6 replies] Last: Matrix a(2,2); Matrix b(2,1); ~Matrix a; ~Matrix b; You normally (li... (by dhayden)
|
by CodePotatoe
D&D NPC Generator
|
I need help making an NPC Generator in codeblocks. I have gotten the name your NPC part down, I just need help on making random stuff such as numbers and bios o... |
Sep 23, 2015 at 5:37pm
[6 replies] Last: Ok ok first try, got a female cleric with 12 str, and 15 wis/int. Abov... (by YFGHNG)
|
by castik
C++ Fixed Point Notation
|
There are three types of Food at a Stadium. 1) Hotdog costs $5 2) Drink costs $4 3) Nacho Hats costs $12 Write a program that asks how many of each type o... |
Sep 23, 2015 at 5:35pm
[1 reply] : Fixed point precision is just saying that the first n digits of a numb... (by Duthomhas)
|
by Alianjaro
Creating a script that controls another program?
|
Hi! I'm trying to write a script that would allow me to manipulate an image-to-text software. I basically want to have the script look for an image in a specif... |
Sep 23, 2015 at 5:29pm
[1 reply] : You might want to check out Expect: http://expect.sourceforge.net/ Fi... (by Duthomhas)
|
by castik
Character address size, "sizeof"
|
I get 4 bytes as the answer for each? Why is the byte size of each address the same? #include<iostream> using namespace std; int main () { int a; c... |
Sep 23, 2015 at 5:15pm
[2 replies] Last: Thank you for your help! (by castik)
|