49,761 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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] | |
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 … | |
[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 … | |
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, … | |
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] … | |
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 … | |
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() … | |
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 … | |
i want C++ programing which do- Addition - Multiplication - Finding the Inverse - Finding the Determinant | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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. … | |
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 … | |
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 … | |
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' … | |
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); … | |
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 … | |
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 */ … | |
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(); }; … | |
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 … | |
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 … | |
we need a mini project on scientific calculator with source code | |
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 … |
The End.