Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 19 of 19
Search took 0.00 seconds.
Search: Posts Made By: gamerfelipe
Forum: C Jun 26th, 2007, 2:28 PM
Replies: 3
Views: 174
Posted By gamerfelipe
My new program (not finished though): /* File...

My new program (not finished though):

/* File name: perimeter.c
* This program gets an inputed perimeter and fills it in using recursion */

#include <stdio.h>
#include "genlib.h"
#include...
Forum: C Jun 25th, 2007, 5:19 PM
Replies: 3
Views: 174
Posted By gamerfelipe
Filling in a shape

I have been having trouble with this program. It is supposed to get an input of stars as a "boundary" of a picture. It also receives a point inside of the shape that will be used as a starting point...
Forum: C May 27th, 2007, 10:45 PM
Replies: 5
Views: 226
Posted By gamerfelipe
Well, I didn't really need to use any field...

Well, I didn't really need to use any field specifiers to set up the triangle. This prints it out quite nicely:

/* File name: pascal.c
* This program displays Pascal's triangle */

#include...
Forum: C May 22nd, 2007, 7:51 PM
Replies: 5
Views: 226
Posted By gamerfelipe
So this is what I have so far. It does produce...

So this is what I have so far. It does produce the correct results but it does align to the left.

/* File name: pascal.c
* This program displays Pascal's triangle */

#include <stdio.h>

void...
Forum: C May 21st, 2007, 8:58 PM
Replies: 5
Views: 226
Posted By gamerfelipe
Pascal's Triangle

OKay, I've been working on this program for a while and I still can't get it. This program is supposed to display the first 7 rows of Pascal's Triangle. This is what I have so far:

/* File name:...
Forum: C Apr 29th, 2007, 4:12 PM
Replies: 10
Views: 413
Posted By gamerfelipe
alright, I'll see what I can do....

alright, I'll see what I can do....
Forum: C Apr 28th, 2007, 12:43 PM
Replies: 10
Views: 413
Posted By gamerfelipe
Actually I'm programming in C, not C++. The...

Actually I'm programming in C, not C++. The program has a .cpp because when I was using the function GetLine() it would come up with an error everytime I compiled it under longstr.c. I changed it to...
Forum: C Apr 28th, 2007, 11:55 AM
Replies: 10
Views: 413
Posted By gamerfelipe
Well, I haven't learned any arrays yet, but i...

Well, I haven't learned any arrays yet, but i think I solved the problem:

/* File name: longStr.cpp
* This program reads a list of strings and returns the longest one */

#include...
Forum: C Apr 21st, 2007, 6:39 PM
Replies: 10
Views: 413
Posted By gamerfelipe
Longest String

Okay. I have been working on this program for a long time. It is supposed to input multiple strings until the user types "end" and tells you the one that is the longest. If there are multiple strings...
Forum: C Apr 14th, 2007, 11:20 AM
Replies: 5
Views: 214
Posted By gamerfelipe
Well actually, house, car, and city aren't really...

Well actually, house, car, and city aren't really anything. They're just examples

Thanks for the input
Forum: C Apr 14th, 2007, 10:16 AM
Replies: 5
Views: 214
Posted By gamerfelipe
Switch statement and strings

Okay. I am a relatively new programmer here. I was wondering about the switch statement. Is it possible to use test a string in the switch statement like this:

switch(choice)
{
case 'House':...
Forum: C++ Feb 14th, 2007, 11:38 AM
Replies: 3
Views: 172
Posted By gamerfelipe
Okay, with a few adjustments, I got it. #include...

Okay, with a few adjustments, I got it.

#include <iostream.h> // included heading

char choice;
float sale = 0.00;

float totalsale (float s);

int main()
Forum: C++ Feb 13th, 2007, 7:35 PM
Replies: 3
Views: 172
Posted By gamerfelipe
Point-of-Sale

Hello! I'm kind of new to programming so please help. I have been working on a program that would present a menu so the user can choose what they wanted. Every time they chose something the program...
Forum: C++ Jan 7th, 2007, 7:53 AM
Replies: 18
Views: 351
Posted By gamerfelipe
Thanks Guys! Here we go: #include...

Thanks Guys! Here we go:

#include <iostream.h>

int divisor_count (int n);

int main()
{
int x;
int divisors;
Forum: C++ Jan 6th, 2007, 7:39 PM
Replies: 18
Views: 351
Posted By gamerfelipe
Okay this is as far as I've gotten: #include...

Okay this is as far as I've gotten:

#include <iostream.h>

int divisor_count (int n);

int main()
{
int x;
int divisors;
Forum: C++ Jan 6th, 2007, 7:07 PM
Replies: 18
Views: 351
Posted By gamerfelipe
Okay, how will I be able to keep track of the...

Okay, how will I be able to keep track of the number with the most divisors? Sorry if that was a newbie question.
Forum: C++ Jan 6th, 2007, 6:36 PM
Replies: 18
Views: 351
Posted By gamerfelipe
Okay, here is my program for finding the divisors...

Okay, here is my program for finding the divisors of 50

#include <iostream.h>

int i = 50;
int divisor;
int total;

main()
{
Forum: C++ Jan 6th, 2007, 6:20 PM
Replies: 18
Views: 351
Posted By gamerfelipe
Thanks guys, you all really helped! I'll post my...

Thanks guys, you all really helped!

I'll post my new results once I can figure it out.
Forum: C++ Jan 6th, 2007, 5:26 PM
Replies: 18
Views: 351
Posted By gamerfelipe
Finding divisors

Hi, I'm new here and I'm also kind of new to C++. For one of my exercises I'm required to find the number between 1 - 1000 with the most divisors. To start, I am trying to find the divisors of 1000....
Showing results 1 to 19 of 19

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:02 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC