General C++ Programming - April 2011 (Page 23)

Problems with exception handling.
 
I'm having trouble with a try/catch block I'm working with. Specifically, this piece: string cycle; cout << "Enter Cycle (AM/PM): "; cin >> cycle; ...
[4 replies] Last: Return Value 0 if the compared characters sequences are equal ... (by kbw)
Embedding Python into C++
 
Hey Guys Firstly, this is my 1st post, So hello to everyone :) I just want to check if anyone has any idea if its possible to embed Python ( or any other ...
[3 replies] Last: Thanks guys :) (by shinra1989)
Problem with a prototype function.
 
We are learning about prototype functions in my Programming for engineers class and just started prototype functions. I have already completed one program using...
[6 replies] Last: In: double radius(int x1, int y1, int x2, int y2); double area(double... (by kbw)
by Acr
Subclass unable to access member function
 
Good day, I've been setting up my datastructure as such: I have one class 'Storage' and a subclass 'StorageMap'. The header files of both (constructors an...
[6 replies] Last: Maybe poking my nose in unnecessarily here By all means, poke around... (by Acr)
classes and derived classes
 
Hi I have created a database for employee information. I have using a mapping container using the employee's ID number as the Key. The database stores data ...
[5 replies] Last: In that case, maybe you could have a multimap (allows multiple identi... (by bartoli)
How to obtain the multiplication of the rows.
 
I have to program in an Array the multiplication of the rows 0 and 1, how would i go about it? 123 456 789
[2 replies] Last: 3 * 456: Get the last number from the first row, and the last number ... (by Acr)
hi gays.this is my homework.if can't write this program I fail.if you help me I will pleasure.thanx
 
Tough beans. You should have payed attention in class.
[5 replies] Last: this made me chuckle. (by lnk2019)
by ne555
container::{const_,}iterator and const correct
 
Suppose that we want to provide an iterator class to traverse our container. class iterator{ iterator(Node *node):node(node){} Node *node; }; iterat...
[5 replies] Last: Like this? template<class T> class container{ class node; tem... (by ne555)
algorithm workbench: writing a statement
 
hi, a program contains the following function: int cube(int num) { return num * num * num; } I'm suppose to write a statement that passes the val...
[2 replies] Last: Very hard to explain how to do this without actually giving you the an... (by TheNoobie)
Trouble converting binary int to float
 
I have written a parser in java that generates a binary data file via the java.io.DataOutputStream.writeFloat / writeChar. It is worth noting that writeFloat co...
[no replies]
arrays- not sure what to input in for loop, below is the question, how would i go about it
 
int arr = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}; Print the elements of arr in three ways: 1 2 3 4 5 6 7 8 9 1 4 7 2 5 8 3 6 9 9 8 7 6 5 4 3 2 1...
[7 replies] Last: haha nvm i got it, thanks (by NYCrealist123)
Logical Error (1,2,3)
 
I'm working on a large project to emulate some functions of a bank. However, I've run into a strange problem that I can't track down. I was wondering if anyone ...
[42 replies] Last: I don't understand your argument. What's wrong with my String and Arra... (by Mathhead200)
help with C++ question please
 
hey guys how you doing ive been given a question to do and i have no clue where to go about it if someone can help me please ? Suppose a deposit of certa...
[3 replies] Last: Start with a simple program that adds up the values entered into a var... (by stahta01)
by mof
Constructor Destructor in Structure
 
Is it possible to have a structure say initialise itself without defining it as a class? I'm probably being pedantic, so let me know if I am. e.g. typede...
[8 replies] Last: All you need to know is C++ is created to be backward-compatible to ol... (by sohguanh)
Quick histogram array assignment
 
Here is the assignment. https://wiki.ittc.ku.edu/ittc/EECS168:Homework4 My problem i my output is only the header. It's like the program stops at my while l...
[no replies]
Static function
 
I wanted to ask whether the function normalize in my code is a static function or not? and can static functions access non-static class members or not? I have ...
[3 replies] Last: Thank you . (by wajahat)
hello. problem with cin.getline and for/next??
 
hello guys im trying to read input from keyboard including space so i coded that; int main() { int ks,i,j,is; char nokta ; cout<<"Enter N: ...
[2 replies] Last: thanks mate. i put cin.ignore(1); then it is ok now. thanks a lot ;) (by whocares21)
by Bog
overload errortrap function
 
So my assignment is Write a method called input that type traps (and error traps) a user's integer input between two range values that are passed as paramete...
[1 reply] : Function overloading is easy, you just make another function with the ... (by LB)
Interacting with a web page
 
How would I write a program to interact with a web page? I'm trying to send information to the username and password input fields. Right now I can assume that t...
[4 replies] Last: Hmm today has been successful, I've made a custom proxy in c++, so far... (by ultifinitus)
vector indexes
 
I'm walking through a vector using a for loop and each time through I check the object in the vector for a certain criteria. If it fials I want to erase the ob...
[1 reply] : 'i' will not be changed, so if i = 5 and you erase myvector , the elem... (by Bazzy)
April 2011 Pages: 1... 2122232425... 37
  Archived months: [mar2011] [may2011]

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