49,761 Topics

Member Avatar for
Member Avatar for shahid

I write a C++ program, which stores the information about of the company’s employees. First I create a class named as Employee having following attributes. 1: id 2:name 3: sal 4: address Take input of all the four attributes from the user using four different setter functions. Class has following …

Member Avatar for BruceWilson512
0
111
Member Avatar for akshayabc

I am using borland C++ compiler ver-3.0 for running C & in that range of char type is -127 to 127. Q1 In C, characters have ASCII codes in range 0-255. How can we print characters having ASCII code from 128-255. printf("%c",(unsigned)129); //it will still print the char having ASCII …

Member Avatar for Dave Sinkula
0
122
Member Avatar for oRg

Hi, I'm fairly new to C++. I've taken a class on it at a university but it really only went through the basic I/O, data structures, classes, and pointers. It wasn't very algorithm oriented. It was all very basic. Here's the problem a friend of mine needed help with his …

Member Avatar for oRg
0
423
Member Avatar for Dani

[font=Arial][b]Creating Executables[/b] Of course, the software on your computer isn't all a bunch of code in a high level language, at least not in the form you receive it in. Before you can run any programs which are written in C++ or Java, they must be compiled. Compiling is the …

Member Avatar for tamilblast
0
726
Member Avatar for NejiHyuuga

I need help organizing my program. In other words it need to be in a list. Example: [code]Degree Sin cos tan[/code] when it compiles the output is together: [code]DegreeSincostan0.000.3045[/code]...you get the idea. I need it to be organized. Where would i need to but a character for it to list …

Member Avatar for Dave Sinkula
0
137
Member Avatar for sunderam

HI, I have a vc++ project with all its files which includes -header files,& .dll files. I want to export these files to a unix system. i am sure i can do that, but i am looking for equivalent method for aligned aligned_malloc() in unix. aligned_malloc() is a vc++/windows method …

0
85
Member Avatar for evilsilver

<< moderator edit: split from [post=125942]this thread[/post] >> hey i got a question for you, how did you get the icon associated with your program? I have been looking for a way to do this, inside or outside the code.

Member Avatar for Electrohead
0
89
Member Avatar for curvan

Plz..................Have some one know how to use the C++ to solve the Map-Cloring problem using Hill-Climbing Algorithm>? mean; I need to develop a program to solve the Map-Cloring problem using Hill-Climbing Algorithm...This regarding the AI method... :cry:

0
67
Member Avatar for unirs_1972

Hi everyone I am new to C++ and I have read abt copy constructors from a C++ book but could not exactly get the concept. Can you please provide me with examples of when and how copy constructors are used.. Thanks in advance.....

Member Avatar for e215774
0
124
Member Avatar for gpta_varun

Hi All Can anyone plz suggest me a good site with C/C++ questions . I need them for an interview / test Thnx Varun

Member Avatar for indianscorpion2
0
155
Member Avatar for djbsabkcb

I have to write a program that reads in playing card values and translates them to the correct output. For example if a user enters:QS then the output would be a queen of spades. I am using a switch statement but how can I read the second character. Right now …

Member Avatar for djbsabkcb
0
279
Member Avatar for kreitcher

[COLOR=DarkRed][FONT=Courier New]Hi guys. I need to create a GUI in C++ and so I would like to know if some packages like GTK are available for windows. I did go to the GTK website but I swear I was lost! I really didn't know which files to download. I really …

Member Avatar for yeohhs
0
452
Member Avatar for karimkabbani

Hi... im kinda new to c++ but here goes. i made a class called team and one called game. i also made dynamic arrays of each. i figured out how to calculate number of games considering the number of teams. 3 teams, 3 games- 4 teams,6games- 5t,10g - 6t,15g- etc... …

Member Avatar for Dave Sinkula
0
228
Member Avatar for mlane

Okay im thinking of starting up a game! I want it to be 2D, so I think I'll be using Direct3D considering DirectDraw is outdated. I've been reading up and trying to learn a bit about DirectMusic, Direct3D, DirectInput, etc. and I've noticed I don't have DirectMusic! I have the …

Member Avatar for reddag426
0
128
Member Avatar for rehab

i am like a begginner in that(i need real help),i am having a project to do with c++ code ,and it's all done,but a bonus is given if we interface the programme. i only know visual basic ,and i was told that it's possible to use visual basic with c++ …

0
58
Member Avatar for loki73

I am trying to do a simple program, rather 3 simple programs that involve class structures in Visual Studio C++ .net 2003. I can compile them by themselves without errors. But when I F5 through them I get the following errors: 'test-proj.exe': Loaded 'C:\Documents and Settings\loki\My Documents\work\prog2\test-proj\Debug\test-proj.exe', Symbols loaded. 'test-proj.exe': …

Member Avatar for Dave Sinkula
0
226
Member Avatar for NejiHyuuga

I am making a list of trig functions by increments of 10 degrees and I dont have a complier. [code]include <iostream.h> #include <math.h> void main float degrees, Sin, Cos, Tan; cout << "Enter a number of degrees: "; cin >> degrees; cos = cos(degrees*180/3.14); cout << "Cosine: " << cosine …

Member Avatar for Dogtree
0
130
Member Avatar for Jeannie

I'm pretty new at C++ and I have a problem with a program that opens a file with a list of numbers and finds the median. My problem is, no matter what numbers are in the file, it always says the median is 1. I've been able to tell it …

Member Avatar for Dogtree
0
155
Member Avatar for mmiscool

If you would like to help in makin a basic interperter in C or C++ please send me an emai @ [email]mmiscool@[nospam]gamil.com[/email] remove "[nospam]" when emailing This project has a source fordge page and will hopefuly grow once some good programers join. I my self am no perficent in C …

Member Avatar for crazypitukillo
0
167
Member Avatar for alfa2

Please Check at this video I created So you can see what I did wrong LINK [url]http://www.freewebtown.com/pcgamers/index-flash.htm[/url] and go to the Download Section and Download My Second Error ! ! If the download doesn't appear Please Refresh the website of the download. Thanks for the Help :mrgreen:

Member Avatar for alfa2
0
205
Member Avatar for johnroach1985

Hi i am re-studying C.So I just wanted to do a simple calculator program.I am using dev-c++ anyways the code is below please help. [CODE] #include <stdio.h> #include <conio.h> /*its a simple program that after getting the numbers from the user and inputs the operation*/ int main() { int i=0; …

Member Avatar for johnroach1985
0
195
Member Avatar for Rodan

Hello World! (I couldn't resist that one...sorry :mrgreen: ) I am new to the boards and to programing in C/C++ over all. I hae tried for about 5 years to learn this code, but I was never really serious about it until the past week. Since this last week, I …

Member Avatar for Dave Sinkula
0
197
Member Avatar for nyyrule

This is the project that my teacher assigned for me The local baseball team is computerizing its records. You are to write a program using arrays that computes batting averages. There are 20 players on the team, identified by the numbers 1 to 20. Their batting records are encoded in …

Member Avatar for Rodan
0
149
Member Avatar for ocw

hi.. currently i have two image in my folder, how can i compare the two images for different based on the image pixel? or is there any other way which i could use to determined if the images are identical? (both images have the same size and resolution.) thus i …

Member Avatar for WolfPack
0
140
Member Avatar for Robert G

Passing Class Objects, Instances -------------------------------------------------------------------------------- I have a project creating a cartesian point, then a line segment, then a line comparison. Each has its own class .h and .cpp file. Main just starts the program to CartesianPoint test, in the point class. My question is after I create an instance …

Member Avatar for Dogtree
0
114
Member Avatar for crestaldin

:p [FONT=Comic Sans MS][COLOR=RoyalBlue]Hello , Ps I need someone to direct me to any site where I can get some challenging programming tasks that will enable me develop my C++ programming skills. I'm tired of reading books and tutorials and need to lay my hands on something practical this summer. …

Member Avatar for mmiscool
0
254
Member Avatar for Narue

Since C and C++ are different languages, would it benefit Daniweb to split the C/C++ forum into separate C and C++ forums?

Member Avatar for Electrohead
0
607
Member Avatar for elek

hey guys i did this program and its not working it worked for a while and then stopped so would someone please tell me whats wrong with it cause i have to do it soon. #include <conio.h> #include <stdio.h> #include <stdlib.h> void main() { char sentence[50]; int vowel_a; int vowel_e; …

Member Avatar for elek
0
180
Member Avatar for drock9975

I'm new to the forum as I've been surfing around for some previously posted help, but I just can't find it. So if anyone can help it would be greatly appreciated. I'm new to C++ and programming in general and I'm compiling on Microsoft Visual Studio .Net 2003. For a …

Member Avatar for drock9975
0
102
Member Avatar for elek

hey guys i got a problem with my program i cant get it to work properly. The question is: [COLOR=Purple]Write a C/C++ program to count the vowels and letters from the keyboard (maximum 50 characters). The string may contain spaces. Then it prints out the number of occurrences of each …

Member Avatar for elek
0
110

The End.