Beginners - October 2014 (Page 47)

by hops
Beginner in need of help.
 
I'm really having a hard time understanding how to print pyramids using asterisks. Can someone please explain the procedure step by step? example of how the ...
[1 reply] : 1) make a loop which will be executed as many times as there is pirami... (by MiiNiPaa)
Converting area unit
 
I need to convert unit between Square metres Square feet.Here is my a part of code. void Q1(){ int opt;double UnitA;double UnitB; cout << "~Area con...
[1 reply] : 1.) You need break statements for the cases unless, you intended for i... (by Subzero030201)
STL Map: How to look up key through value?
 
If I write the following code, #include <iostream> #include <string> #include <map> using namespace std; int main() { map<int,string>grade; ...
[1 reply] : 1) make it map<string, int> . You will get ability to print 80 using ... (by MiiNiPaa)
Class & Objects Problem
 
Can someone tell me what is wrong with this code? It seems pretty straight forward. I'm just accessing a private variable through public functions but on line '...
[3 replies] Last: TheIdeasMan is right. but... This should also work now. #include <i... (by Subzero030201)
Remove Duplicates from Array
 
I'm trying to create a random number generator and storing it into an array, however I sometimes get duplicates. How do I remove the duplicate from the array an...
[1 reply] : You'd need to, after generating a particular index's number, check all... (by TheKingOfTyrants)
Saving Processed Data from an InvenSense MPU9150 to an SD card
 
I want to save processed data (calibrated acceleration and fused euler angles) generated from the Arduino9150 sketch from https://github.com/richards-tech/MPU91...
[no replies]
by Emil1
WORD UNSCRAMBLING PROGRAM
 
Uhhh hi i need help for my program. So basically i want my program to list all possible combinations of 4 letters in a word. Ex. The word "TEST" can be unscramb...
[1 reply] : Check this function: http://en.cppreference.com/w/cpp/algorithm/next_p... (by MiiNiPaa)
by Masada
Template Function issue
 
I'm working on an assignment and I'm learning how to use templates. Based on the instructions given, I'm not sure where I've gone wrong. I'm getting an error...
[8 replies] Last: I think I'm going to give up on this for the night. I did what you sai... (by Masada)
Arrays and functions
 
Hey guys, What I am trying to do is get this 2darray to pass to the function. The code looks weird simply because I have cut everything down to basically not...
[2 replies] Last: Hi keene, You are the man that worked! Thanks for your help!!! (by MRangel)
problem with string input.code included.
 
Write your question here. void addstudent() { int c = 0; c++; system("clear"); cout << "A D D A S T U D E N T" << endl; ...
[2 replies] Last: Thank You so much! Problem solved. I was obsessing over this so much. ... (by omkarborkar95)
by Pg0715
functions help
 
im having trouble understanding what this means if somebody can help explain to me what it stands for so I can go on doing my work. The third function o Use t...
[7 replies] Last: ok thanks for the help (by Pg0715)
by Korcha
Print out a string backwards
 
I don't understand why this is not working... #include <iostream> #include <string> using namespace std; int main(){ string mystr = ""; cout ...
[6 replies] Last: Ahaha no prob :) (by LendraDwi)
by Pg0715
enum type with functions
 
ok so first im suppose to create an enumerated type called Grade. then have two functions one function called void displayGrade(Grade)which I need to have as a ...
[1 reply] : You don't need single quote for using enum inside switch (by LendraDwi)
find function in string not working
 
I've been working on this code for days and just can't make it work. Everything else in here but the getTexas function is working. What am I doing wrong!?!?!?...
[4 replies] Last: You are completely and totally awesome!!! Thank you sooooo much!! Se... (by lostnconfused)
new to c++ i need some help cant figure this out
 
so i have a project due tomorrow this is exactly what it wants from me "Write a program which is used to calculate the GPA based on the grades for different co...
[3 replies] Last: thanks so much i appreciate it this is my first year in c++ and i am s... (by foolofools)
What is wrong with this 3*3 array program?
 
Dear Friends, I want this code get "t" 9 times from a .txt at desktop and save the acc(t) results in array forms in text file in desktop. But while running ...
[1 reply] : There is only a warning at line 13 to say that you have declared n but... (by closed account 48T7M4Gy)
Trying to figure out this for loop
 
I have been trying to write a program for an assignment to write bar codes. I have found some similar programs to help give me some ideas but, I can't understan...
[1 reply] : not sure what you are trying to do with <</b>32 it probably should b... (by giblit)
Homework/lab trouble
 
Hi I really appreciate you taking the time to help me. I'm in my first semester in C++ and I'm having a lot of trouble with this lab. I just learned what the wh...
[3 replies] Last: You can use an array to store all the digits you find or if you know h... (by Smac89)
counting iterations of a while loop
 
I am starting with a user input (a whole number). The goal is to us a loop to decrement the input number by 10. What I want to out put is the final number of it...
[2 replies] Last: Thanks, that helped a lot. Now I have to add a part that captures the... (by dunnDolphin)
Using random binary #s to select random item from odd-numbered list
 
I'm fairly new to programming and have a general computer programming logic that's been bugging me. This is just a logic problem that I've been trying to figure...
[no replies]
October 2014 Pages: 1... 4546474849... 70
  Archived months: [sep2014] [nov2014]

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