Beginners - December 2009 (Page 21)

Question about using derived class pointer to base class and vice versa
 
Hi, I am new to C++ and have gone through many of the online tutorials and books that are available. But one concept eludes me, and I am hoping someone can ...
[5 replies] Last: Thanks again, kbw. This finally clarifies everything. Thanks aga... (by nayakan88)
reading & handling command line args
 
Hi im i student working on a assignment and need some help. we have to do is read in arguments from command line (-i inputTxt.txt -o outputTxt.txt) and then ass...
[7 replies] Last: You can't use 'row' on line 7 before you declare it on line 8 (by Disch)
how to get Program to read entire text file......
 
i currently have the program to process one word from the file, but i want it to read the entire text file, how would i do this. char pw ,name ; int ...
[4 replies] Last: You need to hit the textbooks again. Read the chapters on functions an... (by Duthomhas)
print on LED screen.....
 
I m a beginnering of C++ I m trying to print a phrase dEaF on LED screen, but I have no clue how to write it... 01234567 --------d ------dE -----dEa -...
[1 reply] : Um, I'm confused as to what the picture is as that certainly isn't pri... (by Zhuge)
separating implementation
 
I can't separate my implementation; I have template <typename Object> class list { public: struct node { ....... }; node * del(...
[5 replies] Last: I writed class list<Object>::node * list<Object>::del(node * xy) ... (by akayrak)
Blackjack Program
 
I am having a lot of problems with my blackjack program. It doesn't run at all! If someone can help me that would be great!! Thanks! #include <iostream> #i...
[4 replies] Last: One more question, have you used structures or pointers at all yet? I... (by UNkillableThrill)
by TanKCR
C++ ofstream not working
 
I am struggling with my code. I need the program to accept inputs and write them back into a text file. Here is my current code. #include <iostream> #include...
[3 replies] Last: If you're going to do this: ofstream taxFile ("Tax.txt"); Then... (by lace28)
wrong function
 
And so..Need help. i have string of numbers and i have to print out those pairs of numbers which havent got any other divider,only 1.For example 6 and 25 or 21...
[7 replies] Last: Ok, here's the pseudo-code for the simplest version of gcd (copied fro... (by jsmith)
count letters in a string
 
Hello! Can someone please help me? Im trying to make a program that would cout what letters and how much of them are in a string, for example: string s = ...
[6 replies] Last: ty (by award982)
Program problem??
 
#include <iostream> #include <iomanip> #include <cmath> using namespace std; int y,r,s,C,n; int main() { double d=1/(1+y/2); cout << setprecision(8...
[2 replies] Last: smh of course! thanks (by Bobby Reds)
Combining a template recursion into one file?
 
Header: template < class T > T minimum ( T value1, T value2) { T minimumValue = value1; if (value2 < minimumValue) minimumValue = value2; ret...
[4 replies] Last: You need a loop. Assume that the minimum value is the first one in th... (by jsmith)
Strings using <cstring>
 
If I have a string with no spaces (\0) in it, how can i break up the string into to separate strings: Say I have cin << fullname (with a comma between last a...
[2 replies] Last: You can use strtok: http://www.cplusplus.com/reference/clibrary/cstrin... (by Bazzy)
hi fellas
 
guys iv got urgent question and asking for help:what i need to do write? "code which takzes words from 1stfile and put those words into 2nd file written other ...
[1 reply] : You need to do 3 things: read words from file A turn words around w... (by joeriMJ)
Int Main problem
 
#include<stdio.h> void Mid_Display (int x,int y, int z) int main() { int x,y,z; printf("MID NUMBER DISPLAYER\n"); printf("Input three numbers:\n"); scan...
[2 replies] Last: ofcourse! thank you (by metalheadrenzo)
Making a program end without displaying the output
 
I am sure this is quite simple, but I just want the program to end when the user enters -1. With the code I have below, it continues to display the highest, low...
[4 replies] Last: Sweet...that makes sense. Huge help...So it executes as long as a coun... (by thebenjamins)
Converting numerical sequence to MIDI sequence
 
I am a total novice to programming and C++ and I need some advice on how to develop a program for creating a MIDI file. The purpose of my program is to convert...
[1 reply] : My knowledge of MIDI is limited, but as far as I understand it, it's b... (by Disch)
How to count the vowels in a word?
 
Good day! I'm in desperate need for help. No one I know understands C++. I've searched the web for whatever useful info but ended up with finding tips for in...
[16 replies] Last: Agree with Disch, c-style strings are antiquated. They can be useful b... (by tummychow)
by token
Pyramid Programming
 
I'm trying to make a program that prints two pyramids next to each other. the program takes in an integer input from the user. for example. / user enters 10...
[1 reply] : conio is nonstandard and you are only using it to control your program... (by tummychow)
Finding minimum value in a vector
 
I got code here that uses max_element. However, can someone help with a more simplicated version that will produce the same output? #include <iostream> #i...
[1 reply] : You can get rid of lines 7, 8, 14 and 15, then call the algorithms lik... (by Bazzy)
Unable to write in file the \n in unicode
 
I am trying to convert from ansi to unicode using the MultibyteToWideChar. The problem is that when a new line comes the (function or the program) is unable to...
[8 replies] Last: solved, opening file in binary worked. Thanks a lot (by maxitis)
December 2009 Pages: 1... 1920212223
  Archived months: [nov2009] [jan2010]

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