49,757 Topics

Member Avatar for
Member Avatar for rabbit_ocean

( Question) :Build a menu-driven program that could transform infix expression to prefix and postfix expression. Your program should also be able to calculate and display the result of the expression. The expression should be input by the user. Implement the stack concept using pointers. [B](in C++ Language)[/B]

Member Avatar for Nick Evan
0
65
Member Avatar for san.css

hi, i am developing a sync application using funambol api. how the mail is uniquely identified by various client application for eg. the same user is configured in two different outlook version. how the incoming items and outgoing items compared and uniquely identified in this situation. i am developing a …

0
50
Member Avatar for gretty

Hello I want to attempt a freelance c++ job/project for the skills & experience but do you think there are any jobs out there for my skill level? I have been learning programming for 8 months, only know c++, & I only know the basics, arrays, vectors, pointers, stacks ,lists,queues, …

Member Avatar for Nick Evan
0
177
Member Avatar for redreed
Member Avatar for redreed
0
305
Member Avatar for MaskedPianist

Hi guys First post on this website, so go easy on me. I'm a fairly inexperienced programmer, mostly using snippets of other people's code and adapting it for my own uses, but I have found a problem. I want to change my desktop programatically, but to a picture on the …

Member Avatar for iamthwee
0
164
Member Avatar for Rabex

i have to give a presentation on classes in c++ and i dont even know the abc of it...plz help how to get started and also few important points.

Member Avatar for Cosmin871
0
87
Member Avatar for welcomepro

Hi to all, i want to save an array of tchar with his value in the map, as std::map<TCHAR [100], int> word; but when i say [CODE=C++]insert(pair<TCHAR [100],int>(text,1))[/CODE] the error is: cannot specify explicit initializer for arrays... Why????

Member Avatar for welcomepro
0
375
Member Avatar for gretty

Hello Can you assist me in developing my algorithm? I have to do this: [QUOTE]Write a C++ function balanced that uses a [B]stack[/B] to check that all brackets in a string are balanced. For eg: This is a balance string: [I]This (string) has (balanced {brackets[(now)]} [thanks])[/I] This string is not …

Member Avatar for VernonDozier
0
1K
Member Avatar for truviet911

hey guys. i have several problems but i stuck with these 2 problems. hope you guys can help me out. 1- [B]Max, Min, Average of Number String[/B] write a C++ program that reads in an unspecified quantity of real numbers, of quantity < 100, and stops reading them in when …

Member Avatar for VernonDozier
0
94
Member Avatar for dorkwad

I'm attempting to output a 7 digit number in a space 7 columns wide with cout, where loan is my 7 digit number: [code] cout << "$" << setw(7) << fixed << showpoint << setprecision(0) << loan;[/code] Any attempts fiddling with this result in the number being converted to 1e+006. …

0
61
Member Avatar for Ancient Dragon

There appears to be some confusion about what c++ code snippets are supposed to be. I've seen two threads already that are just normal c++ questions but posted as code snippets. I really don't like intermingling the c++ forum with code snippets for two reasons [list=1] [*]Much more difficult to …

Member Avatar for Dave Sinkula
0
351
Member Avatar for Darth Vader

How is it possible to check if a String is a valid number. The number can be both an int or a double like: [code] String^ ValidInt = "5"; String^ ValidDouble = "5.01"; [/code]

Member Avatar for Darth Vader
0
192
Member Avatar for mrnutty

It uses the idea of Seive of Eratosthenes. The code is basically does the following to find Prime Numbers : 1) Populate Array from 0 - > MAX 2) Find 1st Prime, which is 2 3) Delete all Multiple of 2, i.e set it to false 4) Find next prime, …

0
377
Member Avatar for hectex

[IMG]http://i37.tinypic.com/xp0ei0.jpg[/IMG][code]#include <iostream> #include <string> #include <ostream> using namespace std; class CResistor { public: void InputInfo() { cout<<"Enter a text name for the CResistor object being created."<<endl; cin>>m_sResName; cout<<"\n"; cout<<"Enter the Following Data:"<<endl; cout<<"Resistance Value= "; cin>>Res0; cout<<"Tolerance Value= "; cin>>Res1; ResTolValue=(Res0*Res1); Res2=(Res0+ResTolValue); Res3=(Res0-ResTolValue); cout<<":Max Resistance= "<<Res2<<endl; cout<<":Min Resistance= "<<Res3<<endl; cout<<"\n"; …

Member Avatar for mrnutty
-1
139
Member Avatar for XodoX

Hello, I need some help with this code. First of all, the program just closes after I enter the rows. It's not supposed to do that. Then, the coordinates (cards) 1,1 and 2,3 need to face up when I start it. How do I do that? I hope someone can …

Member Avatar for XodoX
0
123
Member Avatar for mrsirpoopsalot

I am having a hard time grasping ADT using linked list. I have a struct node in a class where i have a node constructor. I cant create a link list without using the constructor. But thats where i am lost. This is what i have [CODE] #include <ostream> #include …

Member Avatar for mrsirpoopsalot
0
153
Member Avatar for vortex24

Hi all, I have the following code written for work. The point of the program is to take input from the user as to which customer id (phone number) is required. Once the program has this data, it will open a specified folder to search through each line of code …

Member Avatar for Lerner
0
127
Member Avatar for anbuninja

so im creating a program on hours and minutes. and well my program basically works just that the output is a bit off. [code] #include <iostream> #include <string> #include <iomanip> using namespace std; void getHours(int& input1, string& s); void getMinutes(int& input2, string& s); void calcTotalTime(int& input1, int& input2, int& input3, …

Member Avatar for Dave Sinkula
0
99
Member Avatar for welcomepro

Hi to all, i have a little problem with my little application. I create a graphic object where i draw a series of text. I create it with [CODE=C++]Graphics gg(hdc)[/CODE] where hdc in the handle context of the screen ( BeginPaint ). Now i want to save this graphics object …

Member Avatar for welcomepro
0
115
Member Avatar for dag7399

1.write a program that asks the user to type 10 integers and writes the sum of these integers.Using [B]for[/B] loop.Can anybody help me with this question??

Member Avatar for siddhant3s
0
97
Member Avatar for gemgirl1972

Here is my whole problem can someone please please HELP Please 1. SPLIT THE PROGRAM IN 3 FILE NETWORK. H, NETWORK.CPP. CLIENTNET.CPP AS IN ADT. DONE 2. DEFINE A CLASS CALLED ADDRESS_T (done) with member for the four integers of an internet address and a fifth member in which to …

Member Avatar for gemgirl1972
0
120
Member Avatar for sonygamer

[CODE]#include <iostream> #include <cmath> using namespace std; int n; void main(){ cout<<"input the number of students: "; cin>>n; double *scores= new double[n]; cout<<"enter the scores of the students: "; for( int i=0; i<n; i++){ cin>>scores[i]; } double sigma,sigma2, mean, strDev; int ii; for (sigma=ii=0;ii<n;ii++){ sigma+=*scores; *scores++; mean= sigma / n; …

Member Avatar for sonygamer
0
134
Member Avatar for FBIRyan

I play this game called GunBound, and have a nice C++ script for it. But I need a function that can help me do the following: [CODE]int x=390; int y=450; for(int i = 0; i == 0; x++) { if(scanpixel(x, y) == YellowColor) i++; }[/CODE] I need to get the …

Member Avatar for nFectid
0
2K
Member Avatar for virtualmisc

Can anyone help with using c++ derived types in fortran? I got a pdf but it was of no use.

0
47
Member Avatar for Der_sed

The file "airports.csv" contains [U]12 pieces [/U]of info per line - separated by commas: [B]BIN,"Bamiyan","Bamiyan","Afghanistan","AF",34.800000,67.816667,701,"Afghanistan",\N,\N,1149361[/B] (there are 3 such lines for now) How do I modify my program to take the 1st, 3rd, 5th,6th,7th pieces of info per line and store them in an array- ill later use that array …

Member Avatar for KonkaNok
0
147
Member Avatar for gcardonav

Hi: I never set up a 2D array in the past and I am trying to do it now. I have a program that reads a 1 line text file and after reading it makes some calculations. After this I made some changes to my code trying to make a …

Member Avatar for VernonDozier
0
153
Member Avatar for ankit894u

in want to edit the code in such a way tht the user can enter upto 10 values maximum..need help pls ... [CODE] #include <iostream> #include <iomanip> using namespace std; struct node { int info; struct node* next; }*front,*rear; void enqueue(int elt); int dequeue(); void display(); void main() { int …

Member Avatar for shaynerossum
0
98
Member Avatar for itzaaron

I am new to c++ and I'm kinda struggling. I'm trying to write a program to guess a number that the user inputs. The program should guess a number then the user should be prompted if it is too high or too low. then the program should guess again, intill …

Member Avatar for mrnutty
0
1K
Member Avatar for somename

Hi there, i am trying to implement thread injection from my windows forms .NET project. Here is the code which works just fine from simple console app or Gtk+ gui application, but unfortunately not from .NET gui app. [CODE]#define NtCurrentThread() ((HANDLE) -2) #define NtCurrentProcess() ((HANDLE) -1) typedef DWORD (WINAPI *Rm_MessageBoxA)(HWND …

0
128
Member Avatar for dumrat

I am using multiple threads that are doing work. I need the threads to update an integer once they finish processing. [CODE] //Lock i_Flag++; //Unlock [/CODE] Then [CODE] if(i_Flag == i_ThreadCount) //Do something. [/CODE] My question is whether I need to use locks around i_Flag++ because it is a simple …

Member Avatar for jyh5
0
129

The End.