General C++ Programming - February 2013 (Page 29)

please help with my homework
 
B. Circle in a Square Write a C++ program that will ask the user to enter the area of a square. Then the program will display the biggest area of a circle tha...
[1 reply] : Using math.h library is not allowed. Can you use <cmath> then? :)... (by MiiNiPaa)
Do While and Repetition
 
Hello everyone! I need some help and hopefully I can find a few answers... I have this program written out, and essentially it is a GPA calculator that is su...
[4 replies] Last: Thank you! (by squegles)
by bardia
Time and Date as Text File Name
 
Hello, I'm new to this forum, but I have been using it's advice and it's been great. Anyways, I've been writing a journal program. I've been able to get the fil...
[1 reply] : NVM, I'm sorry. Just solved it, with *cough cough* another forum. Her... (by bardia)
need help drawing a rectangle
 
hello i'm trying to create a rectangle in c++ using vectors that have a menu to select the size and shape.
[2 replies] Last: it's telling me for needs a { and shapeSize isn't defined? i don't get... (by purplebud)
Need help with my beginners restaurant program.(mainly the tax)
 
Hello everyone I am working on my first C++ program ahead of schedule and I think I almost have it down. The only thing that has me scratching my head is that t...
[6 replies] Last: ^^ done thanks forgot about that =) (by Nonstickrudy)
by Jgwman
String to multidimensional char vector
 
Hello, today I was working on a program which compares sequences of characters, counts the differences between them, and displays them. I had the sequence inpu...
[7 replies] Last: Sorry for taking so long, that's what it was supposed to do, but would... (by Jgwman)
Templates Mangling my Mind
 
For my data-structures class, I am attempting to create a binary search tree template to be used to create an AVL tree. I've written a Generic_Tree template for...
[4 replies] Last: (this is getting ridiculous common, ¿where is the FAQ?) http://ww... (by cire)
Help With Binary Tree Template
 
When I compile the program, I get errors I've never seen before. Any help to resolve this will be appreciated. Here's my program: Header File #ifndef BINAR...
[2 replies] Last: Thanks ne555 (by BinaryGeek)
by virk
passing array as argument to function?
 
how can i pass an array as an argument to the function? in getCoin() fcn, I am supposed to pass coins array as an argument to the function. fcn prompts user t...
[4 replies] Last: THANKS a lot Smac89 and vlad from moscow. I appreciate your time guys.... (by virk)
by Bound
Pointer to an array of pointers
 
Hey guys, I'm just trying to get a handle on the uses of pointers here. Though clearly from my errors I'm missing a key concept :-) Here is my code: (You can...
[4 replies] Last: That was it, thanks a ton! (by Bound)
Downcasting without copying the whole thing
 
I have a non-virtual class (VectorT) with exactly the same data structure with its derived (Vector3). Derived class has more function members (e.g. a 3d vector ...
[2 replies] Last: > You can't "convert" it to another type. But you can treat it as you ... (by ne555)
How do I use the or "||" operator with a Char type in a loop?
 
I am trying to make this loop until a valid char is entered. while ( VALID =1) { cout << "Enter customer type: " << "R or r (Regular), " << "P or ...
[3 replies] Last: Exactly what I needed. I am taking basic C++ right now so the toupper ... (by BrianDehn)
by hvigil
How to store data from a class into a container?
 
I'm having trouble understanding on how to actually store into a container from another class. Can anybody show me a simple example.
[9 replies] Last: I'm not quite there yet , maybe in a couple of days ill get into vecot... (by hvigil)
by aj3423
how to implement a class that support both default ctor and operator=
 
#include <iostream> #include <string> using namespace std; struct create_info { string text; }; struct window { create_info c_info; window() {} }; temp...
[4 replies] Last: At first I thought the wnd should have default create_info even if not... (by aj3423)
Printing IEEE 754
 
I'm working on an assignment but I'm stuck. For some reason I can't get this outcome: byte order: little-endian > FFFFFFFF 0xFFFFFFFF signBit 1, expBit...
[1 reply] : Uh, what is the program's purpose? (by greenleaf800073)
by cnoobs
How do you set color on inputs and outputs for C++?
 
I am new to C++ and I want to learn how to set color a particular color for the users input and output. For example, I want to display the users input as green,...
[2 replies] Last: 5 stars for eklavya sharma 2! (by greenleaf800073)
by Chegy
Inserting math functions from GUI
 
Hi guys, I'm new to C++, so go a bit easy on me. I have a problem with entering math functions in my Bisection method algorithm program. I just don't know ho...
[11 replies] Last: kewl (by greenleaf800073)
by Us5
Doubts and Errors
 
Hi everyone. This is my first post - so please go a bit easy on me :P - See , i've been learning c++ for a major part of the year (last year) in school - and al...
[10 replies] Last: cout << "Enter 1 for function 1, etc..."; cin >> input; switch(input)... (by greenleaf800073)
Calling method of specialized template base class in sub-class
 
class IFoo { virtual void Bar() = 0; }; class FooAbstract { virtual void Bar() {} }; template<class T> class FooTemplate { public: virtual void...
[5 replies] Last: Line 33 is missing a void type. Simply qualify the call to Bar by ... (by AbstractionAnon)
Palindrome Program
 
I have an assignment where i have to make a palindrome program. As you can see i have already done the basic palindrome prog, however i am now stuck since the p...
[6 replies] Last: This is a duplicate of a thread that is marked as solved: http://www.c... (by JLBorges)
February 2013 Pages: 1... 2728293031... 43
  Archived months: [jan2013] [mar2013]

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