Showing results 1 to 40 of 72
Search took 0.01 seconds.
Posts Made By: Clinton Portis
Forum: Networking Hardware Configuration Dec 25th, 2007
Replies: 1
Views: 2,314
Posted By Clinton Portis
Question Is my laptop wireless G or N..??

Got my woman a laptop for xmas... now i don't know what type of router to get. Is there a way to check whether the machine supports wireless G?

This is the closest answer I got whilst...
Forum: C++ Nov 11th, 2007
Replies: 9
Views: 785
Posted By Clinton Portis
Forum: C++ Sep 26th, 2007
Replies: 2
Views: 933
Posted By Clinton Portis
Re: Need to send output to notepad

Including the <fstream> (http://www.cppreference.com/cppio/index.html) library will give ye' the tools you need to read and write to a file. Specifically, creating an object of type 'ofstream' will...
Forum: C++ Sep 22nd, 2007
Replies: 6
Views: 1,722
Posted By Clinton Portis
Re: How can i make this triangle?

this triangle doesn't make sense to me.. because you start each line with 2 on the first two lines.. and then 5 on the 4th line after it has already been used on the 3rd line..

this type of...
Forum: C++ Sep 3rd, 2007
Replies: 13
Views: 1,750
Posted By Clinton Portis
Re: Really need help with the interactive Calculator program, or will be dead

#include<windows.h>
#include<sstream>
#include<string>
using namespace std;

/* Declare Windows procedure */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);

/* Make the class name...
Forum: C++ Aug 23rd, 2007
Replies: 8
Views: 796
Posted By Clinton Portis
Re: c++ games ...

#include<windows.h>
#include<iostream>
#include<cctype>
#include<cstdlib>
#include<ctime>

using namespace std;

class Roulette
{
Forum: C Apr 2nd, 2007
Replies: 1
Views: 694
Posted By Clinton Portis
Re: Link-listed addressbook

edit: This is in c++, so replace 'new' with 'malloc()', 'delete' with 'free', and cout/cin with printf()/fgets()


instead of creating an array of structs like contact[u],

1. create a pointer of...
Forum: C Mar 27th, 2007
Replies: 3
Views: 1,130
Posted By Clinton Portis
Re: how to assign a constant element of a list

it is possible you could use a default constructor to set the fields of your object:


struct proceso
{
char name[20];
char memory[10];
char time[10];
char files[10];
Forum: C++ Mar 25th, 2007
Replies: 21
Views: 2,143
Posted By Clinton Portis
Re: Help with calculating avrg from input file.

Look at your output table.... do you see anything in your code you could use as a counter? (hint: your days are numbered)
Forum: C++ Mar 20th, 2007
Replies: 21
Views: 31,997
Posted By Clinton Portis
Solution Re: C++ game?

//Preprocessor Directives
#include<iostream>
#include<string>
#include<cstdlib>
#include<cctype>
#include<ctime>

using namespace std;

//Function Prototypes
Forum: C Mar 4th, 2007
Replies: 1
Views: 464
Posted By Clinton Portis
Question Simple Q:

I am going through some book assignments.. and I am running into some terminology that doesn't make sense to me..



what does the author mean by, "exp # bits", "sigment # bits" and "10000.....0...
Forum: C++ Feb 26th, 2007
Replies: 5
Views: 748
Posted By Clinton Portis
Re: Libraries

what compiler are ye' using?

for most IDE's like Dev CPP and MSVC++ 6.0, there is an option to, "add to project".. make sure the you are adding all 3 files to your project, then try to...
Forum: C Feb 25th, 2007
Replies: 22
Views: 3,284
Posted By Clinton Portis
Re: string manipulation

one simple strategy, would be to pass the char array into your function as a reference.. therefore any manipulations you perform on the char array will affect it directly in memory.

algorithmically,...
Forum: C Feb 24th, 2007
Replies: 3
Views: 732
Posted By Clinton Portis
Re: words..2..numbers

you would either have to create a lookup table or use some other kind of construct (like switch/case)... there are no standard library functions to perform the string to number conversion.

for...
Forum: C++ Feb 20th, 2007
Replies: 9
Views: 3,396
Posted By Clinton Portis
Re: 3d to 1d Array Conversion

error on my part w/ overrunning the first dimension of the array instead of the last dimension.

The residual hex values are cause i think because of 'int' overflow.. here is a similar (tested)...
Forum: C++ Feb 19th, 2007
Replies: 9
Views: 3,396
Posted By Clinton Portis
Re: 3d to 1d Array Conversion

Here is a small example:


//Declare a 3D array
int myarray[5][10][20];

//Populate the array
for(int i=0; i<5; i++)
for( int j=0; j<10; j++)
for(int k=0; k<20; k++)
Forum: C++ Feb 19th, 2007
Replies: 9
Views: 3,396
Posted By Clinton Portis
Re: 3d to 1d Array Conversion

If you think about it, any multi-demensional array is in essence a 1D array..

If you have ever studied assembly language you would know this is true. My opinion would be to just keep your 3D...
Forum: C++ Feb 18th, 2007
Replies: 8
Views: 2,535
Posted By Clinton Portis
Re: Scanning a text file for a string

I think ye' problems start here:


while (str !='\n' && thearray!="model=")
//set all values of thearray to bigarray until its end of line or "model="
{
thearray[i] =...
Forum: C++ Feb 17th, 2007
Replies: 13
Views: 3,572
Posted By Clinton Portis
Re: HELP!!! Tic-tac-toe game!

here was my attempt at writing tic-tac-toe maybe it will give ye' some ideas:

http://flashdaddee.com/forum/showthread.php?t=50
Forum: C++ Feb 12th, 2007
Replies: 2
Views: 488
Posted By Clinton Portis
Re: urgently needed

Why do you need to view someone else's desktop?
Forum: C++ Feb 7th, 2007
Replies: 4
Views: 791
Posted By Clinton Portis
Re: excpetion error

can we see ye' code..??
Forum: C++ Feb 7th, 2007
Replies: 10
Views: 1,337
Posted By Clinton Portis
Re: Beginner

Learn the basics of windows programming http://www.winprog.org/tutorial/index.html
Forum: C++ Feb 4th, 2007
Replies: 2
Views: 2,633
Posted By Clinton Portis
Re: cout a structure in a vector

Here is one easy method:


for(int i=0; i<People.size(); i++)
{
if(People[i].name == target)
{
cout << "Person Found: " << People[i].name
<< People[i].street <<...
Forum: C++ Nov 19th, 2006
Replies: 3
Views: 1,359
Posted By Clinton Portis
Roulette

I need a little help calculating odds for a roulette game.. i'm not sure why someone would bet 1:1 odds.. to me, that just means you win your money back without making a profit.

also, 1:1+bet...
Forum: C++ Nov 14th, 2006
Replies: 6
Views: 1,299
Posted By Clinton Portis
Re: Newbie needs help Please

with pointers:

#include<iostream>
#include<string>

using namespace std;


string char_to_string(char* source);
Forum: C++ Nov 14th, 2006
Replies: 6
Views: 1,299
Posted By Clinton Portis
Re: Newbie needs help Please

#include<iostream>
#include<string>

using namespace std;

string char_to_string(char source[]);


int main()
{
Forum: C++ Nov 13th, 2006
Replies: 3
Views: 1,641
Posted By Clinton Portis
Re: Using a struct array

You have done everything right thus far.. the only thing you haven't done, is to provide "function definitions" for your functions.

Below your main( ), go ahead and right up what each function is...
Forum: C++ Oct 23rd, 2006
Replies: 3
Views: 1,797
Posted By Clinton Portis
Solution Re: C++ Stream_Var.getline function

According to http://www.cplusplus.com/ref/iostream/istream/getline.html, the two acceptable forms of cin.getline() are:

istream& getline (char* s, streamsize n );
istream& getline (char* s,...
Forum: C++ Oct 23rd, 2006
Replies: 7
Views: 1,653
Posted By Clinton Portis
Re: accessing data members from outside main()

have you created an object from your class?

is "f" a public.. or private class member? ;)


post ye' code and we can help more.
Forum: C++ Oct 22nd, 2006
Replies: 6
Views: 1,522
Posted By Clinton Portis
Re: arithmetic expression using lists

hmm.. this is wicked easy

cin >> expression;
cout << expression;
Forum: C Oct 19th, 2006
Replies: 2
Views: 820
Posted By Clinton Portis
Re: Help

what code have you attempted thus far..? where are you encountering difficulty in writing this program?
Forum: C++ Oct 7th, 2006
Replies: 3
Views: 2,023
Posted By Clinton Portis
Question iterator based search algorithm help

I am writing a simple program.. enter first and last name and a search is performed.. and their phone number (if found) is returned.

I have used vector class iterators before a couple of...
Forum: C++ Oct 4th, 2006
Replies: 6
Views: 1,995
Posted By Clinton Portis
Re: Operator Overloading Question

I have a lot of debugging work ahead of me.. but at least I can get this thing to compile. Thank you for your help with this problem.. operator overloading has always been a mystery to me.. but...
Forum: C++ Oct 4th, 2006
Replies: 6
Views: 1,995
Posted By Clinton Portis
Re: Operator Overloading Question

This operator overloading business is just kicking my rear end..


#include<iostream>
#include<fstream>
#include<iomanip>

using namespace std;

struct SongInfo
Forum: C++ Oct 4th, 2006
Replies: 6
Views: 1,995
Posted By Clinton Portis
Re: Operator Overloading Question

I have made the suggested changes.. yet I get the same errors relating to the number of arguments of my overloaded operators. I have worked on this code.. and have got it down to just operator...
Forum: C++ Oct 3rd, 2006
Replies: 6
Views: 1,995
Posted By Clinton Portis
Operator Overloading Question

I have an operator overloading question...
I have attempted to overload the >> operator so I can
read a file directly into a "SongInfo" object, and attempted to
overload the << operator so I can...
Forum: C++ Jun 20th, 2006
Replies: 4
Views: 905
Posted By Clinton Portis
Re: arrays

To get ye' started, here is how to create an array and store the first 100 multiples of a number into that array

(assuming that no number in the array exceeds the bounds of the datatype size int...
Forum: C++ Jun 6th, 2006
Replies: 6
Views: 788
Posted By Clinton Portis
Re: Help!!!

Here is one idea using the post increment operator:


int a, b;

cout << "\nEnter first number: ";
cin >> a;

cout << "\nEnter second number: ";
cin >> b;
Forum: C Apr 5th, 2006
Replies: 10
Views: 2,127
Posted By Clinton Portis
Re: linked list question

I think the theory behind using while loops in linked list traversal.. goes something like this:


1. check the head pointer... if(head_ptr) then x = head_ptr ;
2. now.. assign the head_ptr to...
Forum: C Mar 23rd, 2006
Replies: 4
Views: 1,335
Posted By Clinton Portis
Re: Dice program

I'm not sure what ye' were trying to accomplish but I think

++array[sum-2] ;


basically does the same things as all these if statements
if (sum == 2)
array[0] = array[0] + 1;

which appear to...
Showing results 1 to 40 of 72

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 4:56 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC