Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
class-size
- Page 1
Re: Show computer name on a label
Programming
Software Development
1 Month Ago
by toneewa
…; using namespace System; using namespace System::Windows::Forms; public ref
class
Mr_M : public Form { public: Mr_M() { this->Text =… = System::Drawing::Point(50, 50); label9->
Size
= System::Drawing::
Size
(300, 20); this->Controls->Add(label9);…
missing storage-class or type specifiers error
Programming
Software Development
18 Years Ago
by shift25
… ;int main() { int classSize; //
size
of the
class
// prompt the user for and input
class
size
cout << "\nEnter the… number of students in the
class
: "; cin &…<< endl; // prompt the user for and input
class
size
cout << "\nEnter the number of students in…
Memory layout of class
Programming
Software Development
13 Years Ago
by learningcpp
… output is this way? I thought A
class
size
is the summation of the byte
size
of its member variables. My machine is… wasted. Isn't it? return 0; } [/CODE] Why the above
class
size
is showing 8? Following code is priting 1 and 1…
Re: Memory layout of class
Programming
Software Development
13 Years Ago
by learningcpp
… the time I am getting the same result which is
class
size
8 bytes. Regards, S.
Re: Memory layout of class
Programming
Software Development
13 Years Ago
by mrnutty
… the time I am getting the same result which is
class
size
8 bytes. Regards, S.[/QUOTE] [URL="http://publications.gbdirect…
Re: need some help with sizeof(class)
Programming
Software Development
18 Years Ago
by jwenting
[QUOTE=sunnypalsingh;291333]But
class
B doesn't have any virtual function? So what's the point of pointer to virtual table for
class
B? Isn't the sizeof
class
B 4 because of the subobject A?[/QUOTE] Narue was speaking in general terms. VTables do influence
class
size
, just as do data members of superclasses.
Re: need some help with sizeof(class)
Programming
Software Development
18 Years Ago
by SpS
[QUOTE=jwenting;291384]Narue was speaking in general terms. VTables do influence
class
size
, just as do data members of superclasses.[/QUOTE] Actually she was quoting something else so I was thinking that. I don't doubt about her knowledge.
Re: Class Template Problem - Constructor Issues - Please help
Programming
Software Development
17 Years Ago
by doublediamond
…; n) throw(BADINDEX) { if(
size
> 0) { n = data[
size
];
size
--; } else { throw BADINDEX(); } return *this; } template <
class
T> T myVector<…> bool myVector<T>::isFull() { return (
size
== capacity); } template <
class
T> bool myVector<T>::isEmpty() { bool…
Class Template used for stack
Programming
Software Development
17 Years Ago
by bleonard989
… STACK_H const int MAX_SIZE = 10;
class
FullStack {};
class
EmptyStack {}; template <
class
ItemType>
class
StackType { public: StackType (int
size
= MAX_SIZE); ~StackType(); StackType(const StackType…
Class Template Problem - Constructor Issues - Please help
Programming
Software Development
17 Years Ago
by doublediamond
… 0; virtual void erase() throw(BADINDEX) = 0; }; template <
class
T>
class
myVector:public containerInterface<T> { public: myVector(); ~myVector…;T>& myVector::popBack(T& n) { n = data[
size
];
size
--; return *this; } T front() { return data[0]; } T back()…
class serialization issues
Programming
Software Development
13 Years Ago
by CPT
…identifier); return in; }[/code] [code="C++"]
class
CGuser { bool online; int score; string name; string …temp.messages[i]<<endl;
size
=temp.v_friends.
size
(); out<<
size
<<" "; for…temp.v_friends[i]<<endl;
size
=temp.groups.
size
(); out<<
size
<<" "; for…
Re: Class Template used for stack
Programming
Software Development
17 Years Ago
by bleonard989
… STACK_H const int MAX_SIZE = 10;
class
FullStack {};
class
EmptyStack {}; template <
class
ItemType>
class
StackType { public: StackType(int
size
= MAX_SIZE); ~StackType(); StackType(const StackType…
Re: Class Template used for stack
Programming
Software Development
17 Years Ago
by bleonard989
… STACK_H const int MAX_SIZE = 10;
class
FullStack {};
class
EmptyStack {}; template <
class
ItemType>
class
StackType { public: StackType(int
size
= MAX_SIZE); ~StackType(); StackType(const StackType…
Re: Class Template Problem - Constructor Issues - Please help
Programming
Software Development
17 Years Ago
by Narue
If you define a member function for a template
class
outside of the
class
definition, you need to recreate the template parameters: [code…=cplusplus] template <typename T> myVector<T>::myVector() {
size
…
Re: Class Template Problem - Constructor Issues - Please help
Programming
Software Development
17 Years Ago
by Laiq Ahmed
… it does [code] template <
class
T> void myVector<T>::grow(){ while(
size
>= capacity) { T* temp…; data = new T[capacity]; for(int i = 0; i <
size
; i++) { data[i] = temp.data[i]; } delete []temp; } } …
Class Composition Confusion
Programming
Software Development
15 Years Ago
by swolll
… school_H #define school_H #define
SIZE
15 #include <string> #include "student.h" using namespace std;
class
School{ public: int… read_list(Student list[], int
size
); bool open_file(ifstream &fin); void…
Re: Class Composition Confusion
Programming
Software Development
15 Years Ago
by mrnutty
… do you need help with? A composition is when your
class
is composed of some object. Here is an example : [code… { public : string aName; }; [/code] since string is a
class
and aName is an object, then one could say that …Name is composed of an object of the string
class
. And I guess when you say arrays, in this case…
Re: class methods help
Programming
Software Development
17 Years Ago
by mickinator
… first
class
. Tis pretty self explanatory: [code=java] public
class
PizzaOrder { protected String
size
; //
Size
of pizza…String representation of the pizza. */ public String toString( ) { return ( "
Size
: " +
size
+ "\nDelivery: " + toBeDelivered + "Cost: $" +…
Re: Class Composition Confusion
Programming
Software Development
15 Years Ago
by swolll
…' in 'target', which is of non-
class
type 'double' companyImp.cpp:188: error… (!flag); } void Company::Add(ofstream fout1, int
size
) { string firstName, lastName; int i, skill, benefitType…(taxID); process_list (int
size
); calcSums(int
size
);
size
++; } } void Company::search_and_destroy(int
size
) { string target; …
Class course that stores the course number,
Programming
Software Development
15 Years Ago
by braineater
…void dropCourse (int courseNumber); void print(); friend
class
course; private: int studentID; string studentName; vector…courseID [i] = courseID [courseID.
size
()-1]; courseID [courseID.
size
()-1] = temp; courseID.pop_back(); } } }
class
course { private: string name;…
Re: class serialization issues
Programming
Software Development
13 Years Ago
by CPT
… a problem when I allocate a buffer with the
size
of the
class
(you know, to send it)? [QUOTE=firstPerson;1596063]Why… this case I will need a default constructor for the
class
Re: class serialization issues
Programming
Software Development
13 Years Ago
by Narue
[QUOTE]wouldn't that be a problem when I allocate a buffer with the
size
of the
class
(you know, to send it)?[/QUOTE] You need to read up on serialization. Real serialization, not this shallow copy crap.
Re: class serialization issues
Programming
Software Development
13 Years Ago
by Narue
… #include <vector> using namespace std;
class
foo { string _id; vector<int> …gt;::size_type i = 0; i < _data.
size
(); i++) { result += boost::lexical_cast<string>…;(_data[i]); if (i < _data.
size
() - 1) result += ","; } return result …
Re: class methods help
Programming
Software Development
17 Years Ago
by spick
… }[/code] and the pizzaorder
class
codes [code] public
class
PizzaOrder { private String
size
; private boolean toBeDelivered; private …this.toBeDelivered = toBeDelivered; } public void setSize (String
size
) { this.
size
=
size
; } public static int getCount() { return count; …
Class Troubles...
Programming
Software Development
16 Years Ago
by iTsweetie
…#define DataType int #define Boolean bool #define ARRAYSIZE 0
class
SeqList { private: int
size
; int listitem[ARRAYSIZE]; public: SeqList(void); int ListSize…(); } else for(int i = 0; i <
size
; i++) { listitem[
size
]=listitem[
size
-1]; } } //DataType DeleteFront(void)//No input, Preconditions: List …
Re: Class Composition Confusion
Programming
Software Development
15 Years Ago
by jonsca
… error: 'int' is not a template companyImp.cpp:75: error: '
size
' cannot appear in a constant-expression [/quote] You have a…condition portion of your for loop you have int <
size
, it should be i, and then the rest of … request for member 'length' in 'target', which is of non-
class
type 'double' companyImp.cpp:188: error: invalid types 'double[int…
Class Polygon c++
Programming
Software Development
12 Years Ago
by coutnoob
… thanks in advance ! Last question ! I have to create a
class
called polygon (not normal) that has in private the number… dynamically here's the code ! #ifndef POLYGON_H #define POLYGON_H
class
Polygon { private : int
size
; int *len; public: Polygon(); Polygon(int k,int…
Re: [class's] - 'overloading' functions
Programming
Software Development
11 Years Ago
by cambalinho
…{ int X; int Y; }; struct
Size
{ int Width; int Height; };
class
Console { private: char pszOldWindowTitle[MY_BUFSIZE]; HWND…#include "console.h" using namespace std;
class
console: public Console { public: virtual void Created() {…
Class help!
Programming
Software Development
15 Years Ago
by Instinctlol
…<iostream> #include <string> using namespace std;
class
WeatherStation { string StationDesignation; //Identifies the station string StationAgent; //Who's…Quit") break; else if (Command == "Add Stations")
Size
=
Size
+ AddStation(names,25); else if (Command == "Post Temperatures"…
Re: Class, Recursive within method
Programming
Software Development
12 Years Ago
by mike_2000_17
…} if (NDR>1) { RepMatrix((NDR-1),
size
, PosIR+1, calls+1); } } return; }; void…BELOW // Create an object of the nested
class
: RepMatrixCalculator helper_obj(this, MAX); // then call…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC