49,756 Topics
![]() | |
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 … | |
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 … | |
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 … | |
how to write a program that accepts three numbers,if two numbers are equal,print the equal numbers otherwise print goodbye.please help. | |
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 … | |
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 … | |
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 … | |
what main features of C are to be learnt well before starting with C++? Plz reply as soon an possible... | |
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: … | |
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 … | |
| |
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 … | |
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 … | |
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 … | |
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() { … | |
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 … | |
[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; // … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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"; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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*** … | |
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); … |
The End.