43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for tad73831

First, let me say I am NOT asking for someone to write this program for me. I have to see how functions and operations are used in programs to learn to use them in my own program. And I need help understanding how to use rand() in the program I …

Software Development c c# c++ flash
Member Avatar for evilsilver
0
352
Member Avatar for dr.danno

I am looking for ideas for a program that I am trying to build. I need to have two pictures, one blurred and one clear. The blurred picture will cover the clear picture so it appears blurred. I need the mouse to appear as a sight glass so when the …

Software Development c++ visual-basic
Member Avatar for 1o0oBhP
0
133
Member Avatar for helmica

hi all am having hard times since yesterday trying to solve this problem. Declare the following two integer lists: int a[] = {5, 8, 4, 1, 7}, b[] = {12, 3, 15, 6, 23, 1, 2}; int sizeA = sizeof(a)/sizeof(int), sizeB = sizeof(b)/sizeof(int); list<int> list1(a, a+sizeA), list2(b, b+sizeB); Use the …

Software Development c c# c++
Member Avatar for vegaseat
0
190
Member Avatar for Sam Lehman

hi, i've got a bit of a roadbump in my work. I need to set all of the money values to have two decimal points on the end, but my current program only adds two places if there are more than one. right now, i am multiplying the value by …

Software Development c++
Member Avatar for Sam Lehman
0
206
Member Avatar for dallin

I have a Distance Structure that includes Miles, Feet, and Inches. The user inputs these amounts 3 digits for miles, 4 digits for feet and 2 digits for inches. Not all of the time the user will input the full number of digits, when the user doesn't input the full …

Software Development c display
Member Avatar for Dave Sinkula
0
112
Member Avatar for migthyjohn

i have a book to learn c++ and i have a peice of code that they are saying to compile and it is showing an error on line 15. here is the code: // // Program to convert temperature from Celsius degree // units into Fahrenheit degree units: // Fahrenheit …

Software Development c++
Member Avatar for migthyjohn
0
107
Member Avatar for magnolia

Here is a little of my program: struct Town { int population, outbreaks; }; const int MAX_ROWS = 39; const int MAX_COLS = 39; void GetInfRate(Town[][MAX_COLS], int); //some other functions int main() { Town coordinates[MAX_ROWS][MAX_COLS]; //I load my data // I display menu, etc. } void GetInfRate(Town c[][MAX_COLS], int MAX_ROWS) …

Software Development c++ display
Member Avatar for magnolia
1
154
Member Avatar for Peter Mugizi

Can somebody help me. I need to convert a programme from Qbasic to Java. Any help is much appreciated. Peter

Software Development java qbasic
0
125
Member Avatar for wildkms725

error reads: body has already been defined for function 'main()' program is as follows: search.h file [code]// display files in a directory #include <stdlib.h> #include <dir.h> #include <dos.h> #include <string.h> #include <iostream.h> #include <fstream.h> ofstream outfile("output.dat",ios::out); class dispfiles { public: int showfiles(void); char allfiles[MAXPATH]; private: char *getdirectory(char *path); char curdir[MAXPATH],temp[3]; …

Software Development c++ display ios
Member Avatar for vegaseat
0
207
Member Avatar for vegaseat

Why are the standard header files in C++ so non-standard? Particularly iostream seems to be the most dialectal. Enough to make the whole language a mess to work with!

Software Development c++
Member Avatar for vegaseat
0
146
Member Avatar for dallin

I'm using the abs() function in a probability calculation using float and int variables however I'm getting error messages. What I'm trying to do is get a decimal answer using abs() but it appears to only accept integer variables? How do I get the abs() to give me a a …

Software Development c
Member Avatar for Acidburn
0
98
Member Avatar for cricket

I am just learning C/C++. My problem is to determine if a character is or isn't within an array then returning an appropriate message to the user. I've only gotten this far using 'strchr' without much success. Any suggestions or help would be appreciated. Should I be using pointers instead …

Software Development c++
Member Avatar for vegaseat
0
163
Member Avatar for dallin

I have a column of floating point data that I need to right justify and align the decimal points. Help. Data looks something like this. 30.768 1.345 .430

Software Development c
Member Avatar for vegaseat
1
5K
Member Avatar for sinB

Hi, I use a Borland compiler. How do I colour text (in a DOS enviroment)?

Software Development c++
Member Avatar for vegaseat
0
84
Member Avatar for yvonnemo

Hi, I been trying this problem for 2 days and monday 31st is the due date :( I tried to use a while loop but the numbers I get are not even close. What I did on the [B]Enter your code[/B] is the codes below the question [code] //******************************************************************************************** // …

Software Development c++ file-stream
Member Avatar for yvonnemo
0
105
Member Avatar for dallin

In C++ visual studio .net, I'm dividing two integer variables and trying to put the answer in a double variable. How do I get two integers to divide and give me a double data variable answer? Thanks doub_a = inta / intb .75 = 9/12

Software Development c++ visual-studio
Member Avatar for dallin
0
162
Member Avatar for ysong00

I created this 2d array consisting of morsecodes: char m[57][6] = {".-..-.", "", "", "", "", ".----.", "-.--.-", "-.--.-", "", "", "--..--", "-....-", ".-.-.-", "-..-.", "-----", ".----", "..---", "...--", "....-", ".....", "-....", "--...", "---..", "----.", "---...", "", "", "", "", "..--..", "", ".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", …

Software Development c unix
Member Avatar for vegaseat
0
96
Member Avatar for letmec

I love graphics programming through C & C++, I have worked a lot, but i am still very far away from bmp files, Can any one tell me how i can access bmp file through C, C++. Thanks in advance :rolleyes:

Software Development c++
Member Avatar for dalaharp
0
609
Member Avatar for Kate

hi there. I've been battling with this for a while now, and really need some help!! I have five files full of 100 numbers each, they are labelled 1.txt, 2.txt up to 5.txt. I want to read these files in and put them all in an array: `files[5][100]` so I …

Software Development c
Member Avatar for Chainsaw
0
323
Member Avatar for compeat

hi! I have a problem about "[B]range of data types[/B] ".I work on program that require long digits .in "boland c++ 5.2 's help" range of long is [B]4294967295[/B] . but why this sample program doesn't work??!! [CODE] int main(){ long a=4294967295,b; b=a; return 0; }[/CODE] CAN YOU HELP ME? …

Software Development c++
Member Avatar for Dave Sinkula
0
563
Member Avatar for BIT_SAIKAPIAN

Hi everyone, I have done BIT, but in other words I completed it just to have degree not as a career. But now I am very much interested in it to take it as career. I have set a goal of 6 months to do best learning c++ and java …

Software Development c++ career
Member Avatar for jwenting
0
116
Member Avatar for Acidburn

Hello, Can anyone point me the direction of getting a linux verision that comes with a .cpp compiler? so you enter gcpp filename.cpp which compiles the code and runs it in a konsole? I've got mandrake and Suse siting here.... Cheers

Software Development c++ mandrake suse
Member Avatar for kc0arf
0
188
Member Avatar for seeplusplus

Hello, i have to write a program using C++ that will store 3 characters into 3 variables, and using pointers i have to rearrange the order in a function. so if c1, c2, c3 have the value 2,4,6....using pointers i have to switch the values of c1, c2, and c3 …

Software Development c c# c++
Member Avatar for Chainsaw
0
143
Member Avatar for dazednconfused

I am trying to teach myself C# and I have run into a problem with one of the chapter assignments. The problem is as follows: Create a class named City. Objects will be instantiated from this class. Include fields that hold the City's name, its state, and its population. Include …

Software Development display
Member Avatar for dazednconfused
0
141
Member Avatar for JoBe

Hello ladies and gents, I'm trying to write this little program in wich I have to enter by keyboard a certain amount of numbers (int) not floating points, and the program must count how many [U]different [/U] numbers I have entered, when the amount is equal to ten, it must …

Software Development c++
Member Avatar for JoBe
0
856
Member Avatar for xxraveteddyxx

i have dev 4.9.9.1...i will create a win 32 console application.. write some code omething basic like... //REMAIN.CPP #include <iostream.h> //necessary for cin and cout commands int main() { int dividend, divisor; //get the dividend and divisor from the user cout << "enter the dividend "; cin >> dividend; cout …

Software Development c++ first-post
Member Avatar for alc6379
0
214
Member Avatar for jingchak

can anyone gimme the C/C++ ebook.......plzzz

Software Development c c# c++
Member Avatar for jingchak
0
165
Member Avatar for babablacksheep

Hello All, I'm very new to C++ and programming in general and am having probelms with an assignment i have been set. I've been using ?Blood dev C++? ( i dont know if this is any good?) I have basically finished the program and am getting one syntax error that …

Software Development c++ first-post
Member Avatar for Narue
0
142
Member Avatar for giedz86

**I use Microsoft Visual Studio .NET 2003's compiler I having trouble trying to create a 10x10 2D array. The user is supposed to give me a starting number and then it fills the array from top to bottom with ascending numbers. I am terrible at arrays and this task doesn't …

Software Development c++ microsoft visual-studio
Member Avatar for Narue
0
117
Member Avatar for xxraveteddyxx

this prog. is supposed to demonstrate a strcpy error...however im getting an error and it wont run....once again im suing a dev c++ bloodshed compiler. and heres my code....once again i know it has a strcpy error thats the reason for writting the program..to demonstrate a char array overflow. strerror.cpp …

Software Development c++ display
Member Avatar for Narue
0
108
Member Avatar for xxraveteddyxx

i need some direction for a decent free c#/c++compiler...please advise.

Software Development c++
Member Avatar for Dave Sinkula
0
206
Member Avatar for server_crash

I have this simple calculator I just started on, and I'm having just a few problems. First of all, I don't know how to append text to a textfield. Maybe I would have to create a string buffere or something. Then, when the user clicks one of the buttons, the …

Software Development java java-swing
Member Avatar for server_crash
0
167
Member Avatar for dj_saxy

Hi i'm new to c++. I can sort of make simple programs, but everytime i try to making a program with a GUI the black windows box keeps coming up and sitting in the background. Does anyone know how to get rid of it? I've found some snippets on other …

Software Development c++ gui
Member Avatar for dj_saxy
0
105
Member Avatar for akoloff

i want to delete part of a binary file, let's say 12 byte record somewhere in the middle of the file. i can think of only one thing: - put the file pointer on the spot - shuffle all the following records up there're gotta be a better way ... …

Software Development c file-system
Member Avatar for Narue
0
78
Member Avatar for freesoft_2000

Hi everyone, I just came home from a software conference in nagoya, Japan where they had any kind of software you can think of on this planet. There was one talk i went for and i think its quite interesting to have it discussed fully here. Alot of the companies …

Member Avatar for alc6379
2
2K
Member Avatar for Ghost

Hi everyone! I was wondering if anybody knew how to compare to strings in C#. I know in java you use CompareTo, but how and what do you use in C#? Thanks, C++ :mrgreen:

Software Development c#
Member Avatar for Iron_Cross
0
141
Member Avatar for dalaharp

Hi, i am using pow command quite frequently in my codes, and i have a feeling that i may be using it incorrectly. foe ex: [CODE]pow(image[x][y],2);[/CODE] image[x][y] is unsigned char and 2 is numeric, so is the arguments ok. [CODE]std_dev=pow(((ur_mean/(R*C))-(im_mean*im_mean)),.5);[/CODE] this a bit complicated, will it work this way? is …

Software Development c image
Member Avatar for Narue
0
122
Member Avatar for nico

hey everyone am trying to generate a beeping sound on my pc using the 'sound' function , the problem is i am getting errors (5 to be exact ) when i compile this program , please someone point out the error on this code , thanx :) below is the …

Software Development c
Member Avatar for vegaseat
0
195
Member Avatar for wardduncan

Hey guys, I need some help with looping. I am writing a currency converter (who in begining programming isn't these days) and I want to have it loop so that I can it keep asking for another entry or make it quit. Here is what I have so far: [code] …

Software Development c
Member Avatar for wardduncan
0
162
Member Avatar for gtsreddy

Hi i am learning C++ i typed the following programm it is asking me to enter the age , when i enter age and hit eneter button it is generating the following message test2.exe has generated errore and will be closed by windows you will need to resterat the programm …

Software Development c++
Member Avatar for 1o0oBhP
0
200
Member Avatar for Acidburn

Hello 2 questions..... 1) I just tried to code a switch statement with a stribg but my compiler throws up error messages.... 2) Is they anyway I can convert a string to an int and then back to a string? cheers

Software Development c++
Member Avatar for 1o0oBhP
0
240
Member Avatar for Programmer88

Ok, i know my program is probably all done incorrectly and thier are probably eaiser ways but, it works for me so.. I have an error and i cant find out what it is. Can anyone tell me? [CODE]//Game Project 1 #include <iostream.h> #include <conio.h> #include <iomanip.h> #include <stdlib.h> main() …

Software Development c++
Member Avatar for Programmer88
0
178
Member Avatar for the b

Does anyone know what's wrong with this function? The program that uses it runs but does not display the average. I also tried using the sum variable instead of ptr3 and had the same results. [CODE]void calculate(int days) { float sum = 0; float average; temperature_node *ptr2; temperature_node *ptr3; ptr2 …

Software Development c display
Member Avatar for the b
0
229
Member Avatar for gtsreddy

Hi i am trying to start doing C++ programming when i write a simple hello programm it is compiling correctly and the out put window is not staying on the screen , i am unable to see it it is suddenly disappearing can any one help me

Software Development c++
Member Avatar for vegaseat
0
150
Member Avatar for diegomoreno

Hi, just wanna ask if c++ opendir,readdir and closedir code can be implemented in visual c++, i have resently started using this complier and dunno what libraries have changed and if some of these sentences are still valid, and if u can recommend me some kind of "migrating c++ to …

Software Development c++
Member Avatar for vegaseat
0
230
Member Avatar for server_crash

I have this code that is suppose to append text to a JTextPane, using the Document method insertString(). I can't seem to get the attribute argument right, so maybe one of you can point me in the right direction... Here is the one line of code giving me problems, just …

Software Development java
Member Avatar for server_crash
0
357
Member Avatar for Dark_Omen

Hello, I am using dev-c++ on a windows computer. I download a gui package off of the bloodshed dev site. I installed and everything seem to work. I was making a simple gui off of this tutorial I found online that used the library. The library is wxWindows. Here is …

Software Development c++ gui
Member Avatar for Dark_Omen
0
212
Member Avatar for chound

How to show a list of options and allow the user to select the options by using arrow keys and enter.

Software Development c++
Member Avatar for vegaseat
0
188
Member Avatar for blackhawk

I have a question. Still trying to understand. I am using borland c++ vr 4.5. I am working on a project that usees the sleep function 4.5 does not support this function. Is there somewhere i can find a win16 version that would work in this program. tnx ron hathcock

Software Development c++
Member Avatar for vegaseat
0
298
Member Avatar for yitzhakbg

How can I login remotely and force a command/script to run in a particular X Server when are multiple X Servers running? Here's what I want to do: Force my desktop to be displayed on multiple remote machines, each of which has multiple X Servers running simultaneously. That is, force …

Software Development shell-scripting
Member Avatar for yitzhakbg
0
129

The End.