General C++ Programming - February 2010 (Page 12)

c++*Urgent*(full code)
 
What is Happening...->the output LastName = ,comes out to be the string in Trade field... getline and cin problem?? before Enter Name commd, there is a cin>> ...
[3 replies] Last: Please read the parts with regards to indenting code properly. http... (by kempofighter)
convert c to c++
 
I am just wondering how to convert following source code to c++. #include <stdio.h> #include <stdlib.h> #define MAX 100 struct addr { char name ...
[4 replies] Last: I suppose you're right... I was just being overly suspicious, I guess.... (by chrisname)
by chee
ifstream matrix 15x15
 
i'm trying to get my program to say Enter to continue every 15x15 matrix. i get the program to stop and it reads the numbers from the text file, but it just goe...
[no replies]
If ladder or hash and switch-case for strings?
 
Let's say I'm accepting text commands. I need to figure out exactly which of many commands was entered. What's the most efficient way to do this? Thank you i...
[6 replies] Last: Meaning... what? Please tell me what I should do. (by Impacatus)
by helios
crypt(3)
 
So I found a C implementation of crypt(3) (http://en.wikipedia.org/wiki/Crypt_%28Unix%29#Library_Function ), but I'm having some trouble getting it to work. It'...
[7 replies] Last: I surmised as much ;) (by chrisname)
display name and score. names sorted by score in descending order
 
#include "stdafx.h" #include <cstdlib> #include <iostream> #include <iomanip> #include <string> #include <vector> using namespace std; struct studen...
[1 reply] : Help with what? YOu aren't even trying to do what you say that you ca... (by kempofighter)
c++ delete function code
 
the program asks user to add employee and save using ofstream, and delete ::-> ""Delete an Employee. This should ask for the last name of the employee (yo...
[3 replies] Last: I can't even read this the formatting is so irritating. And I even see... (by closed account S6k9GNh0)
ending array entry?
 
I'm writing a program that asks the user to enter 3 sets of numbers (max # in each set is 20), and after all 3 sets are entered, the program would display them....
[1 reply] : Just tell them to enter 21 to quit. If they enter 21, end the loop. (by tummychow)
Sequence not ordered
 
I'm trying to set a vector equal to the intersection of itself and another vector, iteratively. So I have something like: vector<int> set1; vector<int> set...
[5 replies] Last: A few typos aside, your code (manually unwrapped rather than the infin... (by moorecm)
Sorting Objects
 
Hey everyone, this is my first post on this site. I have been playing around with C++ a little and I require a bit of help. I have made this simple program t...
[14 replies] Last: #include <cstdlib> #include <iostream> #include <iomanip> #inclu... (by jmcomsci)
Standard Deviation Tempate Function
 
/////////////////////////////////////////////////////////////////////////// // // Pre: // StandardDeviation // // ...
[7 replies] Last: You are absolutely right about variance, sorry. By loss of precision I... (by Onanymous)
by cscs
problem with cin >> "char" and switch
 
I have problem with cin >> char and switch command. char x; cin.get(x); cout <<endl; switch(x) { case 49: { limit++; getReceipt(...
[14 replies] Last: No problem. Good luck on your project. (by Impacatus)
by dux
nested class in a templated class
 
I have the following: template<typename T> class Outer { private: enum Type { one, two, three }; class Inner { public: void s...
[3 replies] Last: typename did the trick. Thanks! (by dux)
by tnngo
Array not populate properly
 
I don't know what's going on but my counter isn't looping through. Can someone point me in the right direction? #include <iostream> #include <fstream> #incl...
[1 reply] : int index; index = 0; Try moving this code outside of the while loop... (by Impacatus)
minimum weight triabgulation of a convex polygon
 
Does anyone know a web site with some pseudocode on this? I am having trouble finding anything concrete that can help me out
[no replies]
by zcb
School Project Idea?
 
Hello all, I was recently assigned in my second semester c++ course (intermediate c++) an abstract of an individual project I will have to complete by the end o...
[3 replies] Last: Thanks a lot to both of you, it was really helpful and I've found some... (by zcb)
How to control the Form components from the other Units
 
Microsoft Visual C++ 2008 My Project contains one Form1 and one Unit (module) Test1.cpp. There is the button1 on the Form1 which calls the function: T...
[no replies]
Error Checking
 
Hey guys i am facing a problem in my sql statement. I am trying to check if there is such a value in the database. Code: string NewMovie = "ww"...
[4 replies] Last: See here: http://dev.mysql.com/doc/refman/5.0/en/mysql-store-result.h... (by guestgulkan)
protected inheritance
 
Hi Guys, I am confused as to why the code below does not work when I do new. class base { public: base() { } } ; class de...
[7 replies] Last: Thanks a lot for explanation guys. (by kevinchkin)
Installing RxLib
 
Hi boys: First, I am sorry about my English... I am from Cuba. I am new in this forum. I was programming in C++ Builder 6. The application I am building...
[7 replies] Last: I have no idea what RxLib is but you can perform some simple graphics ... (by tummychow)
February 2010 Pages: 1... 1011121314... 21
  Archived months: [jan2010] [mar2010]

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