49,761 Topics

Member Avatar for
Member Avatar for FireSBurnsmuP

Alright, people. I am writing a simple, command based program simulatin minesweeper, using a txt file for the map. I am getting characters and stuff in from the file, and converting them to integers to determine the size of the map. Now all this is going alright, but I am …

Member Avatar for Infarction
0
3K
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
311
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
79
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
114
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
115
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
53
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
187
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
106
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
161
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
103
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
122
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
107
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
227
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
109
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
875
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
96
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
111
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
109
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
97
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
82
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
109
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
118
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
343
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
110
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
123
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
84
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
111
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
65

The End.