Beginners - March 2017 (Page 26)

by knedim
C++ tasks and exercises
 
Hello there. I am new to this forum and I would like to say hello to the community. I am studying CSIS and I have started to learn C++ as an individual subject ...
[2 replies] Last: Thanks ne555! (by knedim)
by mrsh
matrix power
 
i tried to run matrix power,but i dont get the correct answer for my matrix,this is my code #include <fstream.> #include <iostream> #include <conio.h> ...
[10 replies] Last: @mrsh Presumably your sum is in F . You keep resetting this to zero ... (by lastchance)
Need help with my code please.
 
In my code i'm have some trouble trying to implement error checking based on what the user enters. For example I have this in my code: if (questionType != "...
[2 replies] Last: Ahhh Thank you. I tried using while but was forgetting (true). Thanks ... (by pleaseINeedHelp)
Can someone help!!!
 
Ive been trying to get this code to run for days but it keeps crashing for me. can someone tell me what im doing wrong. its due this Friday and im fed up with i...
[3 replies] Last: ok its running now but im not getting the correct output. im getting ... (by joe lennar)
Recursion Help
 
Define a recursive function int sum_range(int low, int high) that computes the sum low+(low+1)+(low+2)+⋯+high using recursion. You can assume low≤high. ...
[2 replies] Last: This is all I'm given: int sum_range(int low, int high) { } I hav... (by closed account G3AqfSEw)
How wold I pass by reference without using void?
 
#include <iostream> using namespace std; void ADD(const int &num1, const int &num2, float &SUM); void SUBTRACT(const int &num1, const int &num2, float &Di...
[6 replies] Last: Ah! I see. I forgot about that. Thank you for the refresher, integralf... (by ElusiveTau)
Base classes and derived classes.
 
Hi, I don't really have a compiler issue, but I know it is something with my code. I am trying to create a base BankAccount object that has 2 derived classes (C...
[no replies]
Help with creating and writing to a file in a specific format.
 
Hi I am having trouble figuring out where to start with my project. What I need to do is instead of me creating the Test.txt file and inputting the needed infor...
[8 replies] Last: Thanks that helped me figure it out. (by pleaseINeedHelp)
definitions
 
Can someone please tell what the definitions for objects, attributes, static, scope is?
[3 replies] Last: It works Thank You so much ! (by sesslit805)
function to draw a diamond.
 
I need to do this. Finally, you will draw the diamond using a programmer-defined function that accepts both the integer and the printable character entered by ...
[2 replies] Last: Write out psuedo code for this. Looking at your "diamond" it looks lik... (by kingkush)
class and object (.cpp file accessing .h file) - BUG!
 
I get a weird bug: "error: cannot declare variable ‘use’ to be of abstract type ‘test’", any idea where it is coming from ? // Note: test is the n...
[3 replies] Last: rather than say 'override the base class pure virtual function within ... (by gunnerfunner)
by rrush1
arrays
 
I am trying to take an input of different speeds from athletes and then display the fastest, the slowest, the speeds under 5:00, and the average. The times are ...
[6 replies] Last: Glad it helped! I was worried it might have too much extra stuff going... (by kingkush)
by quixdi
Why isn't the math working correctly?
 
This is homework that was graded last month, but I now have to reuse this as a basis for another program that I have to do. I need to know what I'm doing wrong ...
[8 replies] Last: YES!! that was the goof I couldn't find. Thanks a ton cire!! Now onto... (by quixdi)
Loop Question
 
Write your question here. int i; int wage=1 cout << "You will be paid a wage of $2 on your first day and have your wage doubled every day after that." << en...
[2 replies] Last: the forum moves slowly here. If its on the first page, don't do this.... (by jonnin)
Continue running when PC wakes up.
 
Hi all, This is my first post here and I am very new to C++. I'm not too sure how easy this is to do and I have searched the internet and this forum but I h...
[1 reply] : normal applications should be handled by the operating system, and wil... (by jonnin)
Passing an array of pointers
 
I am trying to pass an array that points to a Worker class object that I have created. I need another class to access the object parameters so I am passing it i...
[1 reply] : here is a stylized example with two embellishments (so to speak): (a) ... (by gunnerfunner)
Heeeeeeeelp
 
Anyone knows how to create a program that tells whether the input is prime number or not. And also, the program will terminates if the user input a number that ...
[1 reply] : The brute force option is to test against a modulus of all smaller num... (by newbieg)
Getline help
 
I was wondering if there was a way to stop getline at 2 possible conditions. I know that getline(cin, num1, '/') works but I want it to be able to stop a...
[5 replies] Last: oh, that's what you're doing? There's no need to call atoi if you alre... (by Cubbi)
Hello Guys ! Look at my new game ! :]
 
Write your question here. This game has a lot of bugs but it still looks good for me ! Im a beginner and learning C++ its really fun (Im 13 years old ) yeah fir...
[2 replies] Last: I like it, it's a good start! Don't give up and you'll make it perfect... (by Enoizat)
need help with making code for a program
 
I'm trying to code a program that will allow the user to play any card game they desire and load the proper game mat, card images and database. I also want the ...
[6 replies] Last: Thanks for the tips. I really appreciate the help. I think I'm just go... (by jbed2k17)
March 2017 Pages: 1... 2425262728... 36
  Archived months: [feb2017] [apr2017]

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