49,761 Topics

Member Avatar for
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
149
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
306
Member Avatar for Pačo
Member Avatar for Pačo
0
95
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
113
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
167
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
108
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
110
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
143
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
317
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
100
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
144
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
247
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
81
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
500
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
943
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
88
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
250
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
120
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
141
Member Avatar for unikiller

I've been working on this class for about 2-3 weeks and I got everything done except the reducing part. I can't figure it out , I know you have to use the GCD algorithm , but I cannot figure out how to use it :o , Can someone please tell …

Member Avatar for siddhant3s
-1
109
Member Avatar for AnthIste

Hello there. I am very new to C++ and still rather new to programming (Im only in high-school). I am trying to make a decision based game that runs in a cli to just get going with the language syntax somewhat. So far the game is working, and I made …

Member Avatar for Sturm
0
165

The End.