49,761 Topics
| |
Basically, I want to create a countdown timer. Which isn't hard. It's all over the web. BUT I would like to know how and what I would need for, when the timer reaches zero, the code commands a relay to close, allowing voltage to flow to something. Also, presetting the … | |
Hello, I have this huge problem. I'm supposed to make a LISP interpreter in C++ but I have absolutely no idea what the programm should look like. So far I have a parser, which splits input string into the list of smaller strings (words, brackets). Could anyone give me a … | |
can understand .... bt how culd u make gui in c++... ?? | |
I am following this [URL="http://www.boost.org/doc/libs/1_37_0/libs/serialization/doc/index.html"]example [/URL]to serialize an object with boost. However, I keep getting the same compile error: error C2248: 'boost::scoped_ptr<T>::scoped_ptr' : cannot access private member declared in class 'boost::scoped_ptr<T>' Any idea why? [CODE]// Console2.cpp : Defines the entry point for the console application. #pragma once #include "stdafx.h" #include … | |
Hi guys, I was requested to makes a 3D house plan, which a user can be able to move about in, using the keyboard or mouse. Like in games. I'm relatively good in Carrara, VB and C++ but I'm new to game programming. :S I need your help on how … | |
Hi, I am trying to use a hash table to sort the two string words from an input file ,display words and again put them back to an output file. so if this is my input in input.txt: thank Merci yes oui hello bonjour the sorted output in output.txt will … | |
I have set of lines which I read from a file that gets stored as an array stack of characters. A function called procssline gets called with the stored stack as a parameter. One of the lines reads as follows: Nn<-<-<-<-No <-w iz<-sthe<-<-<- the time. Where the top of the … | |
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 … |
The End.