Search Results

Showing results 1 to 24 of 24
Search took 0.01 seconds.
Search: Posts Made By: crq
Forum: C++ Jan 29th, 2005
Replies: 8
Views: 2,831
Posted By crq
i am using the skeleton that my instructor provided. i am not very excited about the way he has laid this stuff out either. i am just trying to stay within the rules that he has set for me. but i...
Forum: C++ Jan 29th, 2005
Replies: 8
Views: 2,831
Posted By crq
sorry, i don't know how i put that little wierd face in the code ...

crq
Forum: C++ Jan 29th, 2005
Replies: 8
Views: 2,831
Posted By crq
[code]
// class.h
#include <iostream>

class C {
// Stuff
friend std::ostream& operator<<(ostream& out, const C& c);
friend std::istream& operator>>(istream& in, C& c);
};
Forum: C++ Jan 29th, 2005
Replies: 8
Views: 2,831
Posted By crq
thanks for looking at this ...

this is Test2.C



#include <assert.h>
#include <iostream>
#include "Array.h"
Forum: C++ Jan 28th, 2005
Replies: 8
Views: 2,831
Posted By crq
hi there. i am on a UNIX system and am writing a template code called Array.h. it is called by a Test2.C file which does nothing more than declare a T object of type int. Array<int>.

i am getting...
Forum: C++ Jan 28th, 2005
Replies: 5
Views: 6,021
Posted By crq
so sorry. i didn't realize that you had made changes to the code. the changes were minor fixes that make a world of difference. i didn't see them though. i thought you were quoting the code and...
Forum: C++ Jan 28th, 2005
Replies: 5
Views: 6,021
Posted By crq
i have 2 constructors that use this function


template<class T>
Array<T>::
Array ( int sz )
{

assert ( 0 <= sz <= MAXINT );
...
Forum: C++ Jan 28th, 2005
Replies: 9
Views: 10,155
Posted By crq
yes. that makes sense to me. yet, my prof wants us to use one of his already compiled files (a .o file) that was made from a .h file. so that's why i was wondering if I needed to do the same.
...
Forum: C++ Jan 28th, 2005
Replies: 9
Views: 10,155
Posted By crq
STILL trying to figure out how to link files in C++ in a UNIX environment!! i just don't get it. how do i make .o files? what are they for? how do you "link" them with other stuff and "run" them....
Forum: C++ Jan 27th, 2005
Replies: 5
Views: 6,021
Posted By crq
hey folks,

i have a template created that holds an array of type T elements. my problem is this ...

i am converting this code from a souped up Array class that takes ints as it's elements to...
Forum: C++ Jan 24th, 2005
Replies: 2
Views: 2,481
Posted By crq
WOW!! thanks!!

i will try that.

cr1
Forum: C++ Jan 23rd, 2005
Replies: 2
Views: 2,481
Posted By crq
ok, here's the scenario (and maybe i will finally get this assignment finished) ...

i have a class IntArray. at the moment i have it all in a .C file. i have a little main section that has minimal...
Forum: C Jan 23rd, 2005
Replies: 2
Views: 2,426
Posted By crq
oh, and there is this one too ... they both call each other. i am getting the same syntax error in both.



bool IntArray::
operator != ( const IntArray &rhs) const
{
if ( size() ==...
Forum: C Jan 23rd, 2005
Replies: 2
Views: 2,426
Posted By crq
can anyone help me with this one? i am getting a syntax error that reads like this:
lab2aa.C: In member function `bool IntArray::operator==(const IntArray&)
const':
lab2aa.C:80: syntax error...
Forum: C++ Jan 23rd, 2005
Replies: 1
Views: 2,146
Posted By crq
in the skeleton code that my instructor provided, he has some assert (boolean statement) calls. is assert a keyword in C++ and is it a built-in method ...? do i need to put something at the top of...
Forum: C++ Jan 23rd, 2005
Replies: 3
Views: 10,571
Posted By crq
in working on this pgm, i have made notes to myself ... questions that keep popping up. if anyone wants to clarify some of these concepts for me ....

1. are TRUE and FALSE keywords? if a...
Forum: C++ Jan 23rd, 2005
Replies: 3
Views: 2,409
Posted By crq
THANK YOU THANK YOU THANK YOU!! the size() stuff and the = operator stuff were just dumb ... and i had no clue about the & part ... thanks for looking this over. i couldn't see anymore!!

crq
Forum: C++ Jan 23rd, 2005
Replies: 3
Views: 2,409
Posted By crq
i have been working on this all DAY LONG. i am new to C++ and Unix and need to write this little tiny code in both. i am tripping all over myself with references and dereferences and operator...
Forum: C++ Jan 22nd, 2005
Replies: 1
Views: 1,920
Posted By crq
hi, i am REALLY new to C++ and don't really understand much of anything about the pointers and references and the way the files are set up.

HOWEVER, i have an assignment to do that SHOULD help...
Forum: C++ Jan 19th, 2005
Replies: 11
Views: 20,819
Posted By crq
SUPER!! i will try that. it would be a real time saver. i have been copying and pasting and opening and closing ... a real pain.

THANKS!

crq
Forum: C++ Jan 19th, 2005
Replies: 11
Views: 20,819
Posted By crq
hey, sykobag,

i am using pico too. i type pico and a blank window comes up. the problem that i have is this ... when i quit a session, save my file and want to come back to it. if i log back on...
Forum: C++ Jan 19th, 2005
Replies: 11
Views: 20,819
Posted By crq
thanks for replying!

i actually found the problem ... and it was a goof-up silly mistake. i was doing things in an array element that hadn't been initalized. i am still in java mode it seems...
Forum: C++ Jan 19th, 2005
Replies: 11
Views: 20,819
Posted By crq
THANKS for the style tips. i agree with you. i like lots of spacing in my coding. however, i have been beaten over the head with doing it the exact opposite ....


for(int i=1; i<MAX_CALLS;...
Forum: C++ Jan 19th, 2005
Replies: 11
Views: 20,819
Posted By crq
hi there. i am new to C++ AND unix. this assignment that i have is really really easy, but the specifics of C++ and getting around in Unix is making it really hard and time consuming. i have a...
Showing results 1 to 24 of 24

 


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

©2003 - 2009 DaniWeb® LLC