48,986 Topics

Member Avatar for
Member Avatar for stjohn999

this is my daughters homework she asked me to help and now im stuck she has worked it out and is making me look stupid need to get my selfrespect back even if i have to cheat(i used my brain and im asking you) the code is as follows but …

Member Avatar for WaltP
-1
79
Member Avatar for isralruval

ok, so i have a simple code below but i need an array function that calculates which elements are divisible by 5 and then its passes the results to the main function and outputs them, any help with code on how to do it will be appreciated? basically the above …

Member Avatar for WaltP
0
85
Member Avatar for hermann87

Greetings from Greece, this is my first post! I'm having some minor trouble with an application I've been working on the past week. So if you could please shed some light into this. Thank you. The problem I'm having is that when the user is trying to save a file …

Member Avatar for mitrmkar
1
400
Member Avatar for Skeen

So I've got this program I made, and I wanted to speed it up, using multithreading, to make use of my quad core. The program itself fully supports multithreading. The problem is, that when I'm running the program, using just one; CreateThread() it finishes in 6seconds, if I run 2 …

Member Avatar for ireshagun
0
102
Member Avatar for cin.fail

Hello everyone, I am quite new to C++ and I am currently trying to complete a project in creating a program that solves a maze of a given dimension.The text has to be read in and the first element of the file defines the size of the array,its an integer …

Member Avatar for jonsca
0
206
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
162
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
317
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
928
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
227
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
767
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
150
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
293
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
107
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
325
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
467
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
110
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
115
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
139
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
126

The End.