Beginners - February 2013 (Page 20)

by rcast
Using Classes and Inheritance
First time really using the OOP side of C++, working with classes. Is the following code appropriate for the application in which I'm using it? // Decimal t...
Feb 21, 2013 at 10:16pm
[3 replies] Last: @maddy1445 - Please don't hijack someone else's thread. (by AbstractionAnon)
Help with code please
I am trying to get this function to work. It will display: Name...... Street.... City...... Then terminate and I just can't seem to get it right. Thanks...
Feb 21, 2013 at 8:30pm
[3 replies] Last: In line 11 of the original code you wrote: const char FileName = "c:... (by eraggo)
Confusion with the if/else statement
Hi. I am having trouble with a programming assignment as it pertains to the concept of the if/else statement. For example, we are supposed to enter a number 1...
Feb 21, 2013 at 7:58pm
[7 replies] Last: You will also need to look at the different types of "Loops" available... (by Jerseppi)
Creating Connect four
Hello i am trying to create connect four as the title says I went to make the check win function and went well I don't want to write a couple hundred if's to ch...
Feb 21, 2013 at 7:36pm
[1 reply] : When a piece is placed, you could add up the number of consecutive pie... (by Branflakes91093)
by nein9
Program formula needs fixing
I need this program to do http://pastebin.com/2Kuf9ekD . The program runs fine, however, when I input the given numbers I get the wrong answer. For some weird ...
Feb 21, 2013 at 7:29pm
[7 replies] Last: You're right! Thank You! :D (by nein9)
Please Help
Hey everyone this my first post but I am having trouble with an assignment for my C++ class. I was suppose to calculate the average of 4 class from 4 different ...
Feb 21, 2013 at 6:21pm
[1 reply] : Function find_average() void find_average(ifstream& input, double... (by Chervil)
by fx11
Class, Arrays, Operator overloading = instable code. Why?
Hi All! I am a beginner to programming. I learn C++ from site cplusplus.com. I wanted to try operator overloading. I wrote a C++ program using arrays. ...
Feb 21, 2013 at 5:57pm
[1 reply] : The problem is when the objects are copied, it will just copy cAry and... (by Peter87)
C++ infile problem
My problem is simple - read an input file that has 3 lines of text : This is a test - This is also a test -- This is just another test - each on its own line. T...
Feb 21, 2013 at 3:52pm
[5 replies] Last: I think I figured out the problem here - the cout and out statements a... (by Kenneth Howard)
by krutuk
Problem with template
The program is primitive, yet I still cann't find out mistake. Here the program is: #include <iostream> using namespace std; template <class X> void swap(X ...
Feb 21, 2013 at 2:31pm
[7 replies] Last: No problem wasn't in cout. I did like this: #include <iostream> usin... (by krutuk)
std::string .find()
So, for some reason I never bothered to learn about string functions. I've written some code to remove a word from a string which works fine. After the word has...
Feb 21, 2013 at 2:00pm
[4 replies] Last: Ha! I cut/paste it wrong when I moved it! Edit : I had a ';' at the ... (by Lynx876)
help!!!
Create a program that will display all the composite numbers from 0 to 1000 and has a maximum column of 5 . A composite number is a positive integer that has ...
Feb 21, 2013 at 1:20pm
[7 replies] Last: thanks for the idea.. i already get it :)) (by MEandYOU)
Please help. I am unable to find the error !!
#include <iostream> using namespace std; template <class T> void swap(T&x, T&y) { T temp=x; x=y; y=temp; } int main () { int m=22, n=33; string ...
Feb 21, 2013 at 12:58pm
[3 replies] Last: Thanks a lot !! :) (by newbie456)
by lolwe
Help with 1 function
I need a function which count and display nodes with maximum outgoing edges/arcs/ in graph Here is the code, i have to add this function to it. Anyone? ...
Feb 21, 2013 at 12:56pm
[no replies]
How do I read ints separated by commas in a file?
I'm trying to read something like this: 1. Oliver, 42, 405023, 12 I know about the getline(readFile,string,',') thing but how do I apply it to ints or doubl...
Feb 21, 2013 at 12:41pm
[3 replies] Last: I like the suggestion from Stewbond . If you have an input file whic... (by Chervil)
help me about QUEUE
what wrong with my code?? #include<iostream> #include<iomanip> #include<queue> #include<cstdlib> using namespace std; void NhapQueue(queue<char> ); void...
Feb 21, 2013 at 11:11am
[2 replies] Last: thank you. I'll try again. (by vuonganh1993)
How to read from a file specific elements
Afternoon, for my c++ class I am taking, we are tasked with reading from a file of people that gives us the city, state, and zipcode of those people. The file i...
Feb 21, 2013 at 10:01am
[1 reply] : Sounds like a case for std::map. It's an associative array where you c... (by plexus)
Help with future value program and interest
I have to write a program for my computer science class to determine the future value of a given amount of money. I'm close I know it, but I'm currently stuck....
Feb 21, 2013 at 7:46am
[4 replies] Last: double futurevalue=deposit*pow(1+(rate/100),years); Something lik... (by closed account j86M4iN6)
Help with palindrome program
This program is supposed to determine if a word is a palindrome and reverse a string. The reverse string is working, but the palindrome checker is not. Can anyo...
Feb 21, 2013 at 6:57am
[no replies]
Can't figure out this error
I'm using VS 2010. I keep getting Error 1 error LNK2019: unresolved external symbol "void __cdecl printRaceGoblin(void)" (?printRaceGoblin@@YAXXZ) reference...
Feb 21, 2013 at 5:35am
[5 replies] Last: my personal way of choice http://en.wikipedia.org/wiki/Rubber_duck_deb... (by K0T4K0t4)
by js404
interesting input issue.
Here's my code: int talkto(string name){ string talktoinput; talktobase: cout << "\n\nTalk to " << name <<" ? (y/n)"; getline (cin, talkto...
Feb 21, 2013 at 5:30am
[2 replies] Last: How are you calling the talkto() function? There are some unread char... (by jim80y)
February 2013 Pages: 1... 1819202122... 67
  Archived months: [jan2013] [mar2013]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.