After I put it on a piece of paper and thought about it for a while I figured it out. And I will follow your suggestions for the functions. Thanks.
Type: Posts; User: jamesallen4u
After I put it on a piece of paper and thought about it for a while I figured it out. And I will follow your suggestions for the functions. Thanks.
Hello,
I am trying to write a program that populates an array (10) with random values and then gets the Biggest Number, Smallest Number, and Average Value of those numbers.
// CalcArray.h...
Thanks for the advice.
You might want to look at line 91...
Hello all,
I have a Lenovo G560 laptop running Windows 7. Today I just noticed that the battery indicator said that the battery was plugged in but not charging and it was stuck at 79%. Then I did...
Thanks, this helped.
Hello all,
I was recently working on a project that basically gave all the information of a triangle when the user inputted the sides such as area, perimeter, angles, altitudes etc. I asked the...
This is really weird, but when I tried to go to the forum using the direct link (cboard.cprogramming.com) I kept getting a VB server error. About one minute later of refreshing it allowed me to enter.
Thanks guys for all of your replies. Post #14 definitely increased my understanding about how Unicode works.
Thanks guys for your replies, I tried using wcout and saving the file in Visual Studio as a Unicode but it still outputs . A plain cout did not work either.
Thanks for the reply. I am completely unfamiliar with wcout and I Googled it, but I could not find any examples, can you please give me one?
Hello,
How would you do something like this using cout in C++?
cout << "привет мир"; (The Russian Equivalent of "Hello World")
I tried using copy-paste in VC++ but as I had expected the...
An update:
I realized what I was doing wrong now and I am going to constantly remind myself of it: always think of programming line by line, not as a whole. The reason for the ugly output was...
Hello,
I am trying to create a program that will ultimately output a snake coiled around a stick 11389. Here is part of my code:
#include <iostream>
#include <iomanip>
Well first of all,
cout << "Insert stuff here"; is used in C++ instead of printf.
Outputs 11, 55, and 42. Thanks CommonTater, I guess I was misinformed about char arrays.
Nope. Read this: Announcements - General Programming Boards
So, what have you tried so far?
So if I understand it right, if you entered something like "123 hello" it would disregard the whitespace and letters and return 123?
What I mean is that you can't create a char array with numbers so atoi would be an alternate solution to just manually printing the numbers.
Hello,
I am trying to find a tutorial or a reference for using the atoi function in C. I found one on this site (atoi - C++ Function Reference) but I am not familiar with C++. I am trying to...
Yep, it wouldn't compile. Note that 1=0 means, in literal words, put 1 to 0 which will obviously never happen with constants, resulting in your compilation error. On the other hand 1==0 ( 1 is equal...
In a perfect world, you would be correct. ;)
Thanks for the suggestions. In the end, I just printed out line by line instead of using arrays.
Hello,
Using ASCII and C programming I am creating a program whose output is a box within a box. I am very close to completion but I am stuck on one part and need your help.
Here is the code:...