Search Results

Showing results 1 to 9 of 9
Search took 0.02 seconds.
Search: Posts Made By: gregorynoob
Forum: C++ Oct 28th, 2008
Replies: 8
Views: 944
Posted By gregorynoob
ehh, now i'm confused... it would be helpful to see some code you've done already, but this is my suggestion: don't use a stack. it's a maze... a pretty straightforward graph. if you know where you...
Forum: C++ Oct 10th, 2008
Replies: 19
Views: 1,512
Posted By gregorynoob
you can access them by memory addresses... so the integers should be given addresses that are consecutive. could count as pointing really.
Forum: C++ Oct 6th, 2008
Replies: 12
Views: 1,407
Posted By gregorynoob
i still don't really get it... if the input is in shape of (ax+b)(cx+d) you can easily solve this to acx^2+x(ad+bc)+bd, which you can simply extract from your string looking at them as being just...
Forum: C++ Oct 2nd, 2008
Replies: 12
Views: 1,407
Posted By gregorynoob
if you could post a more detailed description of the problem... if you're only working with square binomials it should be really simple.
for example, if the shape of the input is
ax^2 + bx + c,...
Forum: C++ Aug 15th, 2008
Replies: 13
Views: 2,704
Posted By gregorynoob
i love scanf( "\n" ); :) i only use it to keep the program from stopping anyways, you can use system( "pause" ); for that and comment it out afterwards. i only use it cause i don't run my programs...
Forum: C++ Aug 15th, 2008
Replies: 13
Views: 2,704
Posted By gregorynoob
hehehe, you have an "i++;" in your for loop...
so it actualy reads every second number.
if you remove it it will read all
Forum: C++ Aug 15th, 2008
Replies: 13
Views: 2,704
Posted By gregorynoob
here...this should work...
#include <iostream>

using namespace std;
int number, sum = 0;

int main( void )
{
cout << "This program computes the average of 10 numbers" << endl; // you can...
Forum: C++ Aug 15th, 2008
Replies: 13
Views: 2,704
Posted By gregorynoob
hmmm...lemme analyze this abit:
#include <iostream>
#include <cmath>

using namespace std;

const int MAX = 10 + 1; //let it have more space

//Main Module
int main()
Forum: C++ Aug 8th, 2008
Replies: 15
Solved: namespace std
Views: 1,445
Posted By gregorynoob
namespaces are generaly used to avoid conflicts that could happen if you have two functions, classes, etc. with a same name...
so if you've got a libraries "libA" and "libB"
and in each of those...
Showing results 1 to 9 of 9

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC