Thank you for the good response, nadroj.
I am a bit unmotivated when it comes to computer science or programming. What I'm looking for is not necessarily to get good at programming (although I...
Type: Posts; User: Fulwin
Thank you for the good response, nadroj.
I am a bit unmotivated when it comes to computer science or programming. What I'm looking for is not necessarily to get good at programming (although I...
The most I learned was a little bit of programming. I don't know if I could program anything in the real world. When I look at open source stuff for the possibility of getting in some practice or...
I am soon to graduate with a bachelor's degree in Applied Computer Science. I wanted a degree so I could get a job and move out of my parents' house. I made a bad decision, because it seems computer...
After going thoroughly going through the 6 C++ books recommended by this site to become an expert, what's the next step? How do you go from those books to getting a job? Is it enough?
No, it's still 34. I tried this though
#include <iostream>
int main(){
float f;
int i;
f = 0.35;
f *= 100;
i = f;
std::cout << i << std::endl;
I tried that, and it still didn't work. However, I was getting the warning "truncation from double to float" on this line
f = 0.35;I tried changing it to a double, and it works now. Given that the...
Yeah. Using exactly this code:
#include <iostream>
int main(){
float f;
int i;
f = 0.35;
i = f * 100;
std::cout << i << std::endl;
Ok, I tried working with pennies. I did this after getting money as a float from user:
pennies = (money * 100); // stores money as penniesIt stores the wrong amount sometimes. If I put in 0.35, it...
I am learning C++, working through the books recommended by this website. I'm trying to code Exercise 6-3 of Practical C++ Programming. Here's the problem:
Given an amount less than $1.00, compute...
What is a prototype? I changed the code to use strings instead of chars and getline() instead of cin. I am still getting these 3 errors:
error C3861: 'printCheck': identifier not found, even with...
Here is what I'm working on:
Write and test two functions enterData() and printCheck() to produce the sample paycheck illustrated in Figure 7-21 on the screen (not including the boxed outline)....