Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Swerve

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    362

    Difficulty with doubly linked list

    Hi,

    I have been trying to create my first doubly linked list, but have been unable to properly create it due to using the wrong parameters in the function 'insertBeginningWhenListIsEmpty'.

    ...
  2. Mixed Classes. One container. Guidance needed.

    Hi,

    I have a base class which has various inherited classes derived from it.

    I'm trying to store them all in a vector, but have learned that vectors cannot hold mixed classes.

    So I decided...
  3. Replies
    5
    Views
    667

    Re: Am I no longer Downcasting?

    Thank you laserlight.

    I've never created a 'container class' but reading how it would allow me to use shared_ptr is something I may go on to need I think ( due to having mixed classes? ), so for...
  4. Replies
    5
    Views
    667

    Re: Am I no longer Downcasting?

    Thanks laserlight!



    I have not yet added a virtual destructor, but...


    I have created Vehicle to now be an Abstract Base Class, but originally I was going to use the class Vectorclass for...
  5. Replies
    5
    Views
    667

    Am I no longer Downcasting?

    Hi,

    I am starting to write a program which will store pointers to mixed classes within a single vector, but have been having trouble with Downcasting and the inherited classes datamembers being...
  6. Replies
    0
    Views
    452

    Sending data to a sever.

    Hi,

    I have put together a class which listens for a packet on a port.

    When it receives the packet, it will prinntln "Packet received".




    I have installed XAMP so that it can run as a...
  7. Replies
    6
    Views
    637

    Generic programming. Templates?

    Hi!

    I was hoping for some advice on how best to create a single doubly-linked list which could contain all of the different types of classes I have.

    This is the code I have written so far....
    ...
  8. Replies
    15
    Views
    2,462

    Re: Creating objects with functions.

    Oh wow

    That has just totally fixed the error, I was expecting the use of return to not be possible at all.

    I was thinking I'd have to use operator overloading instead.

    Thanks for all the...
  9. Replies
    15
    Views
    2,462

    Re: Creating objects with functions.

    Yikes!

    I mean the container type, a 'variable length array' .

    Plan to hold all of the car objects within their own vector. Reading about the STL says I can use a type T template, and then when...
  10. Replies
    15
    Views
    2,462

    Re: Creating objects with functions.

    I have come a little further along now and was hoping someone could spot where my mistake is.

    After calling a constructor inside a global function, I tried to return this newly existing object to...
  11. Replies
    15
    Views
    2,462

    Creating objects with functions.

    Hi,

    I am making a console program which has a menu, for example:



    I then have a switch in main, if the user selects 1, I call a function and create a new object.

    I'm wondering, once the...
  12. Re: New to forms. Validating a form which sends an email. Security.

    Thanks for helping PeejAvery, appreciated.

    So from reading your explanation, I DO have to use some server-side validation due to the fact that it is PHP which will be sending the form, yes?
    ...
  13. New to forms. Validating a form which sends an email. Security.

    Hi,

    I am creating a contactus form, which when submitted sends an email to the sites admin.

    As the form is not placing data into the database, but simply sending an email containing the...
  14. Replies
    2
    Views
    581

    Re: New to Forms/MFC. Error with m_Edit1

    Thank you VictorN, I think I was using the incorrect variable names.

    For the text boxes I was right clicking and selecting "Add variable", and using a CEdit type, gave the names 'var1' and 'var2'...
  15. Replies
    2
    Views
    581

    New to Forms/MFC. Error with m_Edit1

    Hi,

    I am trying to create a standard Windows Form which comprises of the following:

    Button1
    Button2
    TextBox1
    TextBox2

    When the user clicks the Option1 button, I am trying to display some...
  16. Replies
    0
    Views
    884

    XSLT able to override CSS?

    I've been trying to get this XML data to show in a webpage, but I'm doing something obvious wrong, but I'm totally failing to get it to work..

    The site uses an external CSS page to style it, BUT I...
  17. Replies
    2
    Views
    458

    Re: New to g++, running the "Hello World".

    Thanks,

    I have figured it out, if anyone else has the problem, I was using 'gcc' instead of 'g++', once it's replaced it works fine.

    Also system("PAUSE") doesn't work in Linux, cin.get(); does...
  18. Replies
    2
    Views
    458

    New to g++, running the "Hello World".

    Hi there :)

    I'm trying to use g++, but am experiencing some difficulty despite following what the tutorials describe. I must be going wrong somewhere.

    I am using Ubuntu 8.10 32bit Desktop.

    I...
  19. Replies
    2
    Views
    827

    Semaphores, need advice on implementation.

    Hi,

    I am trying to control the movement of a graphics image across the screen, and was hoping of some advice on the matter.




    for(;;)
    {
    Sleep(1);
  20. Replies
    1
    Views
    1,698

    JavaScript newbie: - - decrement problem

    Hi everyone,

    I'm new to JS,and am having a little trouble with my script. It's a picture slide show.

    Basically, when I click 'Previous' to call the 'moveToPreviousSlide' function, on the first...
  21. Replies
    2
    Views
    478

    Re: Creating a header file noob

    Many thanks Paul!

    I was not sure about that either.


    I'm thinking it is still a connection issue tho. :(
  22. Replies
    2
    Views
    478

    Creating a header file noob

    Hi,

    I am trying to declare a global array for use throughout a program. The program is a math question generator (sets).

    The main program file is saved as 'main.cpp',

    'globalarray.h' is the...
  23. Replies
    1
    Views
    522

    Pointing to a Structs variables.

    Hi!

    I am trying to write a function which manipulates the variables of a struct using pointers, but am having trouble with the syntax.

    I am still at the start with is, and so am just trying to...
  24. Re: Reading a txt file into an array of structs problem

    thanks Paul!

    I have managed to read the first item into a struct:-



    #include <iostream>
    #include <fstream>

    using namespace std;
  25. Reading a txt file into an array of structs problem

    Hi!

    I've wrote a program which placed the contents of three array's into a txt file.



    #include <iostream>
    #include <fstream>

    using namespace std;
Results 1 to 25 of 31
Page 1 of 2 1 2


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center