Search:

Type: Posts; User: snapshooter

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    7
    Views
    4,347

    sorry guys for bad codeing..i am a beginner and...

    sorry guys for bad codeing..i am a beginner and trying to learn somethings:)
  2. Replies
    7
    Views
    4,347

    #include #include ...

    #include <iostream>
    #include <stdlib.h>
    #include <iomanip>

    using namespace std;

    void message(void);
  3. Replies
    7
    Views
    4,347

    Booking seats program question..

    Hi! I made a program in order to book an airplane's seats. Here is my code:


    #include <iostream>
    #include <stdlib.h>
    #include <iomanip>

    using namespace std;

    void message(void);
  4. Replies
    4
    Views
    844

    Function question..

    Hi.. i want to make a function in order to store variable's values.
    e.g if i have a value_1=0 and value_1+=1, in the function, i want the second time the function run, the value=1 is the init...
  5. Replies
    27
    Views
    2,012

    Yes..thanks!

    Yes..thanks!
  6. Replies
    27
    Views
    2,012

    ok, i have tryied a lot of patterns but with no...

    ok, i have tryied a lot of patterns but with no result..
  7. Replies
    27
    Views
    2,012

    sorry this is correct: #include ...

    sorry this is correct:


    #include <iostream>
    #include <stdlib.h>

    using namespace std;

    void messageFunction();
    void Header();
  8. Replies
    27
    Views
    2,012

    #include #include using...

    #include <iostream>
    #include <stdlib.h>

    using namespace std;

    void messageFunction();
    void Titlos();
    int function(int);
    int main()
    {
  9. Replies
    27
    Views
    2,012

    thanks bman for the code..really help me!

    thanks bman for the code..really help me!
  10. Replies
    27
    Views
    2,012

    i want the modified values to be stored,when user...

    i want the modified values to be stored,when user types 1, and then go to starting menu without exit.. i can not figure a function to do that...
  11. Replies
    27
    Views
    2,012

    i want to make a loop to modify me array's...

    i want to make a loop to modify me array's elements..when the user types 1 i want the array[0] be 1; and restart the program, when a second user types 1 i want the array[1] be 1...(all values starts...
  12. Replies
    27
    Views
    2,012

    modigy array elements..?

    Hi, how can i modify an array's element. For example, i have initiliazed the array[0] to 0 and when the user types something, then i want to become array[0]=1..and store the value.
    any help?
  13. Replies
    8
    Views
    1,075

    for example: [code] switch(num) { case...

    for example:

    [code]

    switch(num)
    {

    case 1: cout<<function(what am asking for)<<" seat taken from First class;
    case 2: cout<<function_2(...)<<"seat taken from eco class;
    }
  14. Replies
    8
    Views
    1,075

    i want to make a little program in order to book...

    i want to make a little program in order to book seats of an airplane, i have to use an 1d array[10], (0-5)---->First class seats,(6-10)------->Economical seats. When user type 1 goes to First class...
  15. Replies
    8
    Views
    1,075

    i am trying to make a function to do that..?

    i am trying to make a function to do that..?
  16. Replies
    8
    Views
    1,075

    could you send me an example?

    could you send me an example?
  17. Replies
    8
    Views
    1,075

    :confused: Using loops..

    Salut..i was wondering how to use a loop in order to store values every time. For instance i have this code:

    [code]
    const int max=5;
    int a[max];

    for(int i=0;i<max;i++)
    {
    a[i]=1;
    }
  18. Thread: Help me..

    by snapshooter
    Replies
    9
    Views
    1,430

    i am not sure what functions to use in the switch...

    i am not sure what functions to use in the switch statement..
    function_1(int a[],int b)
    {
    for (int i=0;i<6;i++)
    {
    b=0;
    a[i]=b;
    b=i+1;
    }
    return b;
  19. Thread: Help me..

    by snapshooter
    Replies
    9
    Views
    1,430

    good idea homeyg, i am trying to convert it into...

    good idea homeyg, i am trying to convert it into arrays. The problem is that i have to use 1 dimension array..
  20. Thread: Help me..

    by snapshooter
    Replies
    9
    Views
    1,430

    Help me..

    I want to make a program in order to book airplane's seats.
    My idea was that the user have to type 1 for first seat, 2 for economical seat and 0 for exit..
    so i begin, i thought that i have to use...
  21. Replies
    7
    Views
    1,250

    Code question..

    Hi i have made this simple code:


    #include <iostream>
    #include <stdlib.h>
    #include <iomanip>

    using namespace std;

    int main(int argc, char *argv[])
  22. Thread: Weird..?

    by snapshooter
    Replies
    1
    Views
    900

    Weird..?

    Here's this program..could someone explain me where the function (mystery) is declared? i mean where is say that mystery returns a*b???


    #include <stdio.h>
    #include <stdlib.h>

    int mystery(...
  23. Replies
    2
    Views
    963

    Thanks..for your help, I understood setw()...

    Thanks..for your help, I understood setw() function at last!
    i have always been confused with that!
  24. Replies
    2
    Views
    963

    code explain..

    I have found this program and i do not understand somethings..could someone help me?


    #include <iostream>
    #include <stdlib.h>
    #include <iomanip>

    using namespace std;

    int main()
  25. Replies
    6
    Views
    987

    so what is the syntax for scanf in order to read...

    so what is the syntax for scanf in order to read double numbers..?
Results 1 to 25 of 37
Page 1 of 2 1 2