Beginners - November 2016 (Page 36)

by jycpp
HTML confusion
 
So far most all the people I've asked about the assignment in my class have been unsure of how to go on with our program. We're trying to create the program tha...
[11 replies] Last: I think I'm finished now actually. I got some more help from the class... (by jycpp)
need help understanding this code and the output
 
Hello. My teacher gave me a question to trace, but im not sure as why the output comes out the way it is. I tried tracing it. first you enqueue num 2 which is 1...
[2 replies] Last: for the first two enqueue i think u meant 1 not 2. im good up to line... (by chang123)
Can't solve it
 
I have wrote this code to solve this problem: #include <iostream> using namespace std; int main () { int d, n, t, a, b; //d=expenses, t=weeks, n=saved...
[4 replies] Last: I have seen what your program does and run it. The output you give is ... (by Ciplas Plas)
by Alex A
How to correctly reset a counter to zero
 
Hi Guys, on the below code I'm having issues resetting low counter to 0. If I set the low counter to =0 it does not work it give me a value of zero, but I saw ...
[1 reply] : You have high and low as the same value. This is what your if stateme... (by tibrado)
I need help with I/O files.
 
So, we need to make a program that lets your enter a file that and counts the characters such as lowercase, uppercase, punctuations, etc then it outputs it to a...
[2 replies] Last: Yeah, my sample file is in the same folder. I just did a notepad docum... (by Poropin)
reference sign ??
 
why is it okey to write this const int &num=5; std::cout<<num<<std::endl; and not okey to write this int& num=5; std::cout<<num<<std::end...
[2 replies] Last: Thank You ^_^ that was very helpful .. (by zeroblank)
Dynamic arrays, classes, pointer: What am I missing?
 
I am trying to create a class that builds a dynamically allocated array to hold both a new product item and a quantity of that item. I just cannot seem to make ...
[4 replies] Last: Thank you for your help! This gave me some good direction. I will lear... (by Willy12)
Help with calculator code
 
I have recently starting taking a c++ class and I have a question about creating a RPN calculator. We have not gone over stacks in class at all (they aren't eve...
[2 replies] Last: Thank you! That's what I figured but I wanted to make sure. Guess I'll... (by comfortablynum4)
by Hengry
Need help with pointers
 
My problem is my TaskList, where my function addToList(Task* t) points to the address and I am unable to think of a way to dereference that pointer so I can g...
[5 replies] Last: @tibrado I used implemented my own SortedVector that uses vector a... (by Hengry)
How to jump to a function once a if statement is met?
 
Hi, I don't know exactly how to put it into words, but once my statement is met in one of my functions I am wanting it to move onto other functions and stop the...
[1 reply] : You have some functions mentioned in your program (resetGrid(), Displa... (by gunnerfunner)
Comparing string objects/relational expressions as ASCII values
 
Hello all, I'm going through an old C++ textbook to re-familiarize myself after some time away from it, and am just going front to back to and answering all of...
[1 reply] : Anyone here able to help me out with this? I've continued moving on wi... (by mikeybags)
vector queastion
 
I don t know how to find the element which has the biggest number of divisors from the n elements .can u help me with an algoritm,please? example: vect.in ...
[1 reply] : Write a function (say: int numberOfDivisors( int n ) { // your functi... (by lastchance)
by ardsio
String handling of data from Arduino serial port
 
Hi, I need some help to modify my script handling code. Information and question are in the code comment field. static UINT arduniorecvthread(LPV...
[2 replies] Last: Hi, As stated this C++ code works OK readResult = SP1->ReadData(inc... (by ardsio)
Help with Function Program
 
1. Opens a file called \input.txt" 2. It’ll read in a string and up to two numbers. 3. Based on what the string is, you’ll add, subtract, multiply, divide...
[1 reply] : Violentpasta could you post what you have done so far? (by tibrado)
classes constructors and overloading clarification
 
I am trying to learn a bit of c++ by following C+ How to program book. I have got to a chapter on overloading and classes. I have written a very basic prgram a...
[2 replies] Last: 1. Your constructor needs to be set.. Everything in it is empty object... (by tibrado)
Number of middle symbols
 
Hi there. I have a problem. I don't know how to count the number of the middle letters of the words in the sequence. I have to do it from a file and numbers cou...
[10 replies] Last: Thanks!! (by WilliamMorris)
Problem with code
 
I have a problem with this code here. It's very simple and should work as I want. But after asking for the number of x, I created an if that triggers if the per...
[3 replies] Last: Thank you very much, JLBorges. You have been a great help! (by northern guy)
Running a program through C++ on more than your computer?
 
So currently what i want this program to do is when opened will simply open another program and continue with the rest of the original program (I haven't finish...
[2 replies] Last: How would i work that into the system syntax though? to make it get th... (by ExSanity)
Phonebook directory
 
Hey, i need help with my phonebook directory, my code is fine and working perfectly, but i need help adding the name "Firstname, lastname". my code only accepts...
[4 replies] Last: nevermind, i see my error. thanks (by tweaktwe)
Multiplying 2 numbers without *
 
Hi I'm trying to multiply 2 numbers without the * operator and using a function and including a for loop. This is what I have so far #include <iostream> ...
[17 replies] Last: @JLBorges Either of these would be fine It is fine, your code is lon... (by SakurasouBusters)
November 2016 Pages: 1... 3435363738... 44
  Archived months: [oct2016] [dec2016]

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