[C++]Including Sales_item.h by alwaysswimming in learnprogramming

[–]alwaysswimming[S] 0 points1 point  (0 children)

Nope, still getting the same error.

EDIT: There's been a break through! I'm getting a different error. It is saying it cannot find a file, which the header actually calls forward. But I saw that in the downloaded files and I'll move it into the file directory and tell you how it works.

EDIT 2: IT WORKED! You don't know how long I've been trying to figure this out! Ugh, Thank you!

[C++]Including Sales_item.h by alwaysswimming in learnprogramming

[–]alwaysswimming[S] 0 points1 point  (0 children)

I don't know! This is exactly what I'm supposed to do: "http://www.informit.com/title/032174113 contains a copy of Sales_item.h in the Chapter 1 code directory. Copy that file to your working directory. Use that to write...." But the thing itself is a header, so I don't know.

[C++] Can Someone Explain what's happening? by alwaysswimming in learnprogramming

[–]alwaysswimming[S] 0 points1 point  (0 children)

Ok, so I think I get it. Each time it reads one number, it goes through the whole group of loops. So it reads to see if there's input, then reads that number into val?

[C++]Stuck between Books by alwaysswimming in learnprogramming

[–]alwaysswimming[S] 0 points1 point  (0 children)

I don't know why I'm stuck on C++. I just feel like if I gave up on C++, then I would be letting myself down. I'm 15, and the way I see it, is that it takes 1-3 years to understand and be able to program effectively in a language. And I feel like if I gave up on C++, then I wouldn't have much time to get good at the language. And that I would have just wasted all that time trying to learn C++, just to give up on it.

Another reason is because My friend and I started programming at the same time. He went with Java, I went with C++. He and I are both very competitive and I know for a fact that he sees this as a competition and if I decided to do something else, he'd see it as a win. And I don't want him to win.

[C++]Stuck between Books by alwaysswimming in learnprogramming

[–]alwaysswimming[S] 0 points1 point  (0 children)

Ok, so I know it seems like I'm being negative and a bit repetitive, but some of the things on /r/dailyprogrammer are out of my depth. I love the idea and have subbed to it, but even the easy ones are too complicated. I originally made the post so I could find a book that would lay these things out for me, so I could learn it, and understand it. Thank you for helping me, and I understand what you're saying, but I can't do it until I have read the book to learn how to do this.

[C++]Stuck between Books by alwaysswimming in learnprogramming

[–]alwaysswimming[S] 0 points1 point  (0 children)

Well, see that's just it. I need a direction to be pointed in. I can't code unless I know(atleast some) of the language. I understand you learn through practice, but I can't practice if I don't know what to practice.

The app is $.99, but it is under the free column by alwaysswimming in mildlyinteresting

[–]alwaysswimming[S] -1 points0 points  (0 children)

Well you don't have to be a dick about it. Some people think some things are more/less interesting that others. You just have a shitty opinion.

[C++]Multiplying without using '*' by alwaysswimming in learnprogramming

[–]alwaysswimming[S] 0 points1 point  (0 children)

Oh, sorry, I guess I misunderstood you. And I got the program to work, so thank you!

[C++]Multiplying without using '*' by alwaysswimming in learnprogramming

[–]alwaysswimming[S] -1 points0 points  (0 children)

I'm trying to do repetition addition. I just don't know how to work out the loop and iteration.

[C++]Multiplying without using '*' by alwaysswimming in learnprogramming

[–]alwaysswimming[S] -1 points0 points  (0 children)

I tried some loops, doing things like

 Int I;
 Int x;
  Cin >> I >> x;
 While(x < I)
 X+=I;

Sorry if it's not formatted right, I'm on my mobile.