LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-16-2013, 03:46 AM   #1
anbarasi
LQ Newbie
 
Registered: Mar 2013
Location: bangalore
Posts: 13

Rep: Reputation: Disabled
wht does vline function mean???


void vline(char ch)

{
for (int i=80;i>0;i--)
cout<<ch;
}


wht does vline in da abv function mean??
 
Old 04-16-2013, 04:11 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
It just prints a character 80 times.
 
Old 04-17-2013, 04:55 AM   #3
anbarasi
LQ Newbie
 
Registered: Mar 2013
Location: bangalore
Posts: 13

Original Poster
Rep: Reputation: Disabled
can u just help mewht tis means!

if (strcmp(b1[n].seat[seat/4][(seat%4)-1],"Empty")==0)
{
printf("Enter passanger's name: ");
scanf("%d",&b1[n].seat[seat/4][(seat%4)-1]);
break;

wht does if statement says??
 
Old 04-17-2013, 04:59 AM   #4
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
It's testing to see if "b1[n].seat[seat/4][(seat%4)-1]" (a variable that has already been defined) is equal to the string "Empty". See http://www.cplusplus.com/reference/c...cmp/?kw=strcmp
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wht advantage using linux balaji153 Programming 7 03-10-2008 02:33 AM
how to start and wht r d benifits harmandeep kaur Linux - Newbie 3 07-01-2005 06:06 PM
wht is mean by cups? ss100 Linux - Software 3 01-19-2005 06:04 AM
wht do these codes mean? jackandking Programming 10 12-25-2004 11:14 AM
wht u miss in linux? frosty_kgp General 16 09-16-2004 01:33 AM


All times are GMT -5. The time now is 09:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration