Recent content by dimagog

  1. D

    VC++ and unix c++ ...

    you should use <iostream.h> if you use it without the ".h", then do this: <iostream> using namespace std; // stands for standard library, not sexual deseases :) void main() { ...
  2. D

    C++ array of objects question

    Say I have class item I can initialize one object like this: item new_item(x, y, z) // x, y, z being different parameters for constructor. Now I'm trying to create a dinamic array of items: item* bag_of_items bag_of_items = new item[5] // there is a number in brackets after item (it may not...
  3. D

    C++ array of objects question

    I have a class and I want to create an array of objects of this class. I have a constructor and I have no trouble initializing a single object, but when it comes to an array the compiler starts complaining. I don't have a book with me right now, so I got away by creating an array of pointers...
  4. D

    2 questions

    I just tried it and it doesn't work :( Also I noticed there are other shortcuts in that folder which don't start up by themselves, and the ones that do are not all there... so there must be something else...
  5. D

    2 questions

  6. D

    2 questions

    thank you zemel!
  7. D

    C++ gurus check in :)

    sorry, it's kinda late and i noticed I've made a few blunders the loop should read: for (dummy = *p; dummy != ' '; dummy++) i++; and then: char number[i] = p;
  8. D

    C++ gurus check in :)

    What you need to do is copy from one char* to another up to the nearest space and then update the char* pointer to point to the character after the string. I think there is a function which does just that. Look into strtok() function. It looks for a token in a string. Another way to accomplish...
  9. D

    2 questions

    Hi, I'm new to this forum, and I wonder if somebody could help me out with these: 1) I wrote this program ans I want to force it to start as soon as I start the computer. How do I do that? 2) Is there a way to control the position of the scrollbars of a textbox in visual basic? Whenever I add...