Beginners (Page 69)

help with a loop
 
Hey guys! I'm having difficulty with a part of my program. I am instructed to make a table using a l...
[2 replies] Last: Ah, okay. I'm just struggling with how to make the days and pay amount... (by Trapnasty)
by relgin
calculate engine purchase
 
I need to write a program that calculates how many boxes and packages are needed for a specific numb...
[1 reply] : what if you need 25 engines ? (by ButchCavendish)
extern int in the header file problem
 
my.h extern int foo; void print_foo(); void print(int); my.cpp #include <iostream> #include "m...
[5 replies] Last: Thank you man for explanation :) Ill just tell how understood it 1st ... (by etrusks)
c++ programing H.W. help
 
Hello, I am having couple of problems with basic c++ programs could any one help me ? 1) writ...
[1 reply] : If you have come up with some code and are stuck it would be good to p... (by Texan40)
variadic template function declaration
 
Hi, guys. I just read that when we define a recursive variadic template function, the nonvariadic ve...
[12 replies] Last: #include <iostream> #include <sstream> static int n = 0 ; template ... (by JLBorges)
by gmac
vectors
 
implement the comp201 vector int class, a simpler version of a vector<int>. The comp201 vector in...
[6 replies] Last: Thanks for your suggestions, I will try this out. (by gmac)
by l2iisk
Overloading functions in a class
 
The following code gives me this problem: (I included math.h) base and error are public doubles in t...
[2 replies] Last: Ah okay, thanks so much for you quick help :)) (by l2iisk)
Do While Statements
 
I am having a hard time grasping the idea of do...while statements. Could someone better explain to ...
[6 replies] Last: You've got to make variable of the correct type. If you want something... (by TheHardew)
by h4ever
How to convert 3 chars to integer and how to extract 3 components of integer? (1,2)
 
I would like to the following: I set three color components: unsigned char R; unsigned ch...
[20 replies] Last: Yeah, I see. I'll correct my terminology next time. (by h4ever)
what is count
 
{ char letter; cout << " I will display the characters for ASCII codes 0 through 127.\n"; ...
[1 reply] : http://www.cplusplus.com/doc/tutorial/control/#for (by LB)
If statement
 
If you have an if statement, what do you do to end the program if that statement is true but not if ...
[5 replies] Last: Thank you (by tygerrock)
by lew13
Class problem (does not name type)
 
I keep getting the error code for all of my class function definitions. It just says does not name a...
[18 replies] Last: 1. Find the greatest common divisor (GCD) of the numerator and denomin... (by booradley60)
by Kman
Reading from a file to an array?
 
Here's what I have. I just need to know how to put the numbers from infilearray.txt into the array a...
[10 replies] Last: Well generally, if you start debugging from the crash, you can see the... (by LB)
Printing into text file not working
 
The program is suppose to print onto a text file, however, it never actually prints anything. Any su...
[2 replies] Last: Wow yip that semicolon was the problem! Thanks for the fast response. (by edwinibon)
Elements in beginning or end of an array in Binary Search
 
I have been trying to understand the binary search algorithm which is quite simple but I have one qu...
[2 replies] Last: Thank for your reply Peter. That's what I thought too and it makes sen... (by tahahassan)
Why is there 1 in unsigned long fact?
 
#include <iostream> using namespace std; int main() { unsigned int numb; unsigned long fac...
[2 replies] Last: If numb is 5, then the task is to compute 5!. At the start fact is... (by Peter87)
please teach me the following question and comment, on this question in easy wording.
 
Looping constructs are needed when a statement or a block of statement is repeatedly executed until ...
[6 replies] Last: This is not a homework site. The purpose of these questions is for yo... (by MikeyBoy)
by salah
practice in class ( i dont know how to implement the add time and tick seconds functions) plz need assistance asap
 
#include <iostream> #include <cstdlib> using namespace std; class Time { private: int h...
[no replies]
Roman to decimal code
 
Hi, so I know there's several forums covering roman numeral conversions out there but I'm in a intro...
[2 replies] Last: So far I've only made it to the roman to decimal conversion. I suppos... (by brosephius)
Color components +mask
 
Good day to all, I`m stuck with bitmasking and shifting… Here is some color RGB values store...
[2 replies] Last: 0x7BEF = 0111101111101111 0XF800 = 1111100000000000 (lightGray & redM... (by pacman169)
Pages: 1... 6768697071... 100
  Archived months: [jan2015]

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