New To C++ Programming

This is a discussion on New To C++ Programming within the C++ Programming forums, part of the General Programming Boards category; Hi all, may I ask if, I want to write a program that is like a software, which others can ...

  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,493
    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
    618
    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>
    Please direct all complaints regarding this post to the nearest brick wall Have a nice day.

  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: Klinerr1@nc.rr.com || AIM: MisterSako || MSN: sakotheinsane@hotmail.com

    -the shroom has spoken

  12. #12
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >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,825

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21