Thread: New To C++ Programming

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    5

    Question New To C++ Programming

    Hi all, may I ask if, I want to write a program that is like a software, which others can download . Can I use C++ Programming to do that? Lets say I cannot, but can I use C++ Programming to point to a software, that can help me to do what I want, for my convenience?
    THanks...

  2. #2
    Registered User moonwalker's Avatar
    Join Date
    Jul 2002
    Posts
    282

    rephrase

    rephrase your question...

  3. #3
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    c++ is a programming language
    software is the collective term for programs and data

    let's say you write a program using the c++ language. it looks like this:
    Code:
    #include <stdio.h>
    int main() {
      printf("Hello, world!\n");
      return 0;
    }
    then you obtain a compiler, which is a program which converts c++ source code to a program. it gets a bit more complicated, but that should suffice for now.

    so to answer your question: yes, you can use c++ to write a program people can download.

  4. #4
    Registered User
    Join Date
    Jul 2002
    Posts
    3
    You can do just about anything with C++. I'm sure if you learn the language well enough you will solve most of your programming problems.

  5. #5
    Christian
    Join Date
    Mar 2002
    Posts
    612
    The code that ygf posted is C code and not c++ code. It will compile in a C++ compiler and can be used in your C++ programs but in reality that would be a C program.

    on your queston, C++ can be used to program nearly anything. The only thing it is device drivers, OSes, low leval programs, and were speed is important.
    I shall call egypt the harmless dragon

    -Isaiah 30.7

  6. #6
    Registered User
    Join Date
    Jul 2002
    Posts
    5
    I sort of understand some of what you all have said. But this part is a bit complicated.
    Well, I want to design a program, that people can use to save numbers by clicking on buttons, etc, such as what fields do they want, etc, and then save as a format that it will follow the program, such as doc for Words, cfm for Coldfusion, etc. Is it possible to do that? Do I need to include any databases or they just save itself when the user saves it?

  7. #7
    flashing vampire black's Avatar
    Join Date
    May 2002
    Posts
    563
    a bit confused.

    if what you need is some kind of language, C++ would do.
    if you ask for some software which C++ could run, there are many ones such as DevC++, BCB, VC and so forth.

    Good luck~
    Never end on learning~

  8. #8
    Registered User
    Join Date
    Jul 2002
    Posts
    5
    Let me simplify my question.

    (1) What I want to know if I can create a software such that, when the user save the page, it will be saved as .mim, etc.

    (2) mim is my very own saving extension. Its like when you save a picture, it's in jpg, or gif, etc.

    (3) If it is not possible, is it possible to create a program that user can save, and reuse what he've made the previous attempt and save it again?

  9. #9
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    >> printf("Hello, world!\n");

    Thats C not C++. The C++ eqivelant would be
    Code:
    cout << "Hello, world!\n"; // in <iostream.h>

  10. #10
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Okay everyone, I think suku_chen knows that the example posted is c not c++. To answer your question yes you can save things as a .mim file. Now I'm going to ask you a question are you trying to make a program in which you can save a .mim file that would be a copy of what is on the screen (or on a given window)? If so, yes you can do that too. If you want to save to a .mim file you can do this:
    Code:
    //C way
    FILE *mim_file = fopen("save.mim", "w");
    //C++ way
    ofstream mim_file("save.mim")

  11. #11
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    Originally posted by suku_chen
    I sort of understand some of what you all have said. But this part is a bit complicated.
    Well, I want to design a program, that people can use to save numbers by clicking on buttons, etc, such as what fields do they want, etc, and then save as a format that it will follow the program, such as doc for Words, cfm for Coldfusion, etc. Is it possible to do that? Do I need to include any databases or they just save itself when the user saves it?
    yuo ashouldnt really just ask people to write you programs tha takes the fun out of it. try LEARNING c++ first. cprogramming.com theres like 18 i think
    Email: [email protected] || AIM: MisterSako || MSN: [email protected]

    -the shroom has spoken

  12. #12
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >Thats C not C++.
    Yes it is, C++ supports printf.

    >cout << "Hello, world!\n"; // in <iostream.h>
    iostream.h is the old header, the new header which should be used is <iostream> and you must take namespaces into account:
    Code:
    #include <iostream>
    .
    .
    std::cout<<"Hello, world!\n";
    // or
    std::cout<<"Hello, world!"<<std::endl;
    -Prelude
    My best code is written with the delete key.

  13. #13
    Registered User
    Join Date
    Jun 2002
    Posts
    106
    or just put
    using namespace std;

    at the top
    C++ Makes you Feel Better

    "Gravity connot be held reponsible for people falling in love"--Albert Einstein

  14. #14
    Registered User
    Join Date
    Jul 2002
    Posts
    5
    Is there any good compiler around? and its free of charge? Thanks

  15. #15
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823

Popular pages Recent additions subscribe to a feed