Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #2K
~9K People Reached
Favorite Forums
Favorite Tags
c++ x 33

18 Posted Topics

Member Avatar for BLKelsey

what is string::npos for? help says it's a static const basic_sting , generic bad/missing length/position

Member Avatar for emotionalone
-1
114
Member Avatar for nuubee

Here's the code XD [code] #include <iostream> using namespace std; int main() { int numbers[10]; int poscount=0, negcount=0, totalcount=0; cout << "This program accepts 10 integer numbers, the returns the sum of all positive\n"; cout << "numbers, the sum of all negative numbers and the sum of all the numbers." …

Member Avatar for piyota
0
4K
Member Avatar for joed13k1941

My first unit using iostream XD [code] #include <iostream> #include <string> using namespace std; int main() { string softserve, topping, sprinkles; string order; do { cout << "Do you want chocolate, vanilla or twist?" << endl; getline(cin, softserve); } while( (softserve!="chocolate") && (softserve!="vanilla") && (softserve!="twist") ); do { cout << …

Member Avatar for star4ker
0
446
Member Avatar for 666kennedy

I think I understand your first post now and the logic would go something like this. [CODE] I have a multidimensional array of 16 rows and 60 columns per row called 'weights'. I have an array of 16 rows called 'error'. I assume the first element in the 'error' array …

Member Avatar for 666kennedy
0
187
Member Avatar for emotionalone

I need to create a Space Invaders kind of game and I have a demo I need to copy the main features from. The invaders have to be of at least 3 different types and they change color. So I figured the invaders are 3 child classes from a parent …

Member Avatar for cikara21
0
227
Member Avatar for number87

Not sure of what you want to accomplish here. This piece of info might help getting the same results using a different method.

Member Avatar for number87
0
553
Member Avatar for Oblique

First of all, sorry for thread hijacking ;) I too need to create a Space Invaders kind of game and I have a demo I need to copy the main features from. The invaders have to be of at least 3 different types and they change color. So I figured …

Member Avatar for emotionalone
0
130
Member Avatar for DragonReborn225

You were also missing a bracket here and there You also didn't need addresses when passing the values of a, b, c and d You might not want the code but I did it anyway cos it's fun. [code] #include <iostream> #include <string> using namespace std; void menu(int a, int …

Member Avatar for emotionalone
0
475
Member Avatar for joed13k1941

Might be something like this [code] switch(sign) { case 11: { //lines here break; } case 22: { //lines here break; } . . . default: { } /*In the default's brackets, you should have what the control structure, switch(), will do if the variable, 'sign' in this case, doesn't …

Member Avatar for joed13k1941
0
118
Member Avatar for FtKShadow

May you please PM me the entire assignment? I like these kind of game problems ^^. I would ask for you to post it but I don't think that's what you're here for. It may also help me understand the problem more in depth and help if I can.

Member Avatar for FtKShadow
0
160
Member Avatar for afg_91320

Using dynamic memory allocation, you can come up with this: [code] #include <iostream> #include <alloc.h> using namespace std; int main() { int nstores, *sales; cout << "SALES BAR CHART" << endl; cout << "---------------" << endl; cout << "Enter the number of stores: "; cin >> nstores; sales = (int …

Member Avatar for afg_91320
0
283
Member Avatar for Liszt

I've worked a little with files at school and from what I've gathered, to actually go to the end of the file you need to know how far that is from the beginning of the file either before hand or calculating it. This is not a problem with bit files …

Member Avatar for Liszt
0
163
Member Avatar for VBNick

Might have to disable the UAP (User... something) and the other automated-application-running tool Vista's got. Go to User Management and disable that. then hit windows key + the pause key Then go to errr... I don't remember off hand, something about applications. If you can't find it or get it …

Member Avatar for VBNick
0
228
Member Avatar for mrrko

I was able to come up with this [code] #include<iostream> using namespace std; int main() { double newn; char ans; do { cout << "This is a program that will help you find all the prime numbers between 3 and 100." << endl; cout << "Theses numbers are: " << …

Member Avatar for VernonDozier
0
155
Member Avatar for champ80

Use code tags please. That kind of post is a real bitch to format properly for a clearer view. =3

Member Avatar for emotionalone
0
586
Member Avatar for ae012

I would solve that as follows: [code] #include <stdio.h> #include <stdlib.h>] #include <conio.h> void main() { int **Registry; int nScholars; int i,j,sum=0; char *aux; do { printf("Enter the number of scholars: "); scanf("%d",&nScholars); }while( nScholars<0 || nScholars>100); Registry = (int**) malloc(sizeof(int*)*nScholars); if( Registry==NULL ) { printf("Error!"); getch(); return; } randomize(); …

Member Avatar for emotionalone
0
260
Member Avatar for emotionalone

Hello, I'm trying to simply copy the text from one .txt and create a new one and copying it to a new txt. I'm actually adding more text to that new file but that's not the part I'm having problems with. I could go through the entire .txt with this …

Member Avatar for Ancient Dragon
0
512
Member Avatar for scottlpool2003

No need to convert into strings. Try this [code] #include <iostream.h> #include<stdio.h> #include void parking() { int S_TIME,E_TIME,time_mins; cout<<"Please enter call start time\n\n"; cin>>S_TIME; cout<<"\n\n"; cout<<"Please enter call end time\n\n"; cin>>E_TIME; if( (E_TIME-S_TIME) > 0 ) time_mins = (( (E_TIME - S_TIME)/100) - 1 ) * 60 + ( 60 …

Member Avatar for emotionalone
0
123

The End.