General C++ Programming (Page 3)

Sales tax programming help?!
 
Write a C++ program that will compute the total sales tax on a $95 purchase. Assume the state sales ...
[2 replies] Last: For a simple program like this you can follow the IPO principle ( inpu... (by Thomas1965)
string header
 
I'm able to use all the string functionality in my program even though I have not declared #include ...
[2 replies] Last: > 'm able to use all the string functionality in my program even thoug... (by JLBorges)
Need Help
 
You are to write a program which will ask the user for number of students (dynamic array of class St...
[1 reply] : Please note that this is not a homework site. We won't do your homewor... (by keskiverto)
help with multiple defined symbols found
 
int main }
[4 replies] Last: oc (by Andrewcen16)
Which way is better? inheritance or member?
 
Which way is better? So, for example, let's say we have a game engine class through which you can ad...
[4 replies] Last: Thanks!!!! (by Putarda)
How to exit the program and and continue
 
include<iostream> using namespace std; int main() { float weight, height, bmi; cout<<"Enter weight...
[3 replies] Last: Thanks. Understood how to do it.I will take care of that gaps. Actuall... (by abcdef123)
Running a simple C++ program combined with a web interface
 
Dear All, I have some C++ code I would like to run on a web server. The C++ code itself is attach...
[1 reply] : Normally you would create a website in html with the input form. Once ... (by Thomas1965)
No clue how to start?
 
So i just transferred into a computer science and im like two weeks behind. I have no clue how to ev...
[5 replies] Last: jonnin, I stand corrected. (by Enoizat)
Question
 
Hi guys , i have a question . Example : i declared 2 int variables . It is possible to find which is...
[2 replies] Last: http://www.geeksforgeeks.org/compute-the-minimum-or-maximum-max-of-two... (by Thomas1965)
SDL Snake Clone has troubles rendering the snake
 
Hi everyone! I rencently discovered the SDL library, and when I tought I was ready for it, I starte...
[2 replies] Last: That makes sense, thanks alot (by goldenchicken)
Create a file list (platform-independent way?)
 
Hi guys, although this questions has been asked many times, I haven't found a working solution fo...
[3 replies] Last: @Duthomhas Thank you very much for your solution with the recursion. B... (by olfibits)
Is this a legit optimization?
 
In the out() function below, which sums elements, you can see I have a switch case to do the summat...
[3 replies] Last: JLBorges: That's extremely helpful! It looks like you got the assembl... (by G0rdano)
geting question marks for quotation marks
 
I'm reading from a file that has quotation marks and when it reads the quotation marks, i get questi...
[4 replies] Last: ... (by Duthomhas)
How to use a language to program instances of class?
 
Hello! I begin to make a game creator for myself. I want to use c++ for the engine (work in progr...
[2 replies] Last: A class factory has nothing to do with code interpretation or run-time... (by helios)
Problem
 
Hi guys . How do i measure the length of an array ? Better to say : how do i pass every element fro...
[5 replies] Last: what I have always pondered about this question is not how to do it b... (by jonnin)
Two phase name lookup (most of it) in the Microsoft compiler
 
https://blogs.msdn.microsoft.com/vcblog/2017/09/11/two-phase-name-lookup-support-comes-to-msvc/ 1. ...
[2 replies] Last: Whoa, I had no idea MSVC used Yacc. That's pretty crazy for C++. I won... (by helios)
how to format/truncate
 
Hi, Want to format and truncate/round my number at the same time in the program: Here I want the ...
[3 replies] Last: Worked great, thanx (by technologist)
by biomod
Undefined symbol error
 
Hi, I've recently taken over a project and therefore I am not completely familiar with it - however,...
[8 replies] Last: C++ Builder 6 Yes that is a bit dated indeed. If you're working on... (by Chervil)
Trouble while trying to find a specific word
 
hey. im trying to find a word in a txt file and if it is found count 11 lines after it, then save th...
[4 replies] Last: thank u guys, and yeah i can open files on c++ but i didnt know how to... (by lukardos)
precise definition of "precision"
 
What exactly is the precise definition of "precision" of a numeric field? As far as I know, it s...
[7 replies] Last: > Here, a precision of 2 prints 3 decimal digits rather than 2, which ... (by JLBorges)
Pages: 12345... 17
  Archived months: [jul2017]

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