51,593 Topics

Member Avatar for
Member Avatar for fcleme

I am trying to relearn C by going through the K&R exercises (I have the first, non-ANSI, edition...that's how long it's been since I last programmed in C under Unix as a software engineer). I have Visual C++.net version 2003 on a Windos XP computer. I would prefer to continue …

Member Avatar for Ancient Dragon
0
137
Member Avatar for koolboy

i have written the following code. the problem is when i run (F9), i dont see my output neither do i see any error in the program. any idea why? thx in advance. empId: an array of seven long integers to hold employee identification numbers. hours: an array of seven …

Member Avatar for Ancient Dragon
-1
138
Member Avatar for toolmanx

I don't know if I am the only one having trouble with StretchBlt or if my symtom is a normal situation. StrechBlt works fine as I zoom the picture larger. I expect the pic to loose quality if I zoom out too far. My problem is: As I zoom smaller, …

0
135
Member Avatar for still_learning

Alright, I am back and I have a new program that I have been working on all day. It's funny because I'm sure most of you guys could do this in 1 minute. But as I said before I am 49 years old and do not use computers, just trying …

Member Avatar for WaltP
0
129
Member Avatar for liphoso

I have to write five function which i do not have to put in "main" but have to call inside main. i hade come up with a code which did not work and was incomplete but i was futher told i have to use global variables and not local variable …

Member Avatar for WaltP
0
130
Member Avatar for DREAMER546

hello .. please i need ur help in this .. i have this exercise .. 1. Define the following data member: a. fahrenheit_temp of type float. b. celsius_temp of type float. 2. Define a constructor that: a. Set the default value for the data member to zero. b. Call set …

Member Avatar for DREAMER546
0
302
Member Avatar for manisha_das

[QUOTE=krnekhelesh;454927]got it... Windows XP[/QUOTE] Hi , Do anyone have any idea regarding the oracle APIs, i am using the APIs os oracle 7.3 client library and i want to make it unicode compatible without changing the APIs, but by just making datatype conversion,is it possible???

0
49
Member Avatar for guaild

Hi everyone, this is my first post. I'll try to be concise. It's been a while since I've worked with C++, since I usually work in Java. I'm writing a program that I want to have run in the background while the system (Windows XP) starts up. But I want …

Member Avatar for guaild
0
322
Member Avatar for kahilw

[COLOR=#000000][B]Hello I am asking for help with this question that I have. I have tried to to find the solution for this but I have had no luck, please help [/B][/COLOR] [COLOR=#000000][B][/B][/COLOR] [COLOR=#000000][B] [/B][B]Analyze how the principle of [/B][B]const[/B][B]ness of objects can be violated or circumvented by using ordinary read/write …

0
62
Member Avatar for JavaGuy147

Hey, I'm making a very simple program to find out how many months it would take to pay off credit card debt [code=C] // Calculate Credit Card Debt and How long it would take to pay it off #include <iostream.h> using namespace std; int main(void) { double Debt, APR, MinMonthPay; …

Member Avatar for Ancient Dragon
1
244
Member Avatar for eranga262154

Hi all, I create a database on SQL 2005 Express edition and link it to a C++/MFC application as follows. It wont gives any compile time errors. But at run time, it gives an error. Here are details. Link the database in OnInitDialog() here is the code [code=c++] BOOL CSRFDBDlg::OnInitDialog() …

Member Avatar for eranga262154
0
113
Member Avatar for step2stepgirl

I need help to understand what I'm supposed to do in this question I'm not asking for a code what I need is explanation thanks a lot write a function template that returns the range of values stored in a vector <T>that is the difference between the largest value and …

Member Avatar for Duoas
0
77
Member Avatar for step2stepgirl

I need to modify this program (complete missing functions and anything that must be added) . I'll post my attemps and i want to know if it's correct and if there is any thing missing and need to be done . thanks in advance [code]#include <iostream.h> class point{ int x,y; …

Member Avatar for Duoas
0
90
Member Avatar for zandiago

So far this is what I have: [CODE] #include <iomanip> #include <cmath> #include <fstream> #include<string> #include<iostream> using namespace std; int main() { ifstream infile; ofstream outfile; infile.open ("Wordcalc.txt"); outfile.open ("WOutput"); char A = (1*2.0);//value for letter A char C = (3 - 20.4); char D = ((4/12.0) *3.09); char E …

Member Avatar for Ancient Dragon
0
501
Member Avatar for still_learning

Is this an example of a recursive function?? Somebody on another forum helped me put this together, as I am trying to make a diamond shape out of asterisks. But he did not know if this was a correct way of using recursion. Can somebody just tell me yes or …

Member Avatar for WaltP
0
172
Member Avatar for bran-chua

Question : Phonebook Write a phonebook program that can be used to save your contact list (like what you have in your mobile phone). The program should have the following features : •Displaying all the contact records •Save new contact into the list •Delete contact from the list •Search for …

Member Avatar for WaltP
0
174
Member Avatar for chizy2

I had this for classwork and was able to get it to work.. is there a better way to do the right alignments for the cost columns?? When I turned this in, the output returns right, but I was told there was an easier way to get them to align …

Member Avatar for chizy2
0
200
Member Avatar for swarbricke

I'm starting school next year at ITT Tech for programming in visual C++ and I'm hoping to get an early start. I have Visual Studio 2003 ver 7.1 and I dont' know ANYTHING about it! I was hoping for a link to a step by step web page that can …

Member Avatar for chizy2
0
86
Member Avatar for jobi.tv

hi friends, I don't have c++ software. plz give me the c++ s/f and tell me the link........

Member Avatar for WaltP
0
93
Member Avatar for jared0029

I have been assigned to create a program to simulate a soft drink machine. The following structure is supposed to be used to store the following data: Drink Name Drink Cost Number of Drinks in machine I am suppose to create an array of five structures and initialize the elements …

Member Avatar for Ancient Dragon
0
153
Member Avatar for Likezo

I am new c++ programmer. I looked at the code for the "bouncing ball" which was said to be "hello world" of Win 32. I have been trying to do the following: 1. Make the this ball move in a predefined rectangle (one ALREADY drawn) even before the ball starts …

Member Avatar for Likezo
0
133
Member Avatar for JesseQ

ok here is my code [code=C++] #include <iostream> #include <ctime> using namespace std; int main(void) { char cName[81] = "", cUser[9] = "", szComp[9] = "", szr[5] = "Rock", szp[6] = "Paper", szs[9] = "Scissors"; int cComp = 0; srand(static_cast<unsigned int>(time(0))); cComp = rand()%3; if (cComp == 0) strcpy_s(szComp,szr); if …

Member Avatar for twomers
0
269
Member Avatar for dgr8lord

Please write me the code!!!!!!!! Q. Write a function that will scan a string for theoccurence of given substring. The prototype of the function would be: char *substr(char *string1, char *string2); The function must return a pointer to element in string1 where string2 begins. If string2 doesn't occur in string1 …

Member Avatar for stymiee
0
89
Member Avatar for sugarflaps

hi i am having trouble creating a series if triangles the number of triangles depsned on the users inout here is what i have so far any help would be great i ahve been at this for days. i know its the loop but i just cant see the problem. …

Member Avatar for vmanes
0
79
Member Avatar for grunge man

i keep hearing about thees things called arrays but i never now what they are and are they used as much as classes?

Member Avatar for shuncyk
0
152
Member Avatar for gadege

In wdb gui the next button is not working. The only way i have to go to the next satament is stepinto button. can any body please help me in this.

0
48
Member Avatar for gadege

time = Tue Oct 23 06:36:57 2007 signal = 11 errno = 0 ( 0) 0x0007ca6c savestack__Fi + 0xd8 [/opt/langtools/bin/wdb] ( 1) 0xc020bfe0 _sigreturn [/usr/lib/libc.2] ( 2) 0x0015e1f4 change_mark__17AnnotationDisplayF8AnnoKindbUiN23T2 + 0xb4 [/opt/langtools/bin/wdb] ( 3) 0x0015f048 _display_anno__17AnnotationDisplayFP11AnnoWrapperb + 0x84 [/opt/langtools/bin/wdb] ( 4) 0x0015ed5c removeAnno__17AnnotationDisplayFP11AnnoWrapper + 0x24 [/opt/langtools/bin/wdb] ( 5) 0x001309cc clearErrAnno__11WSourceViewFv …

0
32
Member Avatar for pyramid

I need to write two functions to calculate the speed and the $fine for over speeding. The formula I need to use is: V = c * (W0 – W1) / W0 I wrote the function to calculate the speed, but the results are incorrect, using the formulas below. V …

Member Avatar for pyramid
0
309
Member Avatar for Pačo
Member Avatar for Pačo
0
99
Member Avatar for Jobe007

Ja-ja I'm new to this c++, BUT egger to learn. I want to write a program that will cout all the odd numbers between 6 and a positive integer.It must also be bigger than 53. This is what I came up so far but it doesn't give any output : …

Member Avatar for WaltP
0
117
Member Avatar for eranga262154

Hi all, Can you guys explain how can I connect a SQL database to a C++ application(actually my application is a MFC) through ADO.Net I've use Visual Studio .Net 2003 and SQL Server 2005 Express edition(because I work on WinXP) If you guys have a simple example, its better to …

0
75
Member Avatar for prushik

This is my function for triangular collision checking. ship[i].x1 ship[i].x2 ship[i].x3 ship[i].y1 ship[i].y2 ship[i].y3 Are all integers missile[j].x missile[j].y Are doubles PI is a constant equal to 3.14159265 Everything compiles correctly, but for some reason a1, a2, and a3 all end up being equal to 0 Is there something wrong …

Member Avatar for prushik
0
173
Member Avatar for koolboy

hi all, I need a little bit of help. heres my problem. if someone can help me get started, tht would be really wonderful. many thx in advance. there are 7 different numbers are given which are emplyee identification number. The program should display each employee number and ask the …

Member Avatar for prushik
0
113
Member Avatar for jireh

is there any sample here about connecting to any database? sorry dnt have time to browse, hope you understand, thanks!

Member Avatar for jireh
-2
168
Member Avatar for ecntrader

Greatly appreciate if any one can help me with this small programming challenge for a newbie. Write a program segment with a do-while loop that asks the user to enter a number. The loop should keep a running total of the numbers entered and stop when total is greater than …

Member Avatar for ecntrader
0
6K
Member Avatar for dblbac

I have the following program, but what do i need to change in order to get it to output to a file? any help would be greatly appreciated. thanks [code=cplusplus] #include <iostream> #include <iomanip> #include <string> #include <fstream> using namespace std; string employeeFirst, employeeLast; double gross; double federal, state, ss, …

Member Avatar for dblbac
0
116
Member Avatar for pacman326@gmail

Hi guys. I have been working on this program for HOURS, remind me to never try to code something like this in a straight amount of time ever again. Anyways, the program is the same game basically, except it not only shifts numbers down, but left too. [code=cplusplus] #include <iostream> …

Member Avatar for pacman326@gmail
0
149
Member Avatar for n.aggel

hi, i am having a project where i must implement a method that takes measurements(random numbers) on specific time intervals.This means that i should read (for example) a number every 5minites...I ve been told for a sleep function but i can't find any info about it....Any thoughts on how i …

Member Avatar for HLA91
0
320
Member Avatar for wilhelm08

[QUOTE=Dave Sinkula;50119]With regard to C++ books, I'll just echo the advice [url="http://groups.yahoo.com/group/c-prog/message/37324"]here[/url]. [/list]Proper credit: [I][B]vawjr[/B][/I], who now has [url=http://rudbek.com/books.html]this[/url] posted. The following is also recommended. [url=http://www.amazon.com/gp/product/0321113586/104-4591760-2338363?v=glance&n=283155]C++ Coding Standards : 101 Rules, Guidelines, and Best Practices[/url], Herb Sutter, Andrei Alexandrescu Book reviews can also be found at [url="http://www.accu.org/bookreviews/public/index.htm"]www.accu.org[/url]: [url="http://www.accu.org/bookreviews/public/reviews/0sb/beginner_s_c__.htm"]Beginner's C++[/url].[/QUOTE] I'm …

Member Avatar for Salem
0
102
Member Avatar for lrnzsmok1

Hey i wrote this program but im getting some type of error in one of the lines of my code. This program is suppose to add, subtract, and print the complex numbers. I wont type out the whole assignment but this is basically what it does. I'll really appreciate it …

Member Avatar for Ptolemy
0
148
Member Avatar for aus_fas1

Hi, I am writing an array data to a file. The data I am getting is from some sensor and need to be written in real time. I have manged to write it but I am having problem when I try to read it, as I cannot position the pointer …

Member Avatar for aus_fas1
0
249
Member Avatar for jamesny89

Hey guys, I am writing a program with functions that does different things for a user. This is a program i am writing for school and my lab teachers are horrible at helping us. The problem is that i get an illegal case error for all my cases (five cases). …

Member Avatar for zandiago
0
87
Member Avatar for wenny86

this is the one I tried.. but it just can store digit up to 9... I need to store large number. can anyone help me?? [code]#include <iostream> #include <assert.h> #include <cctype> #include <cstdlib> using namespace std; #if !defined STACK_H #define STACK_H const int maxStack = 100; class IStack { friend …

Member Avatar for siddhant3s
0
3K
Member Avatar for cwarn23

I have found a program and tried using 'DEV C++' but it only reported an error report. I later then discovered that is was because 'DEV C++' used C++ when the code was designed for just plane C. I have searched the web and this forum but only found two …

Member Avatar for Kocmotex
0
515
Member Avatar for twooften

I do not want to misguide anyone responding, I am a newbie to the C++ arena. I am just doing little starter programs to figure things out, but for the life of me I don't get the whole hInstance thing. The objective I have is to learn C++, write a …

Member Avatar for twooften
0
1K
Member Avatar for wenny86
Member Avatar for addicted

hey, I am a beginner in c++ and i think i have learnt a little about how the program functions... I have been able to write programs that can run only in the DOS mode and i cant even write a windows application but i now understand the program a …

Member Avatar for Ptolemy
0
93
Member Avatar for death_oclock

So I have this code (the unnecessary parts omitted): [CODE=c++] #include <stdio.h> #include "scene.h" int main() { while(1); return 0; } [/CODE] And another file in the project called "scene.h". When I compile, I get these errors: [CODE] new types may not be defined in a return type extraneous 'int' …

Member Avatar for death_oclock
0
252
Member Avatar for HLA91

Hi all I am using a tutorial on youtube[URL]http://www.youtube.com/watch?v=sIy3oOguh_0&mode=related&search=[/URL] and it is going well apart from I can't compile the latest program, a calcualtor my compiler (devC/C++) keeps highlighting the endl; near the end of the code, i have placed a comment above it. I have checked the video many …

Member Avatar for HLA91
0
123
Member Avatar for Max_Payne

How can i make a string that will allow me to Use Spaces between the words ??? This code only allows me to post words without spaces. [code] cout << " Enter the Name of Employee # " << i+1 << ": "; cin >> N; myClass[i].setName( N ); [/code]

Member Avatar for Max_Payne
0
145

The End.