49,766 Topics

Member Avatar for
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
85
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
91
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
152
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
131
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
265
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
151
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
47
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
308
Member Avatar for Pačo
Member Avatar for Pačo
0
98
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
115
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
72
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
169
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
111
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
166
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
113
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
146
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
319
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
146
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
86
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
508
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
90

The End.