49,761 Topics

Member Avatar for
Member Avatar for md_salman

I wanted to use the a far pointer in my program the declaration was like this char far* ptr; but when I compile the program the compiler gives error message that far undeclared, can any one help me in this regard how to use near, far, and huge pointers in …

Member Avatar for Ancient Dragon
0
134
Member Avatar for Acidburn

[php] #include <iostream> using namespace std; typedef struct Template { int a; Template * link; // goes forward (one way reference) } list; typedef list * listptr; int main() { listptr head; // head is a type listptr listptr p ; listptr next ; head = NULL; //therfore make it …

Member Avatar for akshatvig19
0
126
Member Avatar for tachoink

hello everyone, i think im going to ask a very silly and noobie question but here it goes. im using VB 6.0 and im trying to create a program that would detect keypresses over another program. then automatically press something else for me say if i press f12 it should …

Member Avatar for tachoink
0
106
Member Avatar for tommouse

Code compiles w/o error but print function does not pull data from base class. I have looked over the chapter numerous times. This is a long one, sorry [code] class extClockType: public clockType { public: void getTimeZone(int& timeZone); void setTimeZone(int timeZone); void printTime() const; extClockType(); extClockType(int hours, int minutes, int …

Member Avatar for tommouse
0
137
Member Avatar for kdw3

I've just started using C++ for my engineering course. I downloaded the Dev-C++ compiler and I am having trouble with the cout command. Everytime the compiler outputs a value/ sentence etc, the command prompt shuts down before anything is displayed. I am running the program on XP Pro Does anyone …

Member Avatar for Narue
0
599
Member Avatar for SpS

Is it right to say that....since arrays are passed by address automatically...so there's no need and reason to return arrays from functions(Is that the reason why it is not allowed in c/c++)

Member Avatar for Stoned_coder
0
177
Member Avatar for smallville

I'm trying to put together this program that creates a for loop but my end result is not positioned the way I need it like this but flipped around so it looks like a christmas tree effect. * ** *** **** ***** Please help I'm still learning and I can't …

Member Avatar for smallville
0
310
Member Avatar for djbsabkcb

Okay I have a problem where the name of my vector is highlighted in yellow throughout my code and my output. I changed the name of the vector but on the output the word list is still highlighted in yellow, why? Below is my code: [code] #include <iostream> #include <string> …

Member Avatar for Ancient Dragon
0
104
Member Avatar for DotNetUser

This is in VC++.NET. I dynamically create the number of buttons the user specifies. I add these buttons to an Arraylist. The buttons names goes from b1 ..bn where n is the max num of buttons. The user will provide me the button number and the text to be added …

Member Avatar for DotNetUser
0
138
Member Avatar for simon126

Program a student uses the computer to figure out his average in this class. As long as he enters grades between 0 and 100, it computes the average. If he enters -1 for a grade, it stops computing and prints out the average. I need help please someone help me …

Member Avatar for Lerner
0
258
Member Avatar for ankitrastogi82
Member Avatar for rekkoha

Can anybody in this forum page help me on getting example source codes like these ones: Any network game on Turbo C (2.01, 3.00)somethin' like that (with a filename extension of *.c) and any maze program on turbo C++ (with a filename extension of .cpp) if anybody would be able …

Member Avatar for Narue
0
99
Member Avatar for Ryrra

I have some Visual Basic programing experience but I am new to C++ I am working on a homework assignment and I am not sure why my code is not working out. I am trying to write a program that changes numbers form 1 to one , 2 to two,... …

Member Avatar for Ryrra
0
116
Member Avatar for btech

I am trying to write a program which will derive one class from another class by adding a data member to store the time zone. Below is what I have so far. However I am unsure on how to write the function to set the time zone. could someone please …

Member Avatar for Dave Sinkula
0
774
Member Avatar for cobra2003

I need help with my homework. If someone is willing to help me then I will pay you for your time. Thanks my email is << moderator edit: email address deleted >>

Member Avatar for Dave Sinkula
0
99
Member Avatar for lk9865

the purpose of this is to find the percent of error of a trnsducer and the overall error. I'm kinda stuck can you guys quickly take a look at it please [PHP] #include <iostream> #include <cmath> using namespace std; void main() { float td_1, td_2, td_3, ktd_1, ktd_2, ktd_3, err_1, …

Member Avatar for lk9865
0
99
Member Avatar for AhmedHan

I am trying to write down a Win32 program that recovers corrupted files on CDs and DVDs. I used ReadFile() function to read the corrupted file. ReadFile() is supposed to return ERROR_READ_FAULT value whenever any read error occurs. Unfortunately, the program stucks at the ReadFile() function when there exist a …

Member Avatar for Ancient Dragon
0
164
Member Avatar for 3nCrypti0n

Im having trouble implementing this Queue simulation. This simulation basically estimates how long a student has to wait in line for lunch at my high school. I get the following messages when trying to compile [CODE][C++ Error] davislunch.cpp(30): E2034 Cannot convert 'line *' to 'line::node *'[/CODE] Heres the source: davislunch.h …

Member Avatar for Rashakil Fol
0
157
Member Avatar for Acidburn

Hello, I've been given this algo code to rewrite in c++ : if the list is not full then n <- n+ 1 L[n] <- new item else ERROR ("List is full.") end if [code] int main() { int list[MAX]; int i,n = 0; if (n!=MAX) { for ( i …

Member Avatar for invinate
0
112
Member Avatar for este77

I need help with some homework. I need to write a program that uses a while statement to determine and print the largest number of 10 numbers input by the user. The program should use three variables: counter: A counter to count to 10, (to keep track of how many …

Member Avatar for Dave Sinkula
0
161
Member Avatar for christyj5

I am trying to infile my data file into two seperate arrays which are seperated by a white space in my file. But I keep getting -86******* something number where my file is suppose to be any help will be very helpful. My first array which will read the student …

Member Avatar for Lerner
0
440
Member Avatar for tkaung80

Dear all, I am very newbie here and I'd like to start learning C programming. My OS is windows XP. Could anybody please tell me where to get C compiler ? Thanks in advance! Any help much appreciated. rgds, tkaung

Member Avatar for calcop
0
407
Member Avatar for gamesnmore

Hi, I am new to C++ I am working with C++ .NET to create a multiplayer game for a project. However I need to connect the multiple computers together, for it to work, with one computer acting as the server and the other (max of 6 others) connecting to it …

Member Avatar for calcop
0
129
Member Avatar for andy257

Hi Guys I am a new member here and basically i have joined because i would like to learn some c++. I have no prior experience in any of these high level languages. I do have experience in turbo pascal but those of you who have used it know how …

Member Avatar for TIMBUCK
0
195
Member Avatar for SpS

Why in C++ passing a pointer is not termed as a parameter passing technique.....Is it because it has a flaw of some kind i.e. address is not reflected back/we can change the address in called function..is that so...if that's the reason....then we can pass it as const pointer as a …

Member Avatar for Ancient Dragon
0
189
Member Avatar for debe2000

I am learning the C++ program and need make a program which shows a simple graph with characters or more complicated bar graph. But I have no resource to learn it,somebody can give me a example about them? Thank you very much!

Member Avatar for Ancient Dragon
0
71
Member Avatar for mym

I need help with finding the minimum value of x but I can't seem to get the code right. Please Help. Noob :sad: [code] #include<iostream> using std::cout; using std::cin; int main() { int x; // x is the duration of the call double sum; int number; double average; sum = …

Member Avatar for kimw
0
192
Member Avatar for frank_hfc

is there an exception type in c++ like the NumberFormatException in java? i'm looking to use a try/catch to do type checking after a cin input from the user.

Member Avatar for Stoned_coder
0
670
Member Avatar for stupidenator

Hi everyone, I am writing a summation program for a programming class I am taking. The assignment's main purpose is to give me practice writing functions. I have gotten the functions down just fine, but I can't seem to figure out how to write the inside of the summation function. …

Member Avatar for stupidenator
0
294
Member Avatar for imest

I am using Visual C++ 6.0 and I am trying to use an if else statment but unable to resolve error. Here is the code: [code]/*--------------------------------------------------------*/ /* Program Homework 3_3 */ /* */ /* This program computes the roots of a */ /* 2nd degree polonomial */ #include <stdio.h> #include …

Member Avatar for imest
0
149

The End.