48,985 Topics

Member Avatar for
Member Avatar for crq

hey folks, i have a template created that holds an array of type T elements. my problem is this ... i am converting this code from a souped up Array class that takes ints as it's elements to this template Array<T> class that will hold T elements. in the original …

Member Avatar for Narue
0
212
Member Avatar for Tester2

I would like to transfer a file from a server to a user for the user to read. I would like to be able to insure that the user can view, but not save or print the file. I am willing to write a user tool to enable viewing and …

0
87
Member Avatar for letmec

I love graphics programming through C & C++, I have worked a lot, but i am still very far away from bmp files, Can any one tell me how i can access bmp file through C, C++. Thanks in advance :rolleyes:

Member Avatar for dalaharp
0
556
Member Avatar for nicki7823

I did most of this program, but it has a couple of problems. Every time I get to the end of the program the Highest numerator is always five regardless of what I entered. The next problem is the Highest denominator entered does not show up. Instead a lot of …

Member Avatar for Dark_Omen
0
142
Member Avatar for trixiestrat

I got this assignment for school. I figured out most of it, but one part is really stumping me. The assignment tells you to have the user enter in a dollar amount between $0 and $100, and to give an error message if it's out of the range. I figured …

Member Avatar for Narue
0
141
Member Avatar for Robson85

Hi Iv'e almost completed this programme built for calculating a pilots fuel consumption on various flight distances. I have done most of it at college and now tried to execute it at home and there is an error. I am unsure whether it is just that my compiler is a …

Member Avatar for Dark_Omen
0
187
Member Avatar for compeat

hi! I have a problem about "[B]range of data types[/B] ".I work on program that require long digits .in "boland c++ 5.2 's help" range of long is [B]4294967295[/B] . but why this sample program doesn't work??!! [CODE] int main(){ long a=4294967295,b; b=a; return 0; }[/CODE] CAN YOU HELP ME? …

Member Avatar for Dave Sinkula
0
545
Member Avatar for xxraveteddyxx

I need some free-ware compiler information..i just need a c++ compiler thats decent..anyone that can help please let me know...thanks. :eek:

Member Avatar for eastgate
0
78
Member Avatar for iseekknowledge

i have read a few threads and am amazed at how much help you get here. I just started learning C++... anyway here is my delema i am working on a program that you have to enter a number but the seccond number has to be less that the first …

Member Avatar for Narue
0
93
Member Avatar for Khishin

I have just started using C++ after a year or two of a BASIC language, and I wanted to do something that required some logic, but not a lot of different commands. I decided to do a tic tac toe playing program where your opponent was the program. The way …

0
96
Member Avatar for Asif_NSU

I have written this program to convert a decimal number to a number of any base. The resulting number has been put into an array and so can be of any size. But the decimal number that i take as input is limited by the range of int. What i …

Member Avatar for Asif_NSU
0
158
Member Avatar for nico

hi everyone am trying to write a very small interactive program that 'thinks' of a number in the range of 0 to 99 and asks the user to guess it , problem is when i compile it (using devc++) I get errors (six to be exact) I don't know what …

Member Avatar for arifilipe
0
3K
Member Avatar for sid3ways s13

Hello everyone, I've been browsing this forum for small while and have gotten some great information out of it through searching so I thank you very much for that. Currently though I have a C++ program I have to write for class that inputs the full name of the student, …

Member Avatar for alc6379
1
936
Member Avatar for BIT_SAIKAPIAN

Hi everyone, I have done BIT, but in other words I completed it just to have degree not as a career. But now I am very much interested in it to take it as career. I have set a goal of 6 months to do best learning c++ and java …

Member Avatar for jwenting
0
109
Member Avatar for crq

in working on this pgm, i have made notes to myself ... questions that keep popping up. if anyone wants to clarify some of these concepts for me .... 1. are TRUE and FALSE keywords? if a method says return (TRUE); will it work? 2. const on END of method …

Member Avatar for 1o0oBhP
0
142
Member Avatar for inderjeet singh

HI, I m using VC++ editor for C programming and i want to move cursor one row up in my terminal window. I have tried interrupt using Inline assembly but when i execute the programm Error comes "access voilation " . I m using Windows XP OS. What should should …

Member Avatar for 1o0oBhP
0
119
Member Avatar for Acidburn

Hello, Can anyone point me the direction of getting a linux verision that comes with a .cpp compiler? so you enter gcpp filename.cpp which compiles the code and runs it in a konsole? I've got mandrake and Suse siting here.... Cheers

Member Avatar for kc0arf
0
186
Member Avatar for seeplusplus

Hello, i have to write a program using C++ that will store 3 characters into 3 variables, and using pointers i have to rearrange the order in a function. so if c1, c2, c3 have the value 2,4,6....using pointers i have to switch the values of c1, c2, and c3 …

Member Avatar for Chainsaw
0
141
Member Avatar for crq

ok, here's the scenario (and maybe i will finally get this assignment finished) ... i have a class IntArray. at the moment i have it all in a .C file. i have a little main section that has minimal testing in it (will do something more formal later). my prof. …

Member Avatar for crq
0
810
Member Avatar for dazednconfused

I am trying to teach myself C# and I have run into a problem with one of the chapter assignments. The problem is as follows: Create a class named *City*. Objects will be instantiated from this class. Include fields that hold the *City's* name, its state, and its population. Include …

Member Avatar for dazednconfused
0
155
Member Avatar for crq

in the skeleton code that my instructor provided, he has some assert (boolean statement) calls. is assert a keyword in C++ and is it a built-in method ...? do i need to put something at the top of my code to make sure it is called? at the top of …

Member Avatar for Narue
0
119
Member Avatar for crq

i have been working on this all DAY LONG. i am new to C++ and Unix and need to write this little tiny code in both. i am tripping all over myself with references and dereferences and operator overloads .... if anyone could help me decipher what my problem(s) are, …

Member Avatar for Narue
0
154
Member Avatar for oldroad

I need to extract the middle numeric number. It works for two order of numbers, for example: when I enter the numbers in this order 12, 14,6 it works...when I enter in this order 12, 6, 14 it works as well, but when I enter in this order 14, 12, …

Member Avatar for oldroad
0
1K
Member Avatar for crq

hi, i am REALLY new to C++ and don't really understand much of anything about the pointers and references and the way the files are set up. HOWEVER, i have an assignment to do that SHOULD help me get a grasp on some of the key concepts before we go …

Member Avatar for jwenting
0
85
Member Avatar for oldroad
Member Avatar for oldroad
0
56
Member Avatar for JoBe

Hello ladies and gents, I'm trying to write this little program in wich I have to enter by keyboard a certain amount of numbers (int) not floating points, and the program must count how many [U]different [/U] numbers I have entered, when the amount is equal to ten, it must …

Member Avatar for JoBe
0
810
Member Avatar for Tester2

I am seeking to learn C++. I am using the complex base class as source for this learning, by trying to adapt it to a template class. I am calling this class "plexmath". My effort follows ,but does not compile. I would like to retain the "protected" status of the …

Member Avatar for Narue
0
280
Member Avatar for jeanatkin

Hi again. I'm here to [I]wreck[/I] your world. Just kidding. How's your new year, all of you? Going on swell? Eid Mubarak to all Muslims. Bypassing the small talk, I'm here to query you on a doubt I have in dynamic initialization. As I have learnt in school (correct me …

Member Avatar for Narue
0
109
Member Avatar for kosham

Hello i need help creting a class using an accessor funciton and a mutator function. Problem objective: i have to desing a general C++ class that will be used to represent "Building" objects, and meets the following criteria: 1. each building object has a number of rooms(integer value) 2. each …

Member Avatar for Narue
0
155
Member Avatar for menis2com

Using C++, Can you take a variable from a text file to use in an if, then statement? As in, your program reads a text file from line, say: 5 column 8 to get the number, say: 1. Then use that number like: If 1 then change to 2 and …

Member Avatar for Chainsaw
0
73

The End.