Beginners - October 2013 (Page 43)

Class Inheritance Problems
 
Guys I think I am getting confused now. Say I have the following classes and want to change something class Bass { public: virtual int get...
[10 replies] Last: Eliding memory management for brevity 'Eliding'? i've learnt a new ... (by mutexe)
Looping through an array problem
 
Hi everyone! I'm trying to loop through an array (initialised to zero) 5 times at random positions in the array, then place a number count in that position. i....
[2 replies] Last: Many thanks!!! That works perfectly. (by Vagabond)
Need help with palindrome function
 
For my class I need to make my function able to read palindrome strings (Words that are spelled the same backwards ex: racecar) while ignoring punctuation and s...
[2 replies] Last: Yeah, quite easily but I'm probably going to do it a lot more complex ... (by TheBeardedQuack)
by Jibby
Hello all, new to programming. Some questions.
 
Hey all, I am making the jump into C++. I currently work in the field of IS security and server administration, however I have never come near any type of...
[3 replies] Last: Surely! I had this funny experience... :) (by rodiongork)
I can't compile libtcod with minGW on windows
 
Well, this is my first library I want to compile, and I have followed this tutorial: http://doryen.eptalys.net/data/libtcod/doc/1.5.2/html2/compile_libtcod_...
[2 replies] Last: I'm really sorry for not replying, but my internet was down. Anyway, j... (by tarik00555)
read/write the fifo
 
I have fifo, i have to read data from location 23 to 35 and put in an array sc_fifo<36> data_fifo(8); int arr_1 ; now i had to specify the locatio...
[no replies]
multi dimensional array
 
i have to numbers 12345678 87654321 and to store in array. int arr ; arr = 12345678; arr = 12345678; Please correct!!!...
[4 replies] Last: yes i need no multidimensional array solved (by amitk3553)
Help with loops and accumulators
 
I'm just learning about programming and computer science in general and I'm kind of stumped at the moment. I'm at a wall and its late and I'm getting kind of gr...
[5 replies] Last: Don't forget to mark as solved. (by elite zero)
c++ adding numbers to each line
 
Need some help, writing a program that will read the text from a file, but when it prints it out to the console each new line from the file should be numbered. ...
[5 replies] Last: #include <iostream> #include <fstream> #include <string> #include <io... (by JLBorges)
Cant get my program to run
 
#include <iostream> #include <cmath> #include <fstream> using namespace std; int main () { //input variables float NumberRight; float ...
[4 replies] Last: 2) Have you ever done switch / case statements switch can only take ... (by closed account Dy7SLyTq)
Function Not Executing?
 
Hi, I am working with classes, and I have written a function called withdrawl(char) , and when i call it in main the compiler completely skips it. My program...
[1 reply] : New guy here. Hello to all. It seems to me that those member functions... (by closed account E0M1hbRD)
undefined reference to typeinfo for [class name]
 
Hi Forum There are many explanations for this type of error , but none of them made much sense to me. I have subclassed a class and over-ridden the virtual m...
[no replies]
Help with Class
 
"Assume  a class  Window with a constructor  that accepts two integer  arguments : width and height (in that order). Declare  an array  named  winarr, c...
[2 replies] Last: figured it out: Window winarr = {Window(80,20),Window(10,10),Window(... (by vikillav)
Strange error with any program I write.
 
So I'm trying to do a project and I keep getting an error no matter how simple of a program I write that includes cin and cout. I've tried repairing my install ...
[4 replies] Last: You just saved my life! Thank you so much, I've been panicking for ove... (by WillX47)
c++ row and column problem
 
Hi i've been having trouble with my c++ program. instead of repeating the digits over and over, how would I make it so the repeating digits are blank spaces ...
[7 replies] Last: the std:: in front is called scoping it I put that because I didn't in... (by giblit)
More Random Numbers Help
 
I am a computer science 1 student and am kinda stuck on my program. The program is called "Guessing Numbers" and is a simple little game of guess the number. My...
[2 replies] Last: Wow that was an easy fix. Maybe I need to step away for a few minutes,... (by EvanWeaksauce)
Intro to Functions assignment
 
Hey there, my assignment was to create a program that asks for 3 values, calculates/outputs the average of the values, then outputs the standard deviation, all ...
[1 reply] : }while(choice != 'n' || choice != 'N'); should be }while(choice != ... (by Yanson)
Limiting cin to n number of digits
 
Hi everyone. I would like to know if there is any way to limit to number of digits that can be entered using cin. I have successfully looped my code so that a n...
[2 replies] Last: Thanks for replying. I'm not sure I get your code, especially how I'm ... (by Annatar)
Converting Switch to If/elese
 
Hey guys, I'm just going over some practice problems for my introductory C++ class and I'm struggling with finding a solution to converting this switch code to ...
[7 replies] Last: Exactly (by elite zero)
Help with pass by reference quadratic program
 
I need help finishing my program that uses pass by reference and will output all the roots of a quadratic after the user inputs the coefficients (a, b, c). I kn...
[4 replies] Last: I fixed some of them, but i need help putting my imaginary roots into ... (by jon smith)
October 2013 Pages: 1... 4142434445... 86
  Archived months: [sep2013] [nov2013]

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