Beginners (Page 61)

adding integers
 
when you add numbers, for example int a=5 int b=6 you also say int sum = a+b but why do yo...
[5 replies] Last: there are a dozen types of integer as well (many redundant). say you... (by jonnin)
struct
 
Hello everyone! I have a question regarding the structure definition below: struct elem {int in...
[2 replies] Last: When declaring a pointer you don't need the full struct definition. It... (by Peter87)
populating array from while loop
 
hi, how can I populate a given array from while loop. and print out to screen? unsi...
[2 replies] Last: nice one! i forgot the for loop. :-) thanks again! (by csecs21)
by ggwp
c++ to pseudocode
 
Hi friends. Can anyone please help me to convert this coding into a pseudocode. I'm having trouble t...
[2 replies] Last: Can anyone please help me to convert this coding into a pseudocode. ... (by TheIdeasMan)
by tit0n
Infix to Prefix
 
if I take this expression -> (1+((2+3)∗(4∗5))) it converts to this -> +**54+321 Any...
[1 reply] : Not really fancy but it works at least for the most parts. #include <... (by Mantorr22)
Newton's method
 
The goal is to use Newton's method in order find the zero of a function. So in the end I want my pro...
[3 replies] Last: You should start slowly. First of all, test your function and its der... (by lastchance)
If Else and Assigning Values
 
I am trying to solve the below problem and was wondering if there was a way to assign a range for th...
[1 reply] : $0.08 for each check if you write between 20-39 checks int wchec... (by kemort)
by Bizzy
Bool Not Returning Value?
 
Hey, so this is embarrassing since this is an incredibly basic function I'm trying to write, but whe...
[4 replies] Last: whenever I test it I don't get either true or false What do you mea... (by xismn)
next function
 
My understanding for next(ptr,n) is it returns a pointer to the nth element after *ptr. My questi...
[4 replies] Last: Yes, it is std::next(). Thanks. (by landlord1984)
assert C++ (Problem understanding the code)
 
I have problem understanding this code. I don't understand what is going on from assert code. ...
[4 replies] Last: > Am I right with my logic ? Yes. assert(size < capacity); is equiv... (by JLBorges)
Class - dice_roll error
 
I'm getting error code - error: expected primary-expression before 'dice_roll' in my constructor. Wh...
[5 replies] Last: Got it! I finally realized that all of the variable names in the const... (by volTron)
Help with functions
 
Hi, Is there another way for me to properly terminate my rock, paper, scissors program other tha...
[6 replies] Last: Why is it not proper? Because it introduces a hidden control path t... (by mbozzi)
Problem displaying strings from a struct using a pointer
 
Im working on an assignment where the user can enter some inputs via a struct pointer and display th...
[1 reply] : employeeRec *p, records ; I suspect you wanted records to be an arr... (by gunnerfunner)
Need Help With Input
 
Good evening all, I need some help fixing the readgraph function for my minimal spanning tree assign...
[1 reply] : add this in a couple places and see what's going on. cout << "U:" << ... (by SamuelAdams)
by tit0n
Infix to prefix
 
Infix to prefix. I am trying to follow pseudo code with no luck Where am I going wrong? #inc...
[1 reply] : I don't see any pseudo code here, what problem are you having ? (by SamuelAdams)
assert C++ (Problem understanding the code)
 
I have problem understanding this code. I don't understand what is going on from assert code. ...
[no replies]
String - Out of range
 
When i delete the last character in the string I get the error "string is out of range". I understan...
[4 replies] Last: Can you put your problem into a small stand-alone program involving ju... (by gunnerfunner)
Storing user input
 
Hi everyone, I'm trying to build a program where the user inputs a string that has an int, and a...
[2 replies] Last: #include <iostream> #include <string> #include <cctype> #include <ss... (by gunnerfunner)
I need some help with this mobile service provider program
 
Here is the assignment: Mobile Service Provider A mobile phone service provider has three differ...
[no replies]
qualified id identifier declaration before (
 
Write your question here. class labf { private: double volumec; double volumes; ...
[1 reply] : Line 24: pi is not defined Line 18: It's a poor practice to have an... (by AbstractionAnon)
Pages: 1... 59606162
  Archived months: [feb2017]

Cannot post in this page. To post a new message, go to the first page.