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

Search:

Type: Posts; User: gxkendall

Search: Search took 0.04 seconds.

  1. Replies
    2
    Views
    4,361

    Re: Multiple sort options in C++

    Excellent - took a bit of working out, but up and running.

    Many thanks.

    G
  2. Replies
    2
    Views
    4,361

    Multiple sort options in C++

    Hi

    I have the following private part of a class defined as follows:

    private:
    struct stats {
    double ISIsum;
    int authorCount;
    bool operator<(const stats &a) const {...
  3. Re: generating non repeating permutations of a string

    Thanks all

    Actually, I gave it a go and it works a treat. Here is my program, which generalises the one supplied by Lindley.


    // next_permutation
    #include "stdafx.h"
    #include <iostream>...
  4. Re: generating non repeating permutations of a string

    Thanks all - I'll give this a go and report back. Might be a couple of weeks.

    Cheers

    G
  5. generating non repeating permutations of a string

    Hi

    Hopefully, the title will attract the right people.

    Given a string, say "HHAA", I want to generate all the permutations, without repetitions, so

    HHAA
    HAHA
    AHAH
    AAHH
  6. Re: Correct way to pass a pointer to a structure

    Wow - thank you.

    I would never have got to this.

    I have gone with declaring the function as

    void tryToInitialiseArray(struct myStruct *&ms);

    and it works a treat.
  7. Correct way to pass a pointer to a structure

    Hi

    This problem is driving me crazy


    #include "stdafx.h"
    #include "fstream.h"

    struct myStruct {
    int a;
  8. Problem: Release mode versus Debug mode and using COUT resolves it

    I have the following function

    void Schedule::fillUpHomeAwayArray(fixture *s_, int idx, int teamsInDiv, int *homeTeamList, int *awayTeamList) {

    int curDiv = s_[idx].div_;
    int curTeam ...
  9. Replies
    5
    Views
    2,308

    Re: Saving an Excel file from C++

    Doh! - Thanks a lot - is working now.

    G
  10. Replies
    5
    Views
    2,308

    Re: Saving an Excel file from C++

    Thanks for the suggestions.

    I have tried them. Alas, they do not work.

    Here is the code that I use. Sorry it's so long.

    Graham


    int writeExcel(excelData *ed, dataTypes_ currentData, int...
  11. Replies
    5
    Views
    2,308

    Saving an Excel file from C++

    Hi

    I am trying to develop an application that creates an Excel file and then saves it. The excellent examples that are on-line demonstrate how to develop such an application and this wll works, in...
  12. Replies
    2
    Views
    880

    Re: Network Programming in Screen Saver

    Thanks Mike - that is very useful.

    Graham
  13. Replies
    2
    Views
    880

    Network Programming in Screen Saver

    Hi

    I'd like to write a screen saver that is like SETI (Search for Extraterrestrial Intelligence) and the "searching for ever larger prime numbers" screen savers. That is to allow a large problem...
Results 1 to 13 of 13





Click Here to Expand Forum to Full Width

Featured