49,761 Topics

Member Avatar for
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
Member Avatar for mrrko

[I]Negotiating a consumer loan is not always straightforward. One form of loan is the discount installment loan, which works as follows. Suppose a loan has a face value of $1,000, the interest rate is 15%, and the duration is 18 months. The interest is computed by multiplying the face value …

Member Avatar for Bummpy 1
0
1K
Member Avatar for ghostile

Hey just a quick question with list <Object*> object; when i put an object in the container i use object.push_front(new thing(param1,param2,param3,param4,param5)); because i have used new how do i go about deleting this certain object in the list i figured somthing like this [CODE] while(p != object.end()) { if((*p)->exists(param)) { …

Member Avatar for dospy
0
226
Member Avatar for Rmaure

was just wondering if anyone can help me with some homework. I have been trying to figure this out for a couple hours now. I am sure it is probably simple but I can't get it to run. What I have to do is take user input that contains the …

Member Avatar for dospy
0
219
Member Avatar for OblibSystems

Basically the time old question of who would win. Just decided to put a very geeky twist to it. Just looking to see if people think C++ is better/worse then C :icon_lol:

Member Avatar for ddanbe
0
436
Member Avatar for manie
Member Avatar for iAMyours

Can anyone help me how to blink my introduction for my program? seriously i have no idea how to do it :( THANKS ! ;) here's my introduction: [CODE]cout <<" \n \t\t***WELCOME TO THE ALLOY INQUIRY PROGRAM!*** " <<endl;[/CODE]

Member Avatar for WaltP
0
91
Member Avatar for meshael

Hello, I know that this is an old thread, but for me it’s new.. I faced this situation where the screen quit instantly, and I knew now that using system() and cin.ignore() aren’t good solutions So, I used the pause(); function, and it goes ok unless there is a data …

Member Avatar for WaltP
0
94
Member Avatar for Labdabeta

If I make my own math header with similar functions as math.h, can I possibly make it as fast as the implementations of math.h, or does math.h use special hardware or something?

Member Avatar for BCBTP
0
119
Member Avatar for hariharan89

Hi, I am using visual c++ 2008 for my OpenCV2.1. when i tried to debug in step into mode it shows. "There is no source code available for the current location." I am wrong in setting up some thing , if then guide me pls...

Member Avatar for Ancient Dragon
0
64
Member Avatar for hariharan89

Hi , i am working with openCV 2.1, its very difficult for me to find source for the routine cvLoadImage . I really need to know how does memory is allocated while cvLoadImage is called for my project. could any one please help me on this issue. with regards, sabarish.

Member Avatar for hariharan89
0
122
Member Avatar for cppgangster

Hi I want to learn network programing, but I dont know where to start. I want to do windows networking. Help please

Member Avatar for cppgangster
0
82
Member Avatar for c.pentasuglia

I am working on an assignment for school and i seem to be having some issues. I am using OpenGl with free glut, and attempting to animate a pendulum. I can draw out the pendulum, but cannot determine how to make it swing. I have to make it swing from …

Member Avatar for c.pentasuglia
0
482
Member Avatar for c++ prog

I've been working on a Linked List assignment. I completed it but I still have a problem on deleting an element that has a predecessor or after an element and inserting an element after an element...can anyone give me an idea? This is what I have so far [CODE] #include …

Member Avatar for Cross213
0
114
Member Avatar for elmar01

Hello c++ experts. Please help me with this kind of program >.< i wanted to make my integer converted to string. For ex. I input "1" and the output must be in string "one". Sorry if i request this just need this for my homework. Thanks in advance!

Member Avatar for WhiZTiM
0
154
Member Avatar for Zssffssz

Ok sorry, extra typos today using an international keyboard with autocorrect on. Ok I Want to mâle a text bases screensaver. I Know how to ... **BEEP** KEYBOARD STUPID IPOD!!!... use console App n stuff how do I make it a screen saver. (I watt a little thing in thé …

0
87
Member Avatar for DoubleZ

Hello, I`m just starting to get into the basics of C++ and I have to create a following program - basically the user has to input an integer and a digit of their choice and the program has to check whether the square of that integer contains that specific digit …

Member Avatar for DoubleZ
0
2K
Member Avatar for Triarius

Hi! It's me again :) I have failed with my C++ code once again. This time it's with vectors. [CODE]string show_actions(){ vector<string> actions; actions.push_back("end"); actions.push_back("hunt"); vector<string>::const_iterator iter; cout <<"All of the possible actions are : " << endl; for(iter = actions.begin(); iter != actions.end(); ++iter){ cout << *iter << endl; …

Member Avatar for Triarius
0
187
Member Avatar for mimah1

ok so far i got this!!! but what i realized is that when i run the ouput 1 2 3 4 5 it gives me the correct output but if i put the value as 3 6 7 8 4 !!! it arranges the number as 3 4 6 7 …

Member Avatar for mimah1
0
171
Member Avatar for hujiba

I'm new at this so sorry if my vocabulary and stuff is totally off. With the following syntax, my goal is to call the choose_number function, which, when given two arguments (integers), returns one of those two at random. I run it multiple times with a for loop but it …

Member Avatar for doug65536
0
168
Member Avatar for SCass2010

Hi everyone, I was wondering if anyone could help - at the minute I have a program that records how many bytes are received over a set interval (for example, 500 milliseconds). How would you calculate how many megabits have been received per second if the sampling interval will always …

Member Avatar for doug65536
0
737
Member Avatar for amulgarg

I am having trouble finding the real trouble in my program to insert into a Binary Search tree. [CODE] //BST #include<iostream> using namespace std; class bst { public: int data; bst *lnext,*rnext,*root,*prev; public: bst() { lnext=rnext=root=NULL; } bst* addBST(bst *p) { if(root==NULL)//if tree is empty { root=p; cout<<"\nRoot Inserted!"; return …

Member Avatar for Taywin
0
123
Member Avatar for cheeseboy

Hi there pleasse help. I get the warning C4700: uninitialized local variable 'BottlesLeft' used. [B]Here is what the CalcNrCases is supposed to do:[/B] A value-returning function called CalcNrCases( BottleType, NrBottles, BottlesLeft ) that will calculate and return the number of full cases (NrCases) as an integer. It will also calculate …

Member Avatar for mike_2000_17
0
543
Member Avatar for Nakeo

I need to get the outputs of each process to strictly alternate. however after i select which process to out put first my program gets stuck. Any help would be much appreciated i have been stuck for awhile. code follows. [CODE]#include <stdio.h> #include <iostream> #include <stdlib.h> #include <sys/types.h> #include <fcntl.h> …

Member Avatar for Nakeo
0
171
Member Avatar for garu525

Good day to all, I'm doing a project about inverse permutations from an array of permutations. It's my first time coding on permutations so I don't have any experience on this. So I came up with a solution to just swap the array and the element number as the inverted …

Member Avatar for mbundgaard
0
941
Member Avatar for thenewbiecoder

I'm just starting to learn c++ and need to know how would you read the first line from a file and write to a new file? thanks

Member Avatar for WaltP
0
256
Member Avatar for ambigouscase

Given the number of commodities bought, create a program that computes the total amount purchased in a fast food center. Assume that the following unit price of each commodity Fried Chicken= 29.75 Cheese Burger= 25.00 French Fries= 18.50 Soft Drinks=14.25

Member Avatar for cherrymae.calma
0
183
Member Avatar for Faux

I need help making two substrings(I think) to get the integer values (course hours, grade) for each course. I thought I had it but every time I ran the .exe it would crash after obtaining the name and major, so I deleted that code altogether. It'd be grand if someone …

0
66
Member Avatar for weakprogrammer

Hey everyone I'm new here and I need help with a homework assignment that allows the user to make change. The assignment is as follows: You will write a program that will calculate the minimal amount of coins needed to make change for some amount of cents. The program will …

Member Avatar for Narue
0
196

The End.