Beginners (Page 68)

by Pg0715
calculates sales tax
 
ok so I was able to read the file but stuck on calculating the sales tax by tax by total and tax by ...
[8 replies] Last: What you need to be doing is take the price, divide it by 100 and mul... (by Softrix)
by Ion93
Phone provider program help please
 
Hey guys i need help on how i can calculate a user savings if he were to switch to a different packa...
[5 replies] Last: no worries. you didnt seem to read the 2nd part of my post :) 1. as... (by mutexe)
Assignment
 
#include <iostream> using namespace std; int main () { int expr; int age; string gender; stri...
[3 replies] Last: My code doesnot compile right. Your compiler should at least tell y... (by mutexe)
Weird Error
 
I run my code here, and i receive a weird windows error that says "student.exe has stopped working" ...
[1 reply] : The errors are in this: class Foo { public: Foo(); private: int n... (by keskiverto)
Array in a Constructor Help
 
Hello, I am looking help on building a constructor with an array as an argument. #includ...
[4 replies] Last: It depends whether you want to create the array dynamically or not. I... (by kemort)
How to display first and last sentence in file
 
This program is suppose to do the following: - read a file using fstream - display each sentence ...
[1 reply] : http://www.cplusplus.com/forum/beginner/143081/ (by maeriden)
New to C++, having trouble with loops
 
Hi everyone, I am very new to programming, and I am feeling stumped over a lab that we did in class ...
[9 replies] Last: Hi, It is possible to keep track of the current maximum & minimum wit... (by TheIdeasMan)
Using an array in a calculation
 
Using an array in a calculation, accessing the array with variables then being able to use it for (...
[4 replies] Last: You also need to initialize int i. This is a case where, if you don't,... (by kemort)
uninitialized local variable
 
float celsiusDegrees; double fahrenheit = (9/5)* celsiusDegrees +32; i keep getting an error on ...
[15 replies] Last: lmao ^, finally figured it out , it was actually something else i was ... (by LATCH100)
help with simple matrix program
 
my professor wants me to create a program where it calculates the inverse of 2 matrices. he already ...
[2 replies] Last: I don't know what the 0.5 is, but the problem with the calculation is ... (by maeriden)
by Setzer
Reading the last sentence in a text file.
 
Hello, in our class we are learning about using <fstream> to read from a file, and then separate all...
[4 replies] Last: Thank you soooo much! That was exactly what it needed to be. I can't b... (by Setzer)
Need help with writing basic code to determine if input is a palindrom
 
So I am writing a basic code that asks the user for input and then determines if the input is a pali...
[4 replies] Last: Consider this #include <cstring> #include <iostream> int main() { ... (by maeriden)
Xcode Input file
 
I am struggling to get an input file to work. I am very new to programming. I am using Xcode 5.1.1...
[1 reply] : you have fin,close() instead of fin.close(). I don't know if that was ... (by jackelinblack)
Cant call function
 
Hello, why doesnt my printfunction call execute? #include <iostream> #include <iomanip> #inclu...
[1 reply] : Compile error. main.cpp: In function 'int main()': main.cpp:78: error... (by denormal)
Compiler errors
 
I cannot see why this will not compile. I got 24 errors. // The program will read two integers...
[3 replies] Last: No problem! I understand completely how hard it is to see one little ... (by indy191919)
by Putler
Compound assignment
 
When we use the compound assignment, the left-hand operand is evaluated only once. If we use an ord...
[7 replies] Last: > Why is e1 evaluated only once in the compound assignment > but in o... (by JLBorges)
Can't brace initialize struct even with -std=c++11 enabled in CB
 
Hey guys, sorry if this is a simple fix. Tried doing some searching but everything I've seen on my e...
[1 reply] : > shouldn't the remaining data members of the struct not explicitly in... (by JLBorges)
by NOD32
I need help initializing/calling with functions
 
I didn't finish my lab for my class and couldn't get a chance to ask my professor for some help. My ...
[4 replies] Last: this is still frustrating me. why isn't TotalSales being affected? ... (by NOD32)
regarding static variables
 
hi all, lets take a code class A { static int i; func() { i++; } } i ha...
[2 replies] Last: The point of a static variable is that it retains its value when it go... (by novellof)
Using Greek letters
 
What is the easiest way of use Greek letters as variables and display them using cout? Thank you....
[3 replies] Last: lel imma make a change to my code den (by novellof)
Pages: 1... 6667686970... 102
  Archived months: [aug2014]

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