Jump to content

G'day from Aus

- - - - -

  • Please log in to reply
3 replies to this topic

#1
Junee

Junee

    Newbie

  • Members
  • Pip
  • 3 posts
Been on a few coding forums and been let down, hoping this is what I'm looking for.

A real beginner, only know HTML & CSS but what to learn some new stuff.

Where's the best place for Newbie questions? Don't want to annoy anyone.

#2
Junee

Junee

    Newbie

  • Members
  • Pip
  • 3 posts
Quick question, I want to create a program which will allow me to enter stats and then save into a spreadsheet in a certain way. Also needs to be easily up-loadable to the web.

For a bit of background I'm running a sports site so want to be able to enter player stats into a program which will save them into a spreadsheet and then be able to total them up for season averages etc.

So my question is what sort of programming should I be looking at doing? C++ would be my first guess but just wondering if anyone can lead me in the right direction...

#3
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
Welcome to our forums, the "general programming" area is good for non-specific questions and we welcome any level of difficulty.

For spreadsheets, these may be specific to certain softwares or operating systems however the xls format is not too difficult, there should be a few C++ libraries kicking around to aid in creation of such a document.

With a rough search I have found this C++ library:
C++ Excel Library to read/write xls/xlsx files - LibXL

It's example:
#include "libxl.h"
using namespace libxl;


int main() 
{
    Book* book = xlCreateBook();
    if(book)
    {
        Sheet* sheet = book->addSheet(L"Sheet1");
        if(sheet)
        {
            sheet->writeStr(2, 1, L"Hello, World !");
            sheet->writeNum(3, 1, 1000);
        }
        book->save(L"example.xls");
        book->release();
    } 
    return 0;
}

There may be other languages of which have easier learning curves, however they may not have the libraries you are looking for. If you are using PHP or ASP for your website, you may wish to look for libraries of which work with them so you can automate/integrate this in to your website rather than having to manually do it offline.


Alexander.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Welcome aboard! PHP and JavaScript would be good next steps in your learning.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users