Beginners - August 2016 (Page 12)

LOOP HELP
 
i want to add a loop that takes in 6 names and prints it out in a random order. i just need to add a loop somewhere. #include <iostream> #include <strin...
[12 replies] Last: It would go out of bounds only if your condition is bad. Hence why ... (by closed account 2UD8vCM9)
Vowel Counter Program Problem
 
Hi I am very new to C++ so I may not be able to find the problem in my program very accurately. I have made a program which calculates the number of vowels in a...
[2 replies] Last: Thanks, it works now! (by benisin5)
classes exercise
 
I am pretty new to c++ and am learning from this sites tutorial pdf and other sources but i can't find any brain teasing exercises for classes with overloaded o...
[4 replies] Last: im also looking at the exercises because i was algo searching for some... (by comprarsociedades)
PICAXE Chip and c++ programming language.
 
Hello, I was wondering if we can program a PICAXE chip with c++ programming language or not. I have a robot from my school project which runs by PICAXE chip wh...
[1 reply] : This seems to indicate you cannot easily do it because the Basic bootl... (by closed account 48T7M4Gy)
by taha24
this is a logic gate assignment in college
 
so the assignment is to take four binary input numbers and to get them inside four logic gate and to take the output of the four logic gates and convert it to d...
[11 replies] Last: Would have known that. :) (by closed account 48T7M4Gy)
Cola Machine
 
Hello, I am creating a cola machine program which's goal is to display the different types of beverages and have the user input the beverage of his/her choice, ...
[5 replies] Last: @FurryGuy, @kemort and @McLemore thanks a lot it worked out using else... (by Sundus Yawar)
by Phil15
Address of array data type?
 
Hi guys, Lets say we have this short code: int main() { char abc ; strcpy(abc, "ab"); printf("%p\n", &abc); printf("%p\n", abc); pri...
[3 replies] Last: Ok, it`s more clear now, Thank you for the input Andy. (by Phil15)
by cj02
Provinces of the philippines (1,2)
 
hi, can someone help me please... my when i run my porgram... it only displays the first province... //This Program Will Gives You The Information Of The Diffe...
[32 replies] Last: // This Program Will Gives You The Information Of The Different Provi... (by closed account E0p9LyTq)
Variables Not Properly Changing Value
 
Sorry for two posts in one day. One of the features of this program that I want to add is for the amount of money spent and the money earned back to be added t...
[5 replies] Last: Even if you keep the goto, there's no need to repeat it in every if-el... (by andywestken)
by Hengry
undefined reference
 
I need help, because this is giving me an undefined reference to my class. DNA.h #ifndef DNA_H #define DNA_H #include <string> using namespace std; class DN...
[6 replies] Last: personxd1, Just a thought here if you are using Visual Studio as I do... (by Handy Andy)
Arrays
 
If you have and array, for example char potatoes , and you know that in the n number of the array and only that number has the element G, can you know n?
[5 replies] Last: there is no better way besides using a loop. While you can't really ... (by andywestken)
Why does the program freeze
 
The program is still not finished but i dont know why it freezes... #include <iostream> #include <conio.h> #include <ctime> #include <cstdlib> using...
[1 reply] : $ g++ -W{all,extra,pedantic} foo.cpp || foo.cpp: In function ‘int p... (by ne555)
If/Else Statement Troubles
 
I am attempting to program a console app which simulates opening up a case in CS:GO. First the program generates a random number 1-100 and then depending on tha...
[3 replies] Last: Oops, I should've caught that. I appreciate the help. (by LordApy)
stack with menu option
 
Write your question here This is my program that convert an inflix expression to an postfix and prefix form and it run okay but im having trouble how to put a...
[6 replies] Last: @coder777, first: what is the difference between dangling and smart p... (by closed account 48bpfSEw)
by sas305
check if array elements are unique
 
I know that there are posts about this all over the place probably but the way my course was taught was quite unique. The professor has his own compiler that us...
[11 replies] Last: You still don't get it. Have you read the tutorials? What is you plan?... (by closed account 48T7M4Gy)
by tkj80
MinGW - libgmp-10.dll
 
Hi, I tried to execute the following command line code C:\Scripts>C:\MinGW\bin\g++ helloworld.cpp -o helloworld.exe However, I got the following error...
[3 replies] Last: Because that is the same folder libgmp-10.dll is in. You can also cop... (by kevinkjt2000)
by moop
Can't remember an easy if else statement
 
Okay guys, so I had to step away from my computer for a while and haven't been coding much, once I got back I decided to start learning Python and now I can't r...
[6 replies] Last: Line 17: The ; terminates the while loop. Lines 18-20 are going to... (by AbstractionAnon)
class question
 
hello! guys, can you help me find the error? because my output has wrong.thanks #include<iostream> #include<iomanip> using namespace std; class Increment...
[2 replies] Last: Your set_*() methods are declared to return a value, but they don't re... (by dhayden)
Displaying an array of classes
 
Hello! Does anyone know how to go about displaying a class into an array? For example, I mad a class, and want to print it out as an array of maybe 10. I've...
[10 replies] Last: Great, thanks Kemort! I'll do that! (by LiBRiUMz)
OOP Snake game, multiple classes
 
()
[2 replies] Last: () (by mihaijulien)
August 2016 Pages: 1... 1011121314... 22
  Archived months: [jul2016] [sep2016]

This is an archived page. To post a new message, go to the current page.