48,985 Topics

Member Avatar for
Member Avatar for asn_vasan

difference between c and c++ languages difference between templates and class,structures in c language and class and structures and templates difference between java and c++

Member Avatar for Narue
0
146
Member Avatar for udai_friends

Respected Sir, I'm a student of class XII in a school in Roorkee,India, and we have to do projects on C++. I chose the Medicine Store as my topic. I 've divided it basically in 2 parts- 1. a database maintaning the records of medcines and other details regarding each …

Member Avatar for alc6379
0
137
Member Avatar for HinJew

I have to write a program that takes temperature in celsius (if in farenheit, it converts it to celsius) along with the windspeed and calculates the windchill. I have the program written but I can't figure out what I'm doing wrong in lines 63 and 75. Any help would be …

Member Avatar for Chester1
0
88
Member Avatar for chound

I want to break the loop if the user does not enter any value. How do I do that. [CODE] #include<iostream> using namespace std; int main() { int a=1; while(a!=NULL) //how do i phrase this. When the user does not enter any input //I want the loop to exit cin>>a; …

Member Avatar for jasweb2002
0
94
Member Avatar for coolmel55

Ok I wrote this program a while ago and it just counts the line, now I need to modify it to these requirements: Count the total program LOC, the total LOC in each object the program contains, and the number of methods in each object. Produce a single LOC count …

0
71
Member Avatar for jasweb2002

I asked this before but didn't get an answer so I went to talk to my "professor" and he just about made me want to quit programming :( . So a little help would go great lenghs to salvaging this day. Basically I have to right a program that reads …

Member Avatar for jasweb2002
0
98
Member Avatar for willow

New to C++ programming. I am supposed to write a program that will ask the user if they want to print an ascending or a descending triangle. Based on user input, print the triangle on the screen. Only one cout statment may be used and it has to read: cout …

Member Avatar for Dave Sinkula
0
1K
Member Avatar for chound

I'm using Xp. I wan2 kno wat function in cpp 2 use 2 [SIZE=4]HIBERNATE NOT SHUTDOWN[/SIZE]

Member Avatar for chound
0
294
Member Avatar for deedlit21

Hello, when i try to compile this program (it has three parts) I receive an error message that confuses me. Below are the code and error message. [code] #include <iostream> using std::cout; using std::endl; #include "Complex.h" int main() { Complex x(2, 3), y(4, 5), z; x.printComplex(); cout << " + …

Member Avatar for deedlit21
0
176
Member Avatar for Dragon Master

I can't get SDL to work with Dev-C++ Here's what I've got: - Dev-C++ version 4.9.9.0 I downloaded SDL from [url]www.libsdl.org:[/url] (SDL 1.2) Under runtime libraries I picked: - SDL-1.2.7-win32.zip Under developement libraries I picked 2: - SDL-devel-1.2.7-VC6.zip - SDL-devel-1.2.7-mingw32.tar.gz After copying both "include" and "library" files into Dev-C++'s "include" …

0
79
Member Avatar for tj

Hello all....I can't seem to figure out why the min value won't display correctly. Could someone please critique my program with out actually giving me the code. I am so happy that I finally got my loop to work! I've been working on this all evening. It is a great …

Member Avatar for chound
1
249
Member Avatar for the b

Hi, I need to write a program that asks for a series of numbers, and when 0 is entered I need it to display the following: the number of integers in the series the average of the integers the largest and smallest integer the difference between the largest and smallest. …

Member Avatar for the b
1
124
Member Avatar for aviral82

hi all i need help i have to make path along a line with minimum 4 coordinates in c++ the problem arise when the angle is very acute. the problem is that i have given 4 coordinate points and the width of the path . Along the line which i'll …

0
80
Member Avatar for dallascowboys

hello.... i am currently using MS VISUAL STUDIO 6.O to complete my c++ assignment. i have my source code and the header file so that i can attempt to run my program. My question is what exact steps do i use to link my source code and header file together …

Member Avatar for Narue
0
154
Member Avatar for pratima

The population of rabbits on a small island in Poole harbour is being monitored. there are curently 495 rabbits on the island. It is estimated that the population will grow by 20 % a year until the population exceed 1000, after which the growth ratewill be 10 % a year.write …

Member Avatar for Dani
0
200
Member Avatar for pobrien11

Hi, I am completely lost on a program assignment. We are to use the stl stack adapter class. The elements of the stack are linked lists which represent polynomials. So in essense it is a stack of linked lists/polynomials. Note I'm NOT trying to make the stack itself a linked …

0
86
Member Avatar for lindsay867

For my computer lab class we were given a program with an infinite loop, and I am unsure what to do. Here is the program. #include <iostream> #include <string> using namespace std; int main() { int Total; // running sum of the fraction total int n; // number of fraction …

Member Avatar for felgall
0
124
Member Avatar for billski

Hi everyone, I am new to C++ (2nd week of classes) I wrote this code in c++ for a project and the instructor wants it as a Class instead. I thought they were both almost the same, but I am having a heck of a time getting it to a …

Member Avatar for billski
0
320
Member Avatar for JoBe

Hello ladies and gentlemen, This is the program: /* berekening_kapitaal.cpp : Defines the entry point for the console application.*/ #include <iostream.h> void main(void) { short int per = 0, tijd = 0; float begink = 0, interest = 0, perc = 0, tot_int = 0, eindk = 0, kapitaal = …

Member Avatar for JoBe
0
183
Member Avatar for tj

Hello everyone I am knew to the site and new to programming. I am currently taking a C++ class. Everything in the text looks greek to me....Don't worry I am not going to ask how to do my hw.....Does anyone have any advise on the best way to learn and …

Member Avatar for anthmaina
1
267
Member Avatar for raar

hi, i need help in coding the LZ77 & LZ78 techniques in data compression. if anyone can help me PLZ tell me cause i'm facing some problems thxxxxxxxxxxx

Member Avatar for Chainsaw
0
129
Member Avatar for vivekgalatage

Hello, Is there any tool which will detect the unused methods of a class in a C++ project? So by using this tool I can reduce my build size by eliminating the un used methods.

Member Avatar for Chainsaw
1
149
Member Avatar for fahad

Any one working in the field of data mining ??? I need to discuss some issues about it. I need to write c++ code for some algorithms used in data mining.

Member Avatar for fahad
1
80
Member Avatar for scott_6169

Can you please tell me why I get an error message while trying to run this program?? #include<stdio.h> int main( ) { printf("Hello %s World""SBL"); return 0; }

Member Avatar for kc0arf
0
114
Member Avatar for kohkohkoh

[color=red]1. I wonder whats the problem. Has no error and warning.. but can not sort names. Why? Whats the mistake(s)? "red color"[/color] [color=blue]2. why if i use [color=mediumturquoise]tolower[/color] the character.. got problem...whats the problem? "blue color" [/color] thank you in advance... [font=Comic Sans MS]#include <iostream> #include <string> using namespace std;[/font] …

Member Avatar for kohkohkoh
0
124
Member Avatar for VicLopez

#include <iostream> void main(void) { int= toys toys= 62 int= dolls dolls= 99 total= toys+dolls } cout <<"We have about" << toys<<dolls<< end; This is the program I came up with so far.

Member Avatar for C#Coder
0
201
Member Avatar for caffiene_junky

I have recently downloaded Dev C++ software and have been exploring the different header files. I wrote this very simple program (it had like 35 characters total) and every time I go to compile it I get a "Found Virus" alert. The thing that really gets me is that this …

Member Avatar for caffiene_junky
0
161
Member Avatar for lakessler1

I am in a C++ class and find myself struggling with creating functions that use letters. I have to write out two sentences to the screen. But the assignment is create one function for each letter, space, carriage, return, and punctuation mark. Each word output is controlled by a function …

Member Avatar for Chainsaw
0
159
Member Avatar for Kiwiman

Hi everyone, I'm doing a beginners C++ paper at Uni and I'm stuck. Basically I need to read data from a file and then display it on the screen. So far I've got: Correct headers will be called..... int main(){ char filename[30]; FILE *in; printf("Enter file you wish to open\n"); …

Member Avatar for Dave Sinkula
0
252
Member Avatar for sarahrasheed

write a c++ program that will be used in a grocery store.the program reads a whole change amount in dirhams and prints how many 500 dirham bills,200 dirham bills,100 dirham bills ,50 dirham bills ,20 dirham bills ,10 dirham bills 5 dirham bills ,and 1 dirhams coins should the cashier …

Member Avatar for fahad
0
223

The End.