Welcome to Dream.In.Code
Become a C++ Expert!

Join 150,239 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,357 people online right now. Registration is fast and FREE... Join Now!




Please 1 minute for c++

 
Closed TopicStart new topic

Please 1 minute for c++, C++

Rating  5
kara_furtuna
21 Nov, 2007 - 07:29 AM
Post #1

New D.I.C Head
*

Joined: 21 Nov, 2007
Posts: 5


My Contributions
I wanna get C++ programme.I'm a student and I must have c++ programme.Do you know how can I got it?Can you give me a download link...
User is offlineProfile CardPM
+Quote Post

skyhawk133
RE: Please 1 Minute For C++
21 Nov, 2007 - 07:30 AM
Post #2

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 15,277



Thanked: 61 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
Are you looking for a compiler? or someone to do your homework for you?
User is offlineProfile CardPM
+Quote Post

kara_furtuna
RE: Please 1 Minute For C++
21 Nov, 2007 - 07:35 AM
Post #3

New D.I.C Head
*

Joined: 21 Nov, 2007
Posts: 5


My Contributions
oh I wanna completely programme and features
User is offlineProfile CardPM
+Quote Post

skyhawk133
RE: Please 1 Minute For C++
21 Nov, 2007 - 07:37 AM
Post #4

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 15,277



Thanked: 61 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
LOL. Here ya go:

CODE
#include <iostream.h>

main()
{
    cout << "Hello World!";
    return 0;
}

User is offlineProfile CardPM
+Quote Post

Amadeus
RE: Please 1 Minute For C++
21 Nov, 2007 - 07:44 AM
Post #5

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,357



Thanked: 51 times
Dream Kudos: 25
My Contributions
Now compliant to standards!
CODE

#include <iostream>
using namespace std;

int main()
{
    cout << "Hello World!";
    return 0;
}


User is online!Profile CardPM
+Quote Post

kara_furtuna
RE: Please 1 Minute For C++
21 Nov, 2007 - 07:46 AM
Post #6

New D.I.C Head
*

Joined: 21 Nov, 2007
Posts: 5


My Contributions
friends I wanna download programme of c++ give me link or post full programme to ridvankazel@mynet.com
User is offlineProfile CardPM
+Quote Post

Binary_Ninja
RE: Please 1 Minute For C++
21 Nov, 2007 - 08:00 AM
Post #7

New D.I.C Head
*

Joined: 24 Oct, 2007
Posts: 48


My Contributions
QUOTE(kara_furtuna @ 21 Nov, 2007 - 08:46 AM) *

friends I wanna download programme of c++ give me link or post full programme to ridvankazel@mynet.com

You say you want a C++ Programme, what programme do you want? Or do you need a text-editor and compiler? ph34r.gif
Try this http://www.bloodshed.net/devcpp.html

This post has been edited by Binary_Ninja: 21 Nov, 2007 - 08:02 AM
User is offlineProfile CardPM
+Quote Post

kara_furtuna
RE: Please 1 Minute For C++
21 Nov, 2007 - 08:07 AM
Post #8

New D.I.C Head
*

Joined: 21 Nov, 2007
Posts: 5


My Contributions
I have not any c++ programme
If I don't find any c++ programme,I don't give exams and pass my c lesson.Please help me...
User is offlineProfile CardPM
+Quote Post

Binary_Ninja
RE: Please 1 Minute For C++
21 Nov, 2007 - 08:12 AM
Post #9

New D.I.C Head
*

Joined: 24 Oct, 2007
Posts: 48


My Contributions
CODE
#include <windows.h>

/*  Declare Windows procedure  */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);

/*  Make the class name into a global variable  */
char szClassName[ ] = "WindowsApp";

int WINAPI WinMain (HINSTANCE hThisInstance,
                    HINSTANCE hPrevInstance,
                    LPSTR lpszArgument,
                    int nFunsterStil)

{
    HWND hwnd;               /* This is the handle for our window */
    MSG messages;            /* Here messages to the application are saved */
    WNDCLASSEX wincl;        /* Data structure for the windowclass */

    /* The Window structure */
    wincl.hInstance = hThisInstance;
    wincl.lpszClassName = szClassName;
    wincl.lpfnWndProc = WindowProcedure;      /* This function is called by windows */
    wincl.style = CS_DBLCLKS;                 /* Catch double-clicks */
    wincl.cbSize = sizeof (WNDCLASSEX);

    /* Use default icon and mouse-pointer */
    wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
    wincl.lpszMenuName = NULL;                 /* No menu */
    wincl.cbClsExtra = 0;                      /* No extra bytes after the window class */
    wincl.cbWndExtra = 0;                      /* structure or the window instance */
    /* Use Windows's default color as the background of the window */
    wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

    /* Register the window class, and if it fails quit the program */
    if (!RegisterClassEx (&wincl))
        return 0;

    /* The class is registered, let's create the program*/
    hwnd = CreateWindowEx (
           0,                   /* Extended possibilites for variation */
           szClassName,         /* Classname */
           "Windows App",       /* Title Text */
           WS_OVERLAPPEDWINDOW, /* default window */
           CW_USEDEFAULT,       /* Windows decides the position */
           CW_USEDEFAULT,       /* where the window ends up on the screen */
           544,                 /* The programs width */
           375,                 /* and height in pixels */
           HWND_DESKTOP,        /* The window is a child-window to desktop */
           NULL,                /* No menu */
           hThisInstance,       /* Program Instance handler */
           NULL                 /* No Window Creation data */
           );

    /* Make the window visible on the screen */
    ShowWindow (hwnd, nFunsterStil);

    /* Run the message loop. It will run until GetMessage() returns 0 */
    while (GetMessage (&messages, NULL, 0, 0))
    {
        /* Translate virtual-key messages into character messages */
        TranslateMessage(&messages);
        /* Send message to WindowProcedure */
        DispatchMessage(&messages);
    }

    /* The program return-value is 0 - The value that PostQuitMessage() gave */
    return messages.wParam;
}


/*  This function is called by the Windows function DispatchMessage()  */

LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    switch (message)                  /* handle the messages */
    {
        case WM_DESTROY:
            PostQuitMessage (0);       /* send a WM_QUIT to the message queue */
            break;
        default:                      /* for messages that we don't deal with */
            return DefWindowProc (hwnd, message, wParam, lParam);
    }

    return 0;
}

There its a simple code in C++ to make a plain window smile.gif
User is offlineProfile CardPM
+Quote Post

kara_furtuna
RE: Please 1 Minute For C++
21 Nov, 2007 - 08:32 AM
Post #10

New D.I.C Head
*

Joined: 21 Nov, 2007
Posts: 5


My Contributions
thanks
what can ı do whit this?
I downloaded devcpp5 from link...
but I don't know that programme will help me and I don't know where I can write codes and run the programme
User is offlineProfile CardPM
+Quote Post

skyhawk133
RE: Please 1 Minute For C++
21 Nov, 2007 - 11:28 AM
Post #11

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 15,277



Thanked: 61 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
Sorry, but we're not really here to give out code. And we can't just give you code for you to use on your final exam.

I'm closing this thread.
User is offlineProfile CardPM
+Quote Post

Closed TopicStart new topic
Time is now: 1/9/09 06:20AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month