49,757 Topics

Member Avatar for
Member Avatar for badrobot

can anyone help me where the cin.get(); should be put? i cant view the final output... it was compiled successfully but i cant view the output when it runs.... #include <iostream> #include <cstdlib> #include <iomanip> using namespace std; typedef int Bool; // converts 0 to 'S', 1 to 'M', etc …

Member Avatar for Narue
0
257
Member Avatar for CRD

Does anyone know which include file is needed for functions; IsLetter (ch) and ToLower(ch) ? Dick

Member Avatar for CRD
0
58
Member Avatar for bRutal!

Hello I'm just wondering what kind of practice do I need, because I'm ending with C++ and moving to c#. What do I need to be prepared most and what is the hardest part of learning C# from beggining yours sincerely ! thanks :)

Member Avatar for bRutal!
0
97
Member Avatar for badrobot

[code=cpp]#include <iostream.h> #include <stdlib.h> #include <conio.h> #include <graphics.h> #include <iomanip.h> int i,emonth,eyr,wday,nwday,pmdays,x,y; unsigned int totaldays; int monthd[]={31,28,31,30,31,30,31,31,30,31,30,31}; char* mname[]={"January","Febraury","March","April","May","June","July","August","september","October","November","December"}; int gm,gd=DETECT,mx,my; char*cp,*yrp; int xp,yp,textw,texth,skey; void display_month(); void monthgraphics(); void monthloop(); void process_date(); void yeargraph(); void yearloop(); /*main starts*/ void main() { char choice='v'; initgraph(&gd,&gm,""); while(choice!='e') { cleardevice(); setcolor(1); rectangle(1,100,639,350); rectangle(4,102,637,348); …

Member Avatar for adotl
0
192
Member Avatar for parthiban

Hi all, I'm a beginner and I tried to write a program to convert celsius into Fahrenheit but i have a problem due to type casting operation. That is even though i explicitly converted an integer to float number I'm getting only integer value . Here's the program : [code]# …

Member Avatar for parthiban
0
125
Member Avatar for quintoncoert

I am writting a program which receives args on the command line. Before they can be used however they must be converted to ints. I am using vc++ express edition and I have tried the _strtoi64 function but I cannot get the parameters to this function right. It is specifically …

Member Avatar for vijayan121
0
145
Member Avatar for ShawnMuller

Hi, I have a problem that happens very rarely. I have a calculation which ads (for example) -15000.00 to 15575.51 and saves the results to an oracle database. However, the reslut in the databse is 575.51000002 Both figures are loaded elsewhere from the database and either have 0 or 2 …

Member Avatar for ShawnMuller
0
95
Member Avatar for bRutal!

My friend's asking 'bout writing SMS with computer,which has to be exactly like on mobile.If there are any suggestions, I would be glad to hear'em...=D

0
65
Member Avatar for imrickyduh

I graduated high school last year in '06 but unlike a lot of people I know what I want to do for a career move and not sure exactly how to pursue it. In my last 2 years of high school I was enrolled in Cisco Networking Academy I, II, …

Member Avatar for mariocatch
0
164
Member Avatar for bRutal!

Hi, I have a question 'bout c++ beep...It's very simple...Where can I find Music Scales for C++ ? I've searched google up'n'down without succes...thanks for any help :?:

Member Avatar for bRutal!
0
163
Member Avatar for fahima.s

HELLO can any one pls help me.Am new to this field.Actually i get pic from ip camera.i hav to detect motion in it and make it a video and send it to a mobile.Thanx in advanc.Really looking for help:(

Member Avatar for vijayan121
0
92
Member Avatar for venomlash

Is there any way to write a program to check a computer's serial number as sort of a copy-protect? (i.e., if the serial number doesn't match the expected number written into the program, the program quits.) Anyone know? Thanks, venomlash

Member Avatar for vijayan121
0
58
Member Avatar for radskate360

Hi I am working on some homework and I seem to be in a bit of a bind, I keeping hitting a wall, and I have been reading my book and looking for examples that may help, but I am quite unsuccessful. My Assignment Pull grades and sexes of people …

Member Avatar for John A
0
311
Member Avatar for Sturm

Hello, I am doing a homework assignment and need a bit of help. I have to overload the prefix ++, postfix ++ operator, and the = operator for a circle class. Heres the code I have so far: [code] #include<iostream> using namespace std; class Circle { public: Circle(); Circle(int n); …

Member Avatar for Sturm
0
210
Member Avatar for faisaly

Dear all, plz help me regarding this C++ Questions. Q.1 Write a simple structure named Students. This structure consists of three variables Name, GPA and TotalMarks. Now write three variables of data type Students. Get value from user for these three students and show them on screen. Q.2 Create a …

Member Avatar for Narue
0
85
Member Avatar for silveto_smiley

hello everyone! :))) i am new here and i am really happy that i found such a useful forum. my problem is that i need some help for a project on c++. i have to do a problem (it can be mathematical) which must include classes,list,polymorfisym; hmm i think only …

Member Avatar for mariocatch
0
103
Member Avatar for jaepi

Hello there, I've been studying c++ for about a month. Currently, I'm indulging my self to pointers to be used in classes and functions because i have to familiarize myself with threading. Any of you here knows some good tutorials in threading, preferably html based tutorials. Or, suggestions on what …

Member Avatar for jaepi
0
123
Member Avatar for jaepi

Hello there, I'm practicing structures and accessing data in a structures. I have here a program that gets an input of string and int from a user. I placed it inside a loop where every time the loop refreshes, it changes the information it gets. My problem is, how do …

Member Avatar for jaepi
0
114
Member Avatar for squinx22

somebody help me in makefiles pls...... how to create a menu launcher for Unix automatically using only the makefile.. thanx in advance

Member Avatar for Salem
0
67
Member Avatar for jaepi

i have here a code that uses pointers to manipulate data in a class...i have a problem of how to show them on screen...i think im using an erroneous syntax...lol... [code=c] #include <iostream> #include <string> using namespace std; class MyClass{ public: string first_name, last_name, id_no; int age; }; int main(){ …

Member Avatar for jaepi
0
205
Member Avatar for Zay

Hi; can you check this for me : [code] Time Time::operator-( Time & other, Time & other2) { Time t3; t3.hrs=fabs(other.hrs-other2.hrs); t3.mins=fabs(other.mins-other2.mins); t3.secs=fabs(other.secs-other2.secs); return t3; } bool Time::operator!=(const Time &other) { return (hrs!=other.hrs || mins!=other.mins || secs!=other.secs); } [/code] this error apear while runing the prog. [code] : error C2804: …

Member Avatar for twomers
0
208
Member Avatar for MAI&

hi ^^.. i have another question ,, it may sound stupid but what should i do , i'm just a beginner ^^.. if i am reading a digit from a file as a char. and then i want to read it again as an int.as an int. with other digits. …

Member Avatar for MAI&
0
138
Member Avatar for Zay

Hello; steps are correct; there is no error ; but when running the prog. this what apear :(its in attach) this is my code and the main: [code] template<class Type> void sortQueue(queueType <Type> & q1) { queueType <Type> q2; queueType <Type> qresult; Type min=q1.front(); q2.addQueue(min); while(!q1.isEmptyQueue()) { q1.deleteQueue(); while(!q1.isEmptyQueue()) { …

Member Avatar for Zay
0
230
Member Avatar for jan1024188

Hello About half year ago I was interested in Direct3D 9/10 programming, but I released that DX isnt for me. Im not really interested into a game development. I know C/C++ basics, some Win32 API and some QT4 basics. Now, I'd like to try OpenGL. I am looking for a …

Member Avatar for John A
0
90
Member Avatar for olams

Hi, I am reading ahead for a C++ class that i am taking next quarter. I just read stacks and queues and know how to implement both seperately. I was wandering if there is a program that has been written in which both stacks and queues were implemented in one …

Member Avatar for olams
0
184
Member Avatar for Ahmed Padela

Please help me to Write a program "to print the sum of the main and sub diagonal elements" Thanks all.

Member Avatar for Ahmed Padela
0
211
Member Avatar for JohnMG

Hello everyone, I'm just returning to C++ after a (very) long break. Ignore the form and purpose of this program, it's just an experiment to get me reacquainted with the language. I put my problem in the comments... thanks in advance. [code=c++]// Trying to get back into C++. // It …

Member Avatar for JohnMG
0
110
Member Avatar for blazted

I have trying to parse string data in a stack into a arithmetic equivalent. I implemented a stack and used strtok to parse it into tokens and placed them into my stack. Now I am trying to pull them off the stack and do the expression that is carrying them. …

Member Avatar for Lerner
0
95
Member Avatar for maidah

Hello I am the Handheld Product Manager for a software company in GA..... Looking for a thin telnet client to run on a DRDOS device (Symbol PDT 3110) that has total memory of 640kb, where OS shares this space…… Ideally would be great to find one that already exists… but …

0
60
Member Avatar for desijays

[code] class base { private: int i; void seti( int i_temp ) // :i(i_temp) ->Initializer List not working { i = i_temp; } public: base() { } base( int t ):seti( t ) { } }; [/code] error C2436: 'seti' : member function or nested class in constructor initializer list. …

Member Avatar for vijayan121
0
180

The End.