49,761 Topics

Member Avatar for
Member Avatar for blaze5488

What is suppose to happen is that I am suppose to take a string like "Micheal Jordan" and reverse it and return it with a comma after the last name. like "Jordan, Micheal" but that is not what i am getting can you help please. I have also included the …

Member Avatar for blaze5488
0
97
Member Avatar for PPP1

Hello, I am little bit confuse for c and c++. All loops are same in both the languages so why they are different for each other?

Member Avatar for Narue
0
156
Member Avatar for Se7Olutionyg

[CODE]// file: PayrollFunctions.cpp // Computes and displays gross pay and net pay given an hourly // rate and number of hours worked. Deducts union deus of $15 // if gross salary exceeds $100; otherwise,deducts no dues. #include <iostream> using namespace std; // Functions used... void instructUser(); float computeGross (float, float); …

Member Avatar for stilllearning
0
212
Member Avatar for Jennifer84

I know how to declare a 1D vector like below but how do you declare a 2D vector ? [code] List<String^>^ Vec1 = gcnew List<String^>(); [/code]

Member Avatar for Jennifer84
0
166
Member Avatar for nrew

can somebody help me?Im a 1st yr. college student taking up IT. And we have this case study that I cant seem to answer on my own so I decided to join daniweb. The program that Im referring to is a slum book simulating program. Where you need to enter …

Member Avatar for bhoot_jb
0
134
Member Avatar for Stringman

I receive this error message: "[COLOR="Red"]error C2440: '=' : cannot convert from 'char' to 'char [50]'[/COLOR]" when this statement: [COLOR="red"]name_sel = *name [ name_int ];[/COLOR] or this statement: [COLOR="red"]name_sel = name [ name_int ];[/COLOR] is compiled. The context for this is the declaration of an array of names (character strings) …

Member Avatar for bhoot_jb
0
132
Member Avatar for JustLearning

First let me describe the program All it does is pull in some chars and stores them in a linked list of stacks. I have the code written to pull them in but when I need to print them I dont know how to go backwards without deleting the node. …

Member Avatar for VernonDozier
0
185
Member Avatar for Se7Olutionyg

[CODE]//file: sticfigure.cpp //Draw a stick figure (main function only 0 # include <iostream> using namespace std; // Functions used ... void drawCircle (); void drawTriangle(); void drawIntersect(); void drawBase(); int main() { drawCircle(); drawTriangle(); drawIntersect(); return 0; } //Draws a circle void drawCircle() { cout<< " * " <<endl; cout<< …

Member Avatar for Aia
0
152
Member Avatar for Barvik

Hi, i've trying to make a program that reads data for a matrix and print the data for it. I can get the ostream operator to work, however the istream operator wont work. Any got some ideas to help me sort out the istream operator: This is my header file: …

Member Avatar for grumpier
0
120
Member Avatar for dulusementara

I tried to write my code, and it looks like something like this (i cut some of them to make it readable). [CODE]class TimeSeriesDatum { public: TimeSeriesDatum(); //TimeSeriesDatum( double = 0, int = 0, string = ""); TimeSeriesDatum( double, int, string ); // getter, setter... private: double value; }; // …

Member Avatar for Ancient Dragon
0
326
Member Avatar for happy8899

How for me to create gaussian noise to be put into images where the gaussian noise have several level of noise. Eg) i can select 10% until 100% for the level of gaussian noise to be inserted into the images.

Member Avatar for dougy83
0
361
Member Avatar for happy8899

Can anyone help me by telling me where to find twofish source code other than from scheinier website?? I just want to find a sample source code of encrytion and decrytion using twofish algorithm. Thx a lot for the help..

Member Avatar for Salem
0
598
Member Avatar for JackDurden

Im just getting garbage in the output. It outputs the correct number of items but its not the right numbers. Im not sure why it is happening. The text file just has numbers like this: 12 34 56 34 67 23 64 23 [CODE]#include <iostream> #include <fstream> using namespace std; …

Member Avatar for JackDurden
0
84
Member Avatar for RayvenHawk

Ok I'm doing my final project for my Data Structures class and have a quick question. This hasn't come up in any of my programming classes yet (which now that I think about it, is kind of odd but oh well). What I'm having to do is write an interactive …

Member Avatar for RayvenHawk
0
202
Member Avatar for JackDurden

How do I get the data from file into the Insert function? Or more general how do you get data from a file and put it into a linked list? [CODE]#include <iostream> #include <fstream> using namespace std; class List { public: void Insert(); void Print(); }; struct node { int …

0
81
Member Avatar for jadedman

hello can anyone tell what header file should i use in making graphics in c++? im starting to make graphics work in my programs and im a newbie... :)

Member Avatar for jadedman
0
84
Member Avatar for TheBeast32

Hi, I'm need to be able to load bitmaps, preferably as resources, draw them, and get their size. How would I do this? I'm on Windows, and using Dev-C++ 4.9.9.2.

0
39
Member Avatar for geemicah

uuhm.. im my program.. MY prof wanted me to have some text color and back ground color.. will you suggest what codes I should use? and where Should I place them? thank you!

0
54
Member Avatar for blackryu21

I was wondering, how do I put in an index number for n elements. The program provided asks you to enter the numbers and it puts them in descending order, but I need an index number to be put with the values you enter for n to be the same …

Member Avatar for ArkM
0
99
Member Avatar for cuthien

I get the right input, but its giving out the numbers unformatted in the output ie: when it should be input: 3 5 (7) $58 3,400 output: 3 5 -7 58 3400 it gives me 3 5 -7 5 8 3 4 0 0 [code] inFile.get(aa); while( ! inFile.eof()) { …

Member Avatar for gregorynoob
1
93
Member Avatar for JackDurden

Im trying to find out if something is in this linked list function and if it is to return true and if not return false. How do you find out if ThingType thing is in the list? [CODE]bool Thelist::Search(ThingType thing) const { Node* current; current=listPtr; while(current->thing != listPtr->thing) { } …

Member Avatar for Narue
0
73
Member Avatar for nizbit

I need major help. My program will compile but when I run it I get a segmentation fault. I don't know how to run a debugger with multiple files. Could someone please find when this error occurs? My project is due in 2 hours.

Member Avatar for Insomniac119
0
158
Member Avatar for tones1986

Hey All - i am currently working on an assignment for a computer science programming class. I have to find and print all the prime numbers from 2 to N (N being a number read in from file). I have some code but i do can not get my mind …

Member Avatar for skatamatic
0
415
Member Avatar for preet4fun

here is the assignment . To make telephone numbers easier to remember, some companies use letters to show their telephone number. For example, using letters, the telephone number 438-5626 can be shown as GET LOAN. In some cases, to make a telephone number more meaningful, companies might use more than …

Member Avatar for Salem
0
205
Member Avatar for blackryu21

I need an array listing the index number for a list of n elements and when I sort it in descending order, I need that same number to be with the element. Here's the code I have so far: [code] #include <iostream> using namespace std; int Partition(int low,int high,int arr[]); …

Member Avatar for ArkM
0
502
Member Avatar for Alex Edwards

I had a hard time understanding the concept of memory in a computer, but something my Instructor told me gave me some hope. He mentioned that memory isn't really created upon invocation of "new" in C++, and stated also that memory isn't really removed upon the invocation of "delete." I …

Member Avatar for skatamatic
0
166
Member Avatar for kajtek

let's have a look at this High School Programming League, to join the contest one must pay for it, is it ok? if you are newbie in C/C++-programming, it is a great chance to improve your skills!

Member Avatar for Salem
0
45
Member Avatar for r00ster

Hey guys, this is my first post and I would like to say thank you to all of you guys out there that are doing such a great job with helping out on this forum. Anyway, lets get to the question. Why, in the code below, does the char values …

Member Avatar for ArkM
0
95
Member Avatar for NinjaLink

I can get everything to run perfectly, it is just when I print out the final grade, it will just give me a blank for it. Maybe I'm doing something wrong in my finalgrade function, but i don't know....I need help! [CODE=Cplusplus] #include <iostream> #include <iomanip> using namespace std; const …

Member Avatar for NinjaLink
0
157
Member Avatar for Clipper34

Hey guys, Well i've been wondering something. How would you go about doing something like say if 'a' or 'A' is pressed do something for example move a file. Thanks, Clipper34.

Member Avatar for Duoas
0
124

The End.