Beginners - January 2016 (Page 26)

tourism console program
 
this is my program using Object Oriented Method,can u guys give comments about my classes?i need to using upcasting
[6 replies] Last: Fair enough. Then I recommend to close this thread as solved. (by chicofeo)
Palindromes using dynamic array
 
Hello C++ nerds, I am trying to do a palindrome using a dynamic array but before I spend 6 hours on this, is it possible to do it this way? As you can see th...
[2 replies] Last: when I reach the middle, I don't know what to do When you get to the... (by Chervil)
clearing the cin buffer
 
I'm trying to understand what happens when users enter data from cin. I read some information about clear() and ignore() functions, but I didn't understand they...
[7 replies] Last: Yes, mpark4656, sure it will help me. Thanks again! (by elaleph)
Is this Bad programming practice - simple program
 
Starting off c++ programming I dont know how bad programming practice appears like and i wrote this simple coin toss program as I would like someone to give me ...
[2 replies] Last: List of harmful (bad practice) things: using namespace std; Prefer ... (by sasauke)
Constructor Help..Basics
 
Thank you in advance for your assistance. I am trying doing this merely for practice to get a better grasp on constructors and how ti implement them. so.. 1)...
[12 replies] Last: Thanks (by nameishi)
Replace part of string
 
Hi all, I am having an bit of trouble with replacing an part of an string in c++. lets say i have an string that is beeing called like this CString strIcon = ...
[3 replies] Last: By looking at MSDN documentation here is what they say about CString:... (by codekiddy)
DNA MATCHING, Suffix trees
 
Hey guys. I have a final project for school, and I've been assigned DNA Matching. It sounds really cool and the more I look into it, it gets cooler. But I have ...
[2 replies] Last: Perhaps: http://www.allisons.org/ll/AlgDS/Tree/Suffix/ (by keskiverto)
Why isn't this program running?
 
#include <iostream> using namespace std; int main() { int quiz_1=10,quiz_2=15; char choice='\0',q1='\0',q2='\0'; cout<<"Show marks of Quiz-1 or Quiz-2?"<...
[5 replies] Last: I would start here: cout<<"Show marks of Quiz-1 or Quiz-2?"<<endl; W... (by Chervil)
Outputting a string from a file
 
How do I output emails (Only emails) from a file that contains multiple text? I understand how to open a file and read its contents but what conditions do i use...
[5 replies] Last: hypothetical approach in "understandable words" could be something lik... (by codekiddy)
Passing Pointers to Functions
 
So for background, I've been messing around doing examples on my own trying to further my understanding of pointers. So far I think I've been progressing but I ...
[2 replies] Last: I think you misunderstood what & means in function declaration: vo... (by codekiddy)
I'm making this program to verify if a entered data is palindrome or not, something is wrong with it
 
If I type 'ab' or 'abcba', it says that it is palindrome, while it is not. Also if i type 'try', it says it is not palindrome, which is true. Please fix the err...
[4 replies] Last: @Bdanielz I haven't studied strings yet. Thanks for your help though. ... (by kamilhassaan)
Terminating console input in C and C++
 
Hi, I was having this exercise where I had to write some input/output functions in C++ but call C functions to do the job and throw an exceptions if errors occu...
[4 replies] Last: Cool, tnx a lot man! (by etrusks)
by JoanT
Problem with computing grades program
 
I have to create two methods called computeGrade. One of the computeGrade method takes in a double argument and converts the marks into grade (A, B, C, D, F) an...
[1 reply] : What does it do that you don't like, or what does it not do that wish ... (by Moschops)
by shaven
help with this..i confuse
 
MY COMMAND(WHERE THE FIRST VALUE IS 25,25,12): #include "stdafx.h" #include<iostream> using namespace std; void main() {int Data_1,Data_2,Data_3; cout<<"key in...
[3 replies] Last: Thanks..I not notice it.. (by shaven)
Problem with boost/filesystem in Qt
 
Not sure if should post this in Qt forum or boost forum or here. Anyway, Im compiling with MSVC 2010 and using Boost 1.59. I am having trouble setting the path ...
[2 replies] Last: Figured it out, what I had was fine and simply running "Rebuild All"... (by wavebulb)
by Aceix
Need enlightenment with this line of code
 
Was surfing and came across this line(supposed to be C) and I cant even make meaning of it. int *(*foo ) (char *c); please explain
[3 replies] Last: lol.....yeah thanks. didnt see that one (by Aceix)
How to emulate key strokes?
 
Hello! I am playing a game (Americas army : proving grounds) and how do I make a program to replace my input? For example, I type 'r' while playing and the game...
[2 replies] Last: Hey thanks for the reply. I knew software for binding already exists, ... (by ephraimr)
Functions and Arrays
 
I keep getting an error message and i have no idea how to solve it. Here's my code and the error. program3.cpp:51:1: error: reference to overloaded function...
[11 replies] Last: As a beginner, I can get some new ideas and clarify my doubts here. (by srijayam)
How do we select sort an array?
 
For example if we have an array array ={9,1,6,7,3}; How do we sort it in an ascending order? I'm asking here because I missed this lecture and now my teac...
[5 replies] Last: int seek, minCount, minValue; for (seek = 0; seek < (elems-1);see... (by Stalker)
Critique my Federal Tax Calculation Program
 
This is a textbook exercise and here is the question verbatim Write a program that can be used to calculate the federal tax. The tax is calculated as follows:...
[3 replies] Last: Thank you both for the insight! (by mpark4656)
January 2016 Pages: 1... 242526272829
  Archived months: [dec2015] [feb2016]

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