49,760 Topics

Member Avatar for
Member Avatar for Merex

Hi everyone, I'm new here and I have been reading some books for a while on C++ software Development. I have a good idea of what I wan't to program at the present point in time, so I thought I would post a road map of what I'm going to …

Member Avatar for Merex
0
263
Member Avatar for lightdshadows

[CODE]#include <fstream> #include <iomanip> #include <string> using namespace std; const double PI = 3.1416; int main() { ifstream inFile; string fname, lname; int age, beginningBalance; double length, width, radius, interestRate; char ch1; inFile.open("inData.txt"); inFile >> length >> width >> radius >> fname >> lname >> age >> beginningBalance >> interestRate …

Member Avatar for lightdshadows
0
207
Member Avatar for carlpike

Hello everyone. I am having an issue with flash style connection So I start off by connecting to port 843 and requesting a <policy-file-request/> The server sends me this: <cross-domain-policy> <site-control permitted-cross-domain-policies="master-… /> <allow-access-from domain="*website.com" secure="false" /> <allow-access-from domain="*website.com" to-ports="443-49151"/> </cross-domain-policy> Since it is non secure, I try to connect …

Member Avatar for cherrymae.calma
0
452
Member Avatar for Macilath

Hello all, As part of a homework assignment, we're to take [URL="http://stroustrup.com/Programming/calculator08buggy.cpp"]a given buggy calculator[/URL] and correct the errors. Once that's done, the assignment is to add the sqrt() and pow() functions to said calculator. This is from Stroustrup's Programming, Principles and Practices using C++. I've been working on the …

Member Avatar for Zekorov
0
2K
Member Avatar for Manal.M.K

hi.. I'm a new user and I hope you be my new friends.. I have homework to do tic tac toe game allwo 2 player or one player with computer I did this program but I don't study any thing about GUI in C++ and it is order from me …

Member Avatar for jejemon
0
1K
Member Avatar for Labdabeta

Is it possible to use [URL="http://msdn.microsoft.com/en-us/library/45yd4tzz%28v=VS.80%29.aspx"]__asm blocks[/URL] with Code::Blocks IDE? And if so how??

Member Avatar for mike_2000_17
0
233
Member Avatar for Ravic85

[QUOTE]Write a program that uses a class named Rectangle. The class has floating point attributes length and width. It has member functions that calculate the perimeter and the area of the rectangle. It also has set and get functions for both length and width, The set functions verify that length …

Member Avatar for Ravic85
0
148
Member Avatar for phorce

Hello, I have wrote a OO program and I have been able to compile ok when using Dev cpp however, I have moved to mac and now compiling through the terminal. For classes I use a main.cpp (the main script), Numbers.h (The header file for the class) and Numbers.cpp (all …

Member Avatar for phorce
0
153
Member Avatar for darelet

Hi all, I need a setup involving a client or front-end program that sends some tasks to a back-end process for processing and collects results for output. I know this involves socket programming, but one issue here is that the front-end is a windows program and the back-end is a …

Member Avatar for darelet
0
199
Member Avatar for leftovas17

Okay, first off, I know my code is atrocious. I am not a c++ programmer, but my OpenGL course requires it. My lack of c++ knowledge is most probably my biggest problem here. I am simply looking for quick fixes to my ignorant mistakes. I just need the algorithm to …

Member Avatar for leftovas17
0
257
Member Avatar for Epicurus

I'm trying to create my own linked list for handling bullets in my game. When the bullet has gone too far I want it to be removed but as soon as this is happening (when the bullet has travelled 11 steps) the game crashes. These are the functions used when …

Member Avatar for Epicurus
0
488
Member Avatar for falconmick

Now, I know the first thing I am going to be told is that I should add a balance function to my binary tree, well I have asked the group member who created our tree to do it, but he hasn't got back to me yet. So rather than wait …

Member Avatar for mike_2000_17
0
437
Member Avatar for swizzy

Watz wrong with this avl tree deletion code ?? Some nodes are getting deleted.. But then for other nodes the program stops working and terminates abruptly as such.. Getting some error report.. Cud someone help me out ?? Here is my c++ code for avl deletion.. [CODE]void remove(const comparable & …

0
64
Member Avatar for maria536

This is supposed to generate a password, but It is not displaying the way it is supposed to display, can someone please look at my code and let me know why it is not printing out Enter 5 character string: hapPy Password is: jAaRY Press any key to continue_ This …

Member Avatar for maria536
0
495
Member Avatar for pthom35

can someone help...here's the assignment and what i have thusfar...I'm confused with adding the addtl constructor. [CODE]//Create a class called Fraction with the following member variables and methods: //" Variables //1. numerator and denominator (Integer) // Methods //1. Accessor methods for member variables (could be inline functions) //2. Mutator methods …

Member Avatar for Fbody
0
170
Member Avatar for Xide

Hey, I am only leraning c++ at the moment so sorry if this sounds a stupid question or if the answer is really obvious but anyway... [U]How do you have a variable name itself?[/U] What I want the program to do is to take the input from the user and …

Member Avatar for mrnutty
0
165
Member Avatar for Phaelax

Can't seem to figure this out. [CODE] string *array; void addNodes(string names[]) { array = names; //how many elements in the array??? } [/CODE]

Member Avatar for Diego.Corso
0
27K
Member Avatar for peter20

Hi all, I am new in c++ programming and I would like to learn what is the difference between class cuboid : public shape1, private shape2 with class cuboid : public shape1, public shape2 Thanks a lot

Member Avatar for Fbody
0
284
Member Avatar for joon920721

I want to make a program that asks to enter number. The program will keep asking for entering number until the user enters -99. And when the program finishes, it will give the number of counts, max, 2nd max, min, and 2nd min. The program I made works for all …

Member Avatar for Fbody
0
3K
Member Avatar for TSaunders84

ok i having a little trouble adding a string to the new vector that i created i was wondering if i need this line [CODE]vector<string>* row = new vector<string>;[/CODE] and if i do i need to keep calling or is there a much better what to create a new row …

Member Avatar for Fbody
0
136
Member Avatar for meli123

[CODE]int m, n, pow; cout << "Enter m and n: "; cin >> m >> n; pow = 1; for (int i=1; i<=n; i++) pow = pow * m; cout << m << "^" << n << " = " << pow << endl; return 0; }[/CODE] I dont get …

Member Avatar for tkud
0
102
Member Avatar for MattJones

Hey Guys, I'm working on a C++ program for school. Basically the Program inputs a file of points and outputs an svg file that contains the Graph with the least number of edges. We need to implement this with the Kruskal and Prim algorithm, and the algorithm needs to be …

Member Avatar for Fbody
0
202
Member Avatar for stereomatching

I am learning concurrency programming, I try my best yet can't solve the problem [CODE] boost::mutex mut; std::vector<int> int_vector; boost::condition_variable int_cond; void data_preparation_thread() { while(int_vector.size() != 10) { std::cout<<"data preparation thread :: vector size = "<<int_vector.size()<<std::endl; boost::lock_guard<boost::mutex> lk(mut); int_vector.push_back(4); int_cond.notify_one(); } } void data_processing_thread() { while(1) { std::cout<<"front :: data …

Member Avatar for stereomatching
0
230
Member Avatar for Ravic85

Hello everyone! I've made the mistake of not asking my teacher for help when I had the time. Now I'm stuck and lost. I didn't do this because I felt I should be able to figure this out myself since this is my major. So, I'm giving up and needing …

Member Avatar for Eagletalon
1
1K
Member Avatar for awais.abdul

In this course we are going to develop software for “School System” that will computerize all the necessary school processes. This software will facilitate the school management in running and managing the school. We will mainly focus on these aspects, 1. Teacher and Student Record Keeping 2. Student Grading 3. …

Member Avatar for swathik
1
895
Member Avatar for meli123

BOOL is basically pretty intuitive.. my question: [CODE]#include "stdafx.h" #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { double cost, finalPrice; bool type; type=true; //taxable cout << "Enter price: "; cin >> cost; if (type) finalPrice = cost*1.07 ; else finalPrice = cost; cout << "Final price: " …

Member Avatar for mrnutty
0
94
Member Avatar for nerdygirl118

How do you grow a circular array? I have a front, I have a back, I have a current_size, I have a maximum_size, and of course I have the array. So, how do you grow a circular array? Thank you kindly!

Member Avatar for nerdygirl118
0
294
Member Avatar for crownedzero

OK, so I want to create a function getStrRegion(commented out at the bottom) to pass a str value N, S, E, W, C back to the main function so I can then drop it and regionSelect back into getNumAccidents. I'm not exactly sure how to pass a string of characters …

Member Avatar for mrnutty
0
108
Member Avatar for monkeybut

I am running into an issue trying to get the program to read in my data correctly. The program is supposed to take a data file and read in names, if the string is preceeded by "surname" or "lastname" then the string lastname is set to the next string, if …

Member Avatar for NathanOliver
0
160
Member Avatar for t2r

I'm searching for a good tutorial about object oriented analysis and design but can't find any short and clear tutorial which will has: 1. Explanation of oo concepts (very short) 2. CODE EXAMPLE (eg. if someone describe aggregation I wanna see how I can use this in my class) There …

Member Avatar for t2r
0
180

The End.