Beginners - October 2015 (Page 43)

by Nyarxu
Assistance with Functions
 
I need help with my functions and probably my ifs. I shouldn't have outputs in my functions but I don't know how to execute that. This program gives the choice ...
[2 replies] Last: and this ... if (shapeChoice == 1) { cout < areaCircle( 6 ); } ... (by closed account 48T7M4Gy)
how to create class object in If-condition and use function in same code?
 
Is it possible that I give the template a type according to user choice, and then call the functions of that object???? if yes then please tell me how... ...
[4 replies] Last: #include <iostream> #include <vector> template < typename CONTAINER ... (by JLBorges)
by sme97
Interest rate
 
Ask the user to enter how much money will be deposited If $1000 are to be deposited, the account will have the same balance If more than $1000, find how many ...
[4 replies] Last: Thank you very much, it is fine now, I flipped the signs in the while ... (by sme97)
how to delete node from somewhere middle in doubly linked list
 
it works fine to delete from start or end. but whenever I try to delete a value from middle , it gives garbage value :( plz help ... void dllist<T>::del...
[1 reply] : head->previous->next=head->next; head->next->previous=head->previous;... (by uytoor2)
How to open a file and count the # of words? Need help!!
 
So I need to write a program that opens a file (which ever file the user inputs) and count the number of words example file: This &%file should!!,....
[1 reply] : I am not sure what do you want exactly the file example isn't clear. A... (by CodeBlob)
Guys, paano ba ito? Di ko kasi magets eh. Di ko kasi pwedeng galawin yung int main.
 
Create a program in C++ that will store 10 values in an array. Determine how many are odd and how many are even numbers from the given values and store them i...
[2 replies] Last: #include <iostream> #include <string> using std::cout; using std::ci... (by closed account 48T7M4Gy)
stringstream-conversion from char to int
 
I am trying to get an 'integer' input from user in a string by using getline() and then using stringstream() to extract integer from this string. The last part ...
[2 replies] Last: Got it.Thanks a ton. (by saherch)
Problem with Compiler
 
I've suddenly started having a problem where every program I try to compile says it has build errors, and I get the error message "error C4430: missing type spe...
[5 replies] Last: I rebooted and it magically started working again. I guess I'll never ... (by MaryB1126)
by hibine
Help w/ patterns &series?
 
Hi, I'd appreciate any help with the source code for following series/ patterns. 1. A C A E C A G E C A 2. & & & & & &...
[1 reply] : I believe you're looking for recursion. http://www.danzig.us/cpp/recu... (by YFGHNG)
Can someone please help me with this?
 
What is the output for the following loop? Im very new to programming and am having issues. int number; number = 1; while (number < 11) { number = n...
[3 replies] Last: If written correctly, the output of your second loop should be three e... (by YFGHNG)
Finding a smallest positive number that is evenly divisible by all numbers from 1 to z.
 
Hello! I created this account exclusively to ask for help. I started learning C++ a few days ago and I have found a website (projecteuler.net) that gives questi...
[3 replies] Last: Thank you both, CodeBlob and helios, that works perfectly. I'll be sur... (by DDomjosa)
Help understanding / Implementation
 
I am looking for help and understanding on what I am to do on this assignment (I've posted on the class forum as well, but more knowledge shared will help me un...
[6 replies] Last: OK Let us know if you need help later - it's great that you are prepar... (by closed account 48T7M4Gy)
input file
 
how do you cin input is digit or letter? I am trying ask use to input from keyboard but i dont like !@#$%^&* only letter and digit I try isalnum isdigit, isa...
[2 replies] Last: #include <iostream> #include <stdlib.h> #include <string> using name... (by pearlyman)
Question: Logic Operators.
 
Hello Everyone, I have a question regarding logic operators used on Char data type: Q: Write the logical expression for: "ch is any character but not an alpha...
[3 replies] Last: Alright, thanks everyone. Just handed in my assignment and hopefully i... (by NewProgramma)
Mid Project pt 2.
 
A loop should be used to iterate once for each ticket. In each iteration, the loop should ask the user: the desired location in the concert location for a ...
[8 replies] Last: Hi cjskipwo Break each requirement down... Then make a function to ha... (by pearlyman)
Unresolved External Symbol
 
...
[6 replies] Last: My tip for when you're dealing with classes, @OP. Always implement you... (by YFGHNG)
Using numbers in Switch statements
 
Hi all, I have a problem with this. Let's say for distance one, the user enters a number less than 0. It would be a negative number and show that to the user. I...
[2 replies] Last: That's improper use of the switch/case commands. #include <iostream... (by pearlyman)
by drakus
I have a problem with my syntax I believe
 
I have an assignment to write a program that will calculate the amount of minutes that I have been alive given information inputted by the user, but for some re...
[1 reply] : getInformation() takes a parameter by value, so it doesn't initialize ... (by helios)
by Tryce
Pointers Segmentation fault
 
I don't understand why i get a segmentation fault when setting the pointer to the the S(outh) tile, but not for any of the other directions. Could someone help...
[1 reply] : Good grief! Why is this necessary?! tile *init_board(){ tile *r... (by helios)
fstream problem
 
Thank you for helping me
[2 replies] Last: ok. it still show me noting? is there something wrong with my tree? I ... (by verydumbprogrammer)
October 2015 Pages: 1... 4142434445... 57
  Archived months: [sep2015] [nov2015]

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