Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Mark Basedow

@Mark Basedow
About
Posts
7
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Can there be a free version of Windows ?
    M Mark Basedow

    Saw mention of ReactOS http://www.reactos.com[^] on Slashdot recently. Interesting project although unfortunately I doubt it will succeed.

    The Lounge sales css wcf linux hardware

  • Most Spectacular Mars Photo Yet!
    M Mark Basedow

    http://www.mercola.com/2004/may/8/mars_photo.htm[^]

    The Lounge com

  • Code for CMD.exe
    M Mark Basedow

    Try http://www.freedos.org/

    C / C++ / MFC help

  • Static arrays and sizeof
    M Mark Basedow

    :):):):):):):):):):):):):):)

    C / C++ / MFC help linux data-structures

  • Static arrays and sizeof
    M Mark Basedow

    Why can't I use sizeof to find the size of a static data array within a class. It works fine if I use sizeof outside the class. class myclass { public: static char myarray[]; void myfunction() { // VC6 compile error: illegal sizeof operand // GCC 3.2 'sizeof' applied to incomplete type 'char []' // cout << sizeof (myarray); } }; char myclass::myarray[] = "this is a string"; int main(int argc, char* argv[]) { myclass mc; cout << sizeof(mc.myarray); // works //mc.myfunction(); return 0; } another alternative I tried was to make the array const but this only works using GCC on linux; using VC6 I get errors. class myclass2 { public: //VC6 error C2258: illegal pure syntax, must be '= 0' //VC6 error C2252: 'myarray' : pure specifier can only be specified for functions static const char myarray [] = "this is another string"; void myfunction() { cout << sizeof(myarray); } }; int main(int argc, char* argv[]) { myclass2 mc2; cout << sizeof(mc2.myarray); // works mc2.myfunction(); return 0; } Thanks if anyone can help.

    C / C++ / MFC help linux data-structures

  • Black Sabbath. In Latin.
    M Mark Basedow

    Interesting. :eek:

    The Lounge com question

  • Are Access databases (.mdb) deprecated?
    M Mark Basedow

    I,ve downloaded MSDE from Microsoft's website in the past. Can't remember the URL though. To get the visual tools I installed a trial version of SQL Server 7.0 that came with a book.

    The Lounge database question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups