51,593 Topics

Member Avatar for
Member Avatar for Cnaly

Could someone help me? I have an file in which a list of employees and salaries are listed for each year ex: Year: 2005 No. of Employees: 3 Employee ID Salary 123456 36000.00 123567 32000.00 123678 33000.00 Year: 2006 No. of Employees: 4 Employee ID Salary 133456 31000.00 133567 32000.00 …

Member Avatar for Infarction
0
315
Member Avatar for mch682

i'm trying to design a c program that will help newcomers to the Internet understand certain abbreviations.I have 8 abbreviations such as AFAIK - as far as i know etc. I am storing the abbreviations in one array [][8],and the descriptions in another[][8] and initialising them. BUT, I don't know …

Member Avatar for Infarction
0
82
Member Avatar for bala24

Hi everybody, i was planning to learn Visual C++ .net 2003 but don't know where to start. Can somebody recommend a good link for the same. Thanks in advance..

Member Avatar for Ancient Dragon
0
127
Member Avatar for fafarfa

hi everyone, i am working on a simple C++ code that will randomly generate a DNA strand of bases. How this is what i have so far: [code=cpp] #include <iostream> #include <ctime> #include <cstdlib> using namespace std; string my_string; int main() { int random_integer; char 1 = 'A'; char 2 …

Member Avatar for WaltP
0
120
Member Avatar for jackel

This is my 1st post ever. After working on this code for about 80 hours, I have decided to seek help from sources who actually know what they are doing. I am to modify a GUI program containing a combo box with a "circle". This circle is to be replaced …

0
55
Member Avatar for d1e9v85

the program i have to make is as follows: use the string comparison function and the sorting array techniques to write a program that alphabetizes a list of strings. use 10 town names for your program. and this si what i have made.... and it doesnt work: [code] [COLOR=Black]#include<iostream> [/COLOR] …

Member Avatar for WaltP
0
200
Member Avatar for uu666

i wanna get started with programming 3d stuff....is there any programming language that you would recommend me? i heard that visual c++ would be good... but what if i wanna make something that works on linux too? i tried to learn some java but its kinda nasty :):rolleyes: ty in …

Member Avatar for ~s.o.s~
0
109
Member Avatar for com spec

i have learn to wite out a few simple program on paper. However, after installing microsoft visual C++, i found out that i do not know how to use it to create C++ application. I click file-->new, and and the Visual C++ software prompt me to create a workspace or …

Member Avatar for Ancient Dragon
0
166
Member Avatar for solomon grundy

Given two spheres, I need to determine if a collision has occurred between them. I need to input the radii and the centers from the screen and use a double-valued function (outside of the main program) for the distance formula. What I have so far is [code=cpp] #include <iostream> using …

Member Avatar for iamthwee
0
106
Member Avatar for mdturner

I have an assignment Write an encryption program to read in last name and convert letters of last name into the next letter of alphabet can anyone tell me if what i have is correct or almost correct [code=cpp] #include<iostream.h> voidmain() { float turner, char cin>>Turner; cout<<Turner; char t='u'; char …

Member Avatar for WaltP
0
124
Member Avatar for rbinc

[B]Here's my problem: [/B] The user needs to enter a char/string for a .dat file with a max of 15 characters. I've tried to use both a char and a string to make sure the user enters 15 or less characters. If I use char, and if the user inputs …

Member Avatar for rbinc
0
113
Member Avatar for badran

I have this little problem.... I have a dynamic array.... I have to creat a function to give me the max and min values of that array... I can't think of a way to send data to a function without knowing the number variables.... can anyone give me a nudge …

Member Avatar for badran
0
230
Member Avatar for limergal

Hi I need help in programming with strings....I started a code, but I'm not sure how to do it....Please help [LIST=1] [*]read in one string which consists of two words Ex. "Computer Science" [*]call a function [B]makewords()[/B] which receives three parameters: a string which holds the original phrase and two …

Member Avatar for limergal
0
112
Member Avatar for MacLeopard

Is there some sort of wildcard search function in C? Detailed explanation. [code]Phrase: <blah="*" uid="ekdopakek"> So let's just say we've got this 48764546545blah<blah="whatever" uid="ekdopakek">blahblahblah I'm looking for a function that will return the whatever, and just the whatever (nothing else). Thanks![/code]

Member Avatar for Ancient Dragon
0
901
Member Avatar for Mushy-pea

Hello everyone. I was writing somthing in C++ today and a little "issue" occured to me. How can you avoid the possibility of a buffer overrun when reading from STDIN into a character array? In this simple example [code]#include <iostream> using namespace std; int main () { char *some_text = …

Member Avatar for Salem
0
101
Member Avatar for jd_1604

Hello. I am currently dabbling with C++ with view to learning openGL. I am using Microsoft Visual C++ and Borland compilers but the problem is neither of these programs want to accept any OpenGL code I put into them. Can someone please help me?

Member Avatar for jd_1604
0
116
Member Avatar for supriya123

How to copy a directory from source to destination in c programming.please don't use "system" command.please help me.it's urgent

Member Avatar for WaltP
0
45
Member Avatar for Brent.tc

I have recently began programming in the windows api rather than the command prompt\ms-dos environment. I am still using windows 98 and bloodshed dev-cpp 4.9.9.2. I need to know how to disable the START MENU, TASK BAR, and the little boxes in the top right hand corner of the application …

Member Avatar for Ancient Dragon
0
113
Member Avatar for dmmckelv

My mixed int is getting set to the wrong value somewhere. Can anyone help me see where? Driver: [code] [color=#0000ff]#include[/color][color=#000000] [/color][color=#800000]<iostream> [/color][color=#0000ff]using[/color][color=#000000] std::cout;[/color] [color=#0000ff]using[/color][color=#000000] std::endl;[/color] [color=#0000ff]using[/color][color=#000000] std::cin;[/color] [color=#0000ff]#include[/color][color=#000000] [/color][color=#800000]"Rational.h" [/color][color=#0000ff]int[/color][color=#000000] main()[/color] { [color=#0000ff]int[/color] mixed1 = 0; [color=#0000ff]int[/color] numerator1 = 0; [color=#0000ff]int[/color] denominator1 = 0; cout << [color=#800000]"Enter first numerator and …

Member Avatar for Lerner
0
98
Member Avatar for bencwai

Is hash_map same as map? How can i use it in dev C++??? Is there any tutorial ?? thank you so much.

Member Avatar for Lerner
0
83
Member Avatar for pugg09

It's the newb again. I have a lousy professor who won't even show us how to get started on importing a file (call it 'independent study'). Can anyone help me? I need to import the following data to produce a bar graph. Here's the data. Can anyone help me to …

Member Avatar for Lerner
0
112
Member Avatar for superC

[code]#include<iostream.h> int rek(int i) { double s=0.9; if (i) s+= rek (i/10)+i%10; return int (s+0.5); } int main () { cout << rek (1234); }[/code] We have test. This is one of the question from last year. My question is: From where is solution/result: [B]15[/B]?? I'm beginning, where main () …

Member Avatar for superC
0
122
Member Avatar for snedan

Can someone point me to one, because our high-school library is way too old. And it wont work with Dev-C++(we using in it in CS class). Thank you. [code=c]/* Lawrenceville Press Random Library */ /* October 1997 */ /* The following code works correctly under BOTH */ /* Borland and …

Member Avatar for snedan
0
347
Member Avatar for moussa.eltayeb

Please any one know :- ------------------------ 1- How to change the size font in c++? 2- How to get one char without press "Enter" ?

Member Avatar for ~s.o.s~
0
116
Member Avatar for hvalmighty
Member Avatar for aileenveliz87

I need help in writing a fuction call delete_repeats that has a partially filled array of chararcters as a formal parameter and that delets all repeted letters from the array. It should also have two formal parameters: an array parameter and a formal parameter of type int that gives the …

Member Avatar for Nick Evan
0
126
Member Avatar for Eko

I'm learning linked lists , and in my manual i have the following example. [code=c] #include <iostream> using std::cout; using std::cin; using std::endl; struct element { int info; element *address; }; void insertion(element *&p,int nr) { element *c; c=new element; c->info=nr; c->address=p; p=c; } void print(element *p) { while(p!=0) { …

Member Avatar for andor
0
85
Member Avatar for bencwai

I have to redesign a bookshop programme which allow user to make order of books. This programme is originally using vector to implement.Now i have to decide either use deque or hash_map for the programme or i would better keep using vector?? In fact, I just know these three kinds …

Member Avatar for nattylife
0
114
Member Avatar for mjmythili

Is it possible to create graphics in Dev C++. I tried but there is no Graphics. h in DevC++. How to import it from Borland to DevC++

Member Avatar for Ancient Dragon
0
67
Member Avatar for matrimforever

How do I read data such as song titles from a file and store them in an array? I have: [code] const int SIZE = 50; int main() { char theFile[SIZE]; cout << "Please enter a file name: " << endl; cin.getline(theFile, SIZE); ifstream theFile(" "); ... [/code]

Member Avatar for Ancient Dragon
0
136
Member Avatar for jcflore3

Hi, you guys helped me on a program about a month ago and it really helped me get through the program. Therefore I really appreciate what you all do and thank you for the help last time I am having trouble finishing this program on classes the assignment is this: …

Member Avatar for may4life
0
231
Member Avatar for insamd

G'Day guys, Being working on some code, and was just wondering if there are any obvious places i have gone wrong. I am trying to make 2 functions, 1 that will find the factors of a given number, and the other function to find the percentage of the even factors. …

Member Avatar for John A
0
96
Member Avatar for aznballerlee

I've read my book, and there's some topics where I feel weak about: - inline functions - static members - this pointer - copy constructor I've read some tutorials online, but they use some complicated code, and I'm a beginner programmer, so I can't understand their explanations. Just wondering, if …

Member Avatar for oRg
0
154
Member Avatar for raptoro104

I'm reading Larry Ullman's C++ Programming:Visual Quickstart Guide. He says to use the command std::cout.setf(std::ios::fixed)) (with others) to set the number of digits after a decimal. But all of his code uses std::cout::setf(std::ios_base::fixed). What is the difference?

Member Avatar for raptoro104
0
119
Member Avatar for newbie2c++

Hi everyone, I have written a program and have encountered a few errors that I can't seem to fix(or don't know how to), any help would be great. Thanks in advance for the help! I'm very new to this so bare with me!:cheesy: [CODE] #include <cstdlib> #include <iostream> #include <iomanip> …

Member Avatar for John A
0
98
Member Avatar for sunny123

ive created this currency conversion program which converts the currency then adds commission, but its got a error saying undefined symbol true in function main can someone help me ive only got the one error with it. [code]#include <iostream.h> int choice; double pounds; double USdollar; double Euro; double interest; int …

Member Avatar for John A
0
95
Member Avatar for Francis Waldron

Here is another shot at it. It all most complier but falls short . still I know it doesn't mean its right. thanks for the help so far.

Member Avatar for iamthwee
0
171
Member Avatar for kabrina

Hi, I'm more than likely in the wrong place and if I am can somone please direct me to the right place! Heres my query. I am an [URL="http://www.daniweb.com/techtalkforums/thread62723.html#"]online[/URL] promoter and I do a lot of my promotional work by sending out thousands of messages a day on social community …

Member Avatar for jwenting
0
106
Member Avatar for dmmckelv

I am having some trouble with the logic for my constructor. The constructor is supposed to open a object of class Rational. The constructor is also supposed to check to make sure the denominator is not zero, the denominator is not negative, and either reduce the fraction or make it …

Member Avatar for dmmckelv
0
382
Member Avatar for joelw

ok, i need help writing a program that stores data about a basketball player in a structue. I need to create a structure for players name, players number, and by points the player scored. I need to keep an array of 5 of these structures. Which each element is for …

Member Avatar for may4life
0
189
Member Avatar for Lost in Code...

I've lost my will and need some guidence, yes this is homework, i'm not going to lie about that. I know I could probably figure out how to get the answer she's wanting, but not with what she's provided as a code template below. I'm guessing that I need to …

Member Avatar for Ancient Dragon
0
274
Member Avatar for joelw

ok i got the program written and was wondering how i would write code that will then add all scores together and give the rusult? here my program. [code] #include <iostream>#include <iomanip>#include <string>using namespace std;const int SIZE = 25;struct Players{ char name[SIZE]; //Player's Name int playNum; //Player's Number double Points; …

Member Avatar for Ancient Dragon
0
70
Member Avatar for newbie101

I am trying to get this code working for extra credit, but I unfortunately only have 40 minutes until it is due:rolleyes:. I would like to know how to do this program, whether I turn it in or not. The letter "Y" can be considered a vowel if there is …

Member Avatar for Ancient Dragon
0
174
Member Avatar for Barefootsanders

Hey guys, I was writing code or DLL's (doubly linked lists) and I think I have everything right but it keeps giving me a makefile error. My code is below along with the error log. ANy help would be apprecaited. [CODE] //DLLNode.h #include <iostream> #include <cstdlib> #ifndef DOUBLY_LINKED_LIST #define DOUBLY_LINKED_LIST …

Member Avatar for Ancient Dragon
0
181
Member Avatar for yadavvirendra

:idea: im currently working on mechanical design based project . plateform is windows & language is c++ ,& for gui(graphical user interface) vc++, in vc++ when i run the code in debug mode it runs successfully,but when i run the same code in release mode it mostly create error like …

Member Avatar for Ancient Dragon
0
195
Member Avatar for eescobar

I'm trying to write a program which locates a text file in "my documents," and reads and displays what is on the file. I'm using the 2005 version of C++ and I might be using the wrong format. Thank you.

Member Avatar for Ancient Dragon
0
100
Member Avatar for DeeIT

Please assist with creating a program using arrays and functions for student grades. These are the requirements: To create and execute a C++ program with functions and arrays that will read student information input from an input text file, calculate the test average, program average, course average, and the letter …

Member Avatar for John A
0
3K
Member Avatar for mknight

hello I am new to C++. I understand pointers and references a little and I must be missing something in conf.cpp. Would you help by pointing out my errors for my pointers coding errors related to my problem? Main reason I am asking is because I get a segment fault …

Member Avatar for iamthwee
0
156
Member Avatar for MasterBlast

i am new student i had a home work but i cant get this done how can i input in the same line a char and two integers the output should be like this : please enter candidate family condition, defect percent, children number, working condition: [B]s 20 0 1[/B] …

Member Avatar for MasterBlast
0
83
Member Avatar for bala24

Hi all, I would like to know some links that could help me get a hang of using a database instead of the plain old file handling with C. Can somebody help !! Thanks

Member Avatar for bala24
0
104

The End.