49,761 Topics
| |
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 … | |
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? | |
[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); … | |
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] | |
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 … | |
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) … | |
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. … | |
[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<< … | |
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: … | |
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; }; // … | |
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. | |
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.. | |
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; … | |
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 … | |
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 … | |
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... :) | |
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. | |
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! | |
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 … | |
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()) { … | |
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) { } … | |
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. | |
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 … | |
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 … | |
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[]); … | |
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 … | |
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! | |
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 … | |
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 … | |
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. |
The End.