49,761 Topics

Member Avatar for
Member Avatar for Kerlix

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 …

Member Avatar for Kerlix
0
173
Member Avatar for Lerilaine

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 …

Member Avatar for TrustyTony
0
383
Member Avatar for ashwitha vandha
Member Avatar for Jsplinter

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 …

Member Avatar for mitrmkar
0
374
Member Avatar for faroukmuhammad

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 …

Member Avatar for Victormarques
0
316
Member Avatar for milan2011

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 …

Member Avatar for m4ster_r0shi
0
681
Member Avatar for fsefsef23

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 …

Member Avatar for WaltP
0
686
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
849
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
253
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
274
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
220
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
348
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
948
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
190
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
256
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
138
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

The End.