49,761 Topics

Member Avatar for
Member Avatar for Jpalka2010

So I'm trying to enter all the information for this program and it's giving me a hard time. The ones with (need help) are the tough steps. The text file and functions are found in the attachments. U-WATCH-UR-WEIGHT "At the beginning and end of each month, members of the club …

Member Avatar for jonsca
0
163
Member Avatar for Violet_82

Hello there, can anybody help me with this? I have a simple program like the attached. What I would like to do is to come up with an executable file that I can email to myself and execute on another machine. What happens at the moment is this: I wrote …

Member Avatar for Violet_82
0
319
Member Avatar for Aprentchacker

Basically I'm trying to adapt the quicksort algo for array based lists for linked list as shown on a text book. This is only for learning the principles than practically effective sorting. I have struggled to get this code to work, but stil seems to break on a few test …

Member Avatar for Aprentchacker
0
929
Member Avatar for Stefano Mtangoo

I already Know Ancient Dragon is fan of MSVS due to its debugging features and I use C::B because it is the only I have come to love after failing to love both VS Express and Codelite. So what do you love to use when it come to C/C++? Just …

Member Avatar for VilePlecenta
0
228
Member Avatar for moe121

Change a Color Image into a Grayscale(Black & White) Image. I'm using borland c++ Thanks Just like this code, but in C++ instead of C#: [url]http://www.daniweb.com/code/snippet217154.html[/url]

Member Avatar for Salem
0
779
Member Avatar for justinclev

I've been looking through the site for topics on how to code your own DLL's in C++ and so far i have not come up with much, I'm hoping to create a DLL in which i will code functions for using the win32 API and kinda making a small framework …

Member Avatar for Frederick2
1
127
Member Avatar for chithra031990

[QUOTE=dkwantee;556141][CODE] [LIST=1] [*]void selectionsort(int numbers[],int arraysize) [*]{ int i,indes,large,j; [*] for(i=arraysize-1;i>0;i--) [*] { large=numbers[0]; [*] index=0; [*] for(j=1;j<=1;j++) [*] { if(numbers[j]>large) [*] { large=numbers[j]; [*] index=j; [*] } [*] } [*] numbers[index]=numbers[i]; [*] numbers[i]=large; [*] } [*]} [/LIST] [/CODE] i have been able to understand upto 7 line. can someone …

Member Avatar for Nick Evan
-2
73
Member Avatar for isralruval

File Edit Options Buffers Tools C++ Help [CODE]#include <iostream> #include <cmath> using namespace std; void printArray(const int a[], int size); void reverse(const int a[], int aReverse[], int size); int average(const int a[], int size); int main() { int size = 10; int a[] = {10, 15, 27, 89, 90, 95, …

Member Avatar for #define
-1
107
Member Avatar for stacey3122

I would like to create a small parking system with 10 space. Then the system may assign the 1st entered car to the nearest space. I would like to implement the car park space using array. And the distance is save into array. e.g. A[2]=2 means tat at array A[2] …

Member Avatar for Ancient Dragon
0
58
Member Avatar for ryanshady

Hi guys, i'm new here and this is my first post. This is my problem: i got an assignment like this: create a set contain of UNIQUE uppercase character, then do some operation on it, like, add element, check if element are in the set or not? how many elements …

Member Avatar for ryanshady
0
112
Member Avatar for deorcar

ok i have to make a matrix class for a math library and im now Very lost with what im ment to do or how to do it the code i have so far is: [CODE] #include <iostream> #include <math.h> #include "Vector2.h" class Matrix { private: float data[3][3]; public: Matrix() …

Member Avatar for smarty_t2
0
95
Member Avatar for green_leav

Hello everyone....this time a have a competition program that I want ur help but this time i just want from u answers to some problems that i faced when i was working on it : this is the program: Mail merge is a software function describing the production of multiple …

Member Avatar for green_leav
0
151
Member Avatar for fete

i want C++ programing which do- Addition - Multiplication - Finding the Inverse - Finding the Determinant

Member Avatar for xavier666
-2
108
Member Avatar for hauda67

I declare the TFileStream as such __fastcall TFileStream(const AnsiString filename, mode); and include the following: #include <vcl.h> But i get the error "E2293 ) expected" What am I doing wrong? Can someone give me a hint or possible solution. P.S. I have tried searching on google with possible keywords but …

Member Avatar for Salem
-1
146
Member Avatar for hwlibra083

This is probably a really easy question, and I know it's starring at me right in the face, but I can't put my finger on it. I'm doing this semi-simple program for school and I think my only problem here is passing my array of structs to a function that …

Member Avatar for hwlibra083
0
294
Member Avatar for SeanBlack0000

I am trying to check the customers request against the volume remaining in the tank. If the request is greater, I need to instruct the customer to move to the next tank. But I am having problems. The tank is set to store 100 gallons. On the 1st request, I …

Member Avatar for SeanBlack0000
0
108
Member Avatar for VilePlecenta

Backstory: I took up learning C/C++ a couple months ago when I was in a game hacking forum. Since then I have changed my interests and no longer desire to make exploits for games for personal reasons. At the moment I am studying Programming Windows 5th Edition by: Charles Petzold …

Member Avatar for VilePlecenta
0
326
Member Avatar for khevz09

this is the code ..but it is not displaying the first and the last number that came from the user. anyone can help me with this small problem?? [code] #include <iostream.h> #include <conio.h> main() { int f,l,f1,l1; clrscr(); cout<<"Enter the First digit:"; cin>>f; cout<<"Enter the Last digit:"; cin>>l; f1=f; l1=l; …

Member Avatar for dusktreader
-1
106
Member Avatar for SeanBlack0000

In this snippet of code, I am trying to check the customers request against the volume remaining in the tank. If the request is greater, I need to instruct the customer to move to the next tank. But I am having problems. The tank is set to store 100 gallons. …

Member Avatar for WaltP
0
470
Member Avatar for terabithia

Hi, Could someone please let me know how to terminating char pointer array properly? The menu 0 can successfully generate a set with no garbage value But other function for ex: Union , Equality Got a weird character at the back of the array. ex = S = { A …

Member Avatar for dusktreader
0
149
Member Avatar for rusydi_10

Write a program for multiplication and division of two numbers for different base number. Programme structure: The program should contain 1. Should have an infinite loop which is the program is always running. 2. An option for a user to select base number of the first number. (For example: base …

Member Avatar for dusktreader
-3
111
Member Avatar for tylerc101

Hey guys, I'm having issues returning my array at the end of my code, when I do the array is not the same as it was before being returned (which can be seen by the printout). I also get a warning from my compiler: "warning: address of local variable 'garray' …

Member Avatar for dusktreader
0
119
Member Avatar for makan007

I am exploring to add an element, ASCII letters to my random generated 1D array to form new array. How can I use <cstring> header to achieve my result. [CODE] #include <iostream> #include <ctime> #include <cstring> #include <cstdlib> using namespace std; const int MAX = 10; void constructSet1 (char*, int); …

Member Avatar for dusktreader
0
225
Member Avatar for problemkid

Hi good day to all, I am suppose to write a program using class that allows me to add or subtract numbers that are very long. Eg 100 digits. I have come out with a few ideas to go about doing it but need to clarify some points before i …

Member Avatar for dusktreader
0
140
Member Avatar for vin1

hi all,im new here and im a beginner at c++, im making a simple tic tac toe program, and its not working properly, it cant determine the winner,could someone please help. heres the code [CODE] #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<stdio.h> #include<graphics.h> #include<ctype.h> #include<time.h> void main() { /* request auto detection */ …

Member Avatar for mrnutty
0
138
Member Avatar for mmasny

Hello everybody, I'm new here. I'm new to C++ as well and have many problems that you might find silly. One of them is this code, not willing to compile: [code=C++] #include<iostream> class Okno; class ListaOkienEl; class ListaOkien{ ListaOkienEl* pocz; public: ListaOkien(); ~ListaOkien(); void DodajPocz(ListaOkienEl&); void UsunPocz(); ListaOkienEl* WezPocz(); }; …

Member Avatar for mitrmkar
0
100
Member Avatar for atticusr5

Hello everyone, I am a college student in his second year of learning C++. Last semester we would use Visual Studio to write and compile our code in. This year we use linux, more specifically the Vi editor. We use linux in two ways, either we use Putty in Windows …

Member Avatar for Salem
0
138
Member Avatar for Mallos31

Alright, I have a file opened, read into a buffer, and closed. I need to search the file for this string of bytes: FDXXXXXX06YYYYYY The FD is an assembly code to load something, but that's not important here. The XXXXXX and YYYYYY are values that are unknown and YYYYYY will …

Member Avatar for Mallos31
0
194
Member Avatar for ameerkw
Member Avatar for Ancient Dragon
-4
25
Member Avatar for wwsoft

hello can I keep track of objects in a list and being able to sort them by there z var ? do I use pointers ? how would I do this ? [code] #include <vector> vector<sometype> _objects_; create_object(object_type) { new object_type myobject; _objects_.push_back(myobject); return _objects_.at(list_end); } remove_object(int pos) { delete …

Member Avatar for wwsoft
0
104

The End.