49,756 Topics

Member Avatar for
Member Avatar for radiata

Hello, I'm having problems with one of my codes that I need to finish for class. I'm supposed to write a function that has a partially filled array of characters and it deletes all repeated letters from the array. The program requires input for the size of the array, and …

Member Avatar for NathanOliver
0
841
Member Avatar for sadsdw

Hi friends, I'm having a problem to write a file and read the same file in sequence. The file size is 4 GB. I tried fstream for both and as second option ofstream and ifstream. I'm reading just the first 2 lines of the file. If I read those in …

Member Avatar for sadsdw
0
248
Member Avatar for MareoRaft

This code compiles but refuses to run. NONE of the cout statements appear, as if the program is in an infinite loop except that its not. [CODE]#include "matrixOpsLibrary.h" #include <iostream> using namespace MattsMatrixSpace; using std::cout; using std::endl; Mat pattern( unsigned K ){ cout<<"5"; Mat alpha; //this becomes our A variable …

Member Avatar for MareoRaft
0
185
Member Avatar for mahfennex

how to write a program that accepts three numbers,if two numbers are equal,print the equal numbers otherwise print goodbye.please help.

Member Avatar for WaltP
-3
39
Member Avatar for ohhmygod

Hi guys, I've been trying for over 3 hours just to know how to compare a char to a letter in a string. This is sure confusing, consider that I am a mechanical eng. student >.< Lets get straight to the point Problem 1: passing string and char to a …

Member Avatar for WaltP
0
3K
Member Avatar for wackytechie

Hello people..!!:) I'm a beginner in c++.. I made a program today which worked well when I ran it 2-3 times.. But now when I try to run it,nothing happens... All I see is a black screen which disappears in a second.. What to do..??:?: Please help me asap as …

Member Avatar for NIPHZ
0
4K
Member Avatar for xenhancd

I want to have the ability to rerun the following from the very beginning, however, I have only been able to get it to rerun from the middle of the program where it asks for sales tax. I've tried moving my do/while tags around to everywhere but nothing seems to …

Member Avatar for Ketsuekiame
0
271
Member Avatar for agogte20

what main features of C are to be learnt well before starting with C++? Plz reply as soon an possible...

Member Avatar for mike_2000_17
0
129
Member Avatar for Price_Dany

Hello, All executable from my computer can be opened with 7Zip but my mini game.exe cannot be open with 7Zip Why? My game.exe is not Portable Executable(PE)? What kind of file is this file which cannot be opened with 7zip? By The Way, I attached the file here. Thanks! Edit: …

Member Avatar for Ketsuekiame
0
116
Member Avatar for dashure

hello, i need help to solve this little problem. i have an error here.."cant access privet members declared in class CWorker..with is another class [CODE]void main() { CManager *Sasson = new CManager("Sasson Sassoni"); assert(Sasson); // adds workers Sasson->addWorker("Jojo"); Sasson->addWorker("Shilgiya", 1000); }[/CODE] i also have CManager.h... in CManager.cpp, its only part …

Member Avatar for laosland
0
219
Member Avatar for amaanbhae
Member Avatar for theguitarist

I'm not sure on which forum this thread should have gone,so I'm asking here. I presently don't have a personal computer to work on,and won't have one for another few months.I want to be able to continue practising C++. I have access to a computer centre facility.I don't think it …

Member Avatar for Narue
0
167
Member Avatar for highlite

I have created a simple gui using a windows form, which consists of some checkboxes, radiobuttons and textboxes. I also have my logic code which consists of several switch case statement and I want to know how to put my logic code into the gui I have created. Does anyone …

Member Avatar for highlite
0
340
Member Avatar for ktsangop

Hi everyone! I am trying for the first time to write "proper" object oriented c++ (ANSI) code. Up until now everything was made easy to me using visual studio and working with mfc or .net which both handle a lot of the "dirty" stuff... To the point : I want …

Member Avatar for ktsangop
0
933
Member Avatar for Prosammer

i was just wondering why can't i point something to void. without getting any errors like for example [ICODE] class cs_PureFunction { public: virtual void DoSomething() = 0; virtual bool CheckThings() = 0; }; class cs_EnableOverrideAction: public cs_PureFunction { public: virtual void DoSomething() { puts("Test123"); } virtual bool CheckThings() { …

Member Avatar for Prosammer
0
189
Member Avatar for radiata

Hello so basically my project goes like this: Write a C++ program that reads in two positive integers that are 20 or fewer digits in length and outputs the sum of the two numbers. Your program will read the digits as values of type char so that the number 1234 …

Member Avatar for Caligulaminus
0
1K
Member Avatar for ztdep

[CODE]// // Equation.h define the equation class to be solved. // #ifndef EQUATION_H #define EQUATION_H #include "Mesh.h" #include"Variable.h" #include"Media.h" #include"Simulation.h" #include <string> #include<vector> #include <assert.h> #include <iostream> using namespace std; class Equation { protected: // the equation name it should be the same with the variaible name string name; // …

Member Avatar for mrnutty
0
151
Member Avatar for br0wnm4n

Write a program that calculates the closing balance for an indeterminate number of checkbooks. The program must logically flow as follows: * Step 1. Ask for the data for the first checkbook- opening balance, withdrawals and deposits * Step 2. Display the opening balance, the number of withdrawals, the number …

Member Avatar for WaltP
0
1K
Member Avatar for rayden150

Hello good people of YA programming section I really need some help here, I made a function to find me the multiplication of the factorial of any number that I input but if I put say 100 it only gives back 0, when it should give 5050, maybe its the …

Member Avatar for WaltP
0
255
Member Avatar for pseudorandom21

I had a seemingly bright idea for a cleaner and easier to use operating system feature, for when the Windows clutter just gets too bad. Basically I want to alter the behavior of every window, such that when it loses focus it is minimized. But I don't know how to …

Member Avatar for pseudorandom21
0
137
Member Avatar for king03

hi there guys I have to make a program that computes for the convolution, but I am still quite confused how convolution works? I have a matlab program in my pc and I tried to use convolution there and here is what I got: >> x=[3,4,5]; >> y=[5,4,3]; >> conv …

Member Avatar for m4ster_r0shi
0
109
Member Avatar for creative_m

I am trying to create a multi-form application using VC++ express 2008. I have included the header file of the 2nd form in the 1st form header. and I put this code in a function in the 1st form : [CODE] Show (gcnew form2 () ); [/CODE] but nothing happend …

Member Avatar for jonsca
0
89
Member Avatar for fsefsef23

I have a textbook question that's a two parter, the first part asks me to write the definition for a sumStack function (conceptually) with the prototype as: void sumStack(stack<int> istack) I can do that part simply enough, by having it pop each value of the stack and adding that value …

Member Avatar for fsefsef23
0
263
Member Avatar for sairus

can you help me on how to convert the numbers into words . here is my example on how to do that program but im not sure if this is a correct program.. #<iostream.h> #<conio.h> int ones,tens,hundreds main() { cout<<"ENTER NUMBER"; cin>>number; cout<<"ENTER ONES"; cin>>ONES; if(number==1); cout<<"one"; else if(number==2); cout<<"two"; …

Member Avatar for WaltP
0
1K
Member Avatar for vicious217

I am working on a project and i need to have the colume of 3 boxes but I keep getting errors when I try to compile. Can anyone help and see what I am doing wrong? Here is what I have so far: [CODE]#include <iostream> using std::cout; using std::endl; class …

Member Avatar for WaltP
0
1K
Member Avatar for nidajaffri

Write a program in C/C++/Linux to find the mean and then use that mean for further calculations. Make three threads to perform different task as follows: a) The 1st Thread will find the mean. b) The 2nd Thread will take the mean from the 1st Thread and display the numbers …

Member Avatar for nidajaffri
-1
2K
Member Avatar for IndianaRonaldo

I need a little help with algorithm for my code.Given a word "abacus" i have the code to find all its anagrams but i need to include also the words that are smaller in length than the original word. That is, I wanna be able to list ABA,AAB,ACA....ABAC,ABCS....so on. Thanking …

Member Avatar for IndianaRonaldo
0
274
Member Avatar for system analysis

write a program that reads change due to a user and writes out how many Half-rials, 100 bisas, 50 bisas, 10 bisas, 5 bisas, - One rial fits into 1693, leaving 693 bisas. - Half-Rial fits into 693 bisas, leaving 193 bisas. - 100 nbisa fits into 193 bisa, leaving …

Member Avatar for WaltP
-4
79
Member Avatar for IMJS

I am trying to utilise a development kit for software that we use at work. I think I have found a member function that would address a problem I have and I'm trying to test it. The documentation says that it is used thus: [CODE] int SDKclass::SDKclassmethod( a_data_type** a_data_array_ptr, char*** …

Member Avatar for fruitymo
0
112
Member Avatar for josh327

Hey guys I'm trying to create a tic-tac-toe program in c++. This is what I have so far. But it just produces garbage. [CODE]#include<iostream> #include<cstdlib> #include<ctime> #define frz system("PAUSE") using namespace std; //Global Variables const int length = 3; const int width = 3; //Function Prototypes void initializeboard(char [length][width], int); …

Member Avatar for VernonDozier
0
248

The End.