sorry guys for bad codeing..i am a beginner and trying to learn somethings:)
Type: Posts; User: snapshooter
sorry guys for bad codeing..i am a beginner and trying to learn somethings:)
#include <iostream>
#include <stdlib.h>
#include <iomanip>
using namespace std;
void message(void);
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);
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...
Yes..thanks!
ok, i have tryied a lot of patterns but with no result..
sorry this is correct:
#include <iostream>
#include <stdlib.h>
using namespace std;
void messageFunction();
void Header();
#include <iostream>
#include <stdlib.h>
using namespace std;
void messageFunction();
void Titlos();
int function(int);
int main()
{
thanks bman for the code..really help me!
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...
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...
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?
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;
}
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...
i am trying to make a function to do that..?
could you send me an example?
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;
}
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;
good idea homeyg, i am trying to convert it into arrays. The problem is that i have to use 1 dimension array..
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...
Hi i have made this simple code:
#include <iostream>
#include <stdlib.h>
#include <iomanip>
using namespace std;
int main(int argc, char *argv[])
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(...
Thanks..for your help, I understood setw() function at last!
i have always been confused with that!
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()
so what is the syntax for scanf in order to read double numbers..?