₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,327,184 members, 8,429,692 topics. Date: Friday, 19 June 2026 at 10:26 AM

Toggle theme

Airsaylongcon's Posts

Nairaland ForumAirsaylongcon's ProfileAirsaylongcon's Posts

1 2 3 4 5 6 7 8 ... 14 15 16 17 18 19 20 21 22 (of 139 pages)

ProgrammingRe: Please,Help Explain This Code In C by airsaylongcon: 1:29pm On Mar 29, 2019
Of a quick Google search this is what I got. And it's a bit intuitive to analeand understand it.

60

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

 

int isKeyword(char buffer[]){

char keywords[32][10] ={"auto","break","case","char","const","continue","default", "do","double","else","enum","extern","float","for","goto", "if","int","long","register","return","short","signed", "sizeof","static","struct","switch","typedef","union", "unsigned","void","volatile","while"};

int i, flag = 0;

for(i = 0; i < 32; ++i){

if(strcmp(keywords[i], buffer) == 0){

flag = 1;

break;

}

}



return flag;

}

 

int main(){

char ch, buffer[15], operators[] = "+-*/%=";

FILE *fp;

int i,j=0;



fp = fopen("program.txt","r"wink ;


if(fp == NULL){

printf("error while opening the file\n"wink ;

exit(0);

}



while((ch = fgetc(fp)) != EOF){

   for(i = 0; i < 6; ++i){

   if(ch == operators[i])

   printf("%c is operator\n", ch) ;

   }

  

   if(isalnum(ch)){

   buffer[j++] = ch;

   }

   else if((ch == ' ' || ch == '\n') && (j != 0)){

   buffer[j] = '\0';

   j = 0;

     

   if(isKeyword(buffer) == 1)
printf("%s is keyword\n", buffer) ;

   else

   printf("%s is indentifier\n", buffer) ;

   }

  

}



fclose(fp) ;



return 0;

}
ProgrammingRe: Which Udemy Course Do You Need ? by airsaylongcon: 11:29am On Mar 29, 2019
ProgrammingRe: Please,Help Explain This Code In C by airsaylongcon: 9:42am On Mar 29, 2019
I disagree with the post above that it does nothing. The fact that it doesn't display any output given the state of the variables doesn't mean it does nothing.

The code assigns a new value to variable k, checks if the flag variable is equal to 10 (and since it doesn't, nothing is displayed) and waits for input from user to terminate the program execution
PoliticsRe: No School Enrolment For Children Without Birth Certificate — Governor Akeredolu by airsaylongcon: 3:23pm On Mar 27, 2019
Gloriagee:
Yeah let's punish innocent kids for being born to poor parents...makes a lot of sense
I don't get how this is a punishment? It costs the parents nothing to register their child's birth at the NPC. In fact the government incurs costs for every registered child. So how is this a punishment? Plus the parents can register their child's birth when the child is aged 0-5. So if they are poor now, they can save within that time window and get the child registered
Foreign AffairsRe: Queen Of England Showed Up At Kings College In Her ₦4.7b Bentley State Limo by airsaylongcon: 3:31pm On Mar 22, 2019
MJBOLT:
i thought it was Kings College in Lagos
Nonsense click bait. I expected more from auto.josh
PoliticsRe: Nigeria More Divided Than During Civil War — Obasanjo by airsaylongcon: 11:05am On Mar 22, 2019
yemmight:
OBJ is the cause of our division in Nigeria.
Really?! shocked

OBJ was the cos of "97%, 5%"
CelebritiesRe: Alex Dragged For Saying No One Contributed To Her Success On Bbnaija by airsaylongcon: 11:02am On Mar 22, 2019
Deomovies:
https:///2348144238327/
Do your files meet the requirements? File name and resolution?
CelebritiesRe: Alex Dragged For Saying No One Contributed To Her Success On Bbnaija by airsaylongcon: 11:00am On Mar 21, 2019
Deomovies:
Ok, we heard you. Meanwhile, you can get Latest and Top Rated hundreds of Movies and Series in HD quality into your External drives and PCs at affordable prices. Lagosians, please help a bro today by patronizing, that's the best gift for Movies Junkies.
If you can do minimum 720p X264(video codec) AAC (audio codec) in a Matroska container, I am willing to buy your entire content

File name should preferably be in the following format

SERIES
SeriesName S01E02 - Episode Title.ext

MOVIES
Movie Title (Year).ext
TV/MoviesRe: What Sites Can You Download Series For Free? by airsaylongcon: 9:02pm On Mar 20, 2019
Henrywest76:
Please which site can I download HD 2017/2018 movies, please help a brother out
http://dl.dlb3d.xyz

You can also try dl2 dl3 dl4... dl9
HealthRe: Why You Should Stop Taking "Agbo" by airsaylongcon: 6:45pm On Mar 20, 2019
Sluvist:
There are situations of some peoples having allergies to some medicines despite taking it at recommended doses, it creates another problem bigger than the solution expected to get from it. If you read that small paper that normally comes inside medicine packs you will understand what i mean. Scientists can promote their wares but condemning the other way round is a no go area. Some sicknesses are better treated using herbs and traditional method than modern methods.
You are right! It's called adverse drug reaction. And modern science has be open and admitted it. Is this not also possible with traditional medicine? Do the traditional medicine vendors admit this? Do they even tell you the ingredients in the traditional medicine?
HealthRe: Why You Should Stop Taking "Agbo" by airsaylongcon: 1:55pm On Mar 20, 2019
Sluvist:
Oga, your grammar is too long, please can you tell us any medicine scientifically produced that has no size effects?
None. That's why there is dosage. If you take medications following a stipulated dosage, there is almost always no side effects. Tramadol that you see people abuse today is a legal medication prescribed in maximum of 50mg doses. The ones abused on the street is almost 5 times that. Imagine swallowing 5 paracetamol at once, surely there will be side effects to that abuse
CrimeRe: 12 Arrested For Illegal Bunkering In Akwa Ibom (Photos) by airsaylongcon: 1:53pm On Mar 20, 2019
BlueRayDick:
Is there anything like legal bunkering before?
Yes. Bunkering is the supplying of fuel for use by ships, and includes the shipboard logistics of loading fuel and distributing it among available bunker tanks.

What these guys are doing and calling "illegal bunkering" is coined from bunkering because after stealing the crude oil (and perhaps refining it) they supply it to ships on the high seas
HealthRe: Why You Should Stop Taking "Agbo" by airsaylongcon: 1:44pm On Mar 20, 2019
generationz:
I don't believe this.

They can say anything to discredit herbal medicine that has been a source of wellness for years.

If I may ask what exactly in the agbo causes kidney damage?

I took agbo iba as a child to combat malaria and nothing happened to me.

An average traditional Yoruba family drinks agbo like they drink coke.
If it were true there would be higher percentage of kidney failure among them ( plus their kids) than anywhere in naija
The agbo you took as a child was probably dogoyaro soaked in water. It has been scientifically proven that dogoyaro contains anti-malarial quinine. The agbo these days are a combination of untested and unverified herbs all soaked in anything from crude ogogoro to liquids such as formaldehyde (formalin used for embalming dead bodies). Since there's no Quality Control in how these things are produced, proper dosage cannot be given
SportsRe: Panathinaikos Vs Olympiakos Abandoned After Fans Attack Players (Photos, Video) by airsaylongcon: 2:26pm On Mar 18, 2019
Mainland Greeks and their distant Cousins Cypriots are violent football supporters. This Athens derby always has the chance of degenerating into a full blown war. Used to be Omonoia and Apoel in Nicosia
PhonesRe: Whatsapp Set To Ban Users Of Gbwhatsapp And Other Whatsapp Clone Apps by airsaylongcon: 8:05am On Mar 18, 2019
Make dem ban na. Dem go ban tire. As dem say dem stubborn we go show dem say we stubborn pass
CareerRe: Masters Scholarship In The UK Vs N500k Monthly Job In Nigeria by airsaylongcon: 1:26pm On Mar 17, 2019
chymeze:
Choice Between Masters Scholarship In The UK Vs High Paying Job

Hello guys. I'm kinda in a dilemma rgt now. I'm a medical doctor about #500k a month with allowances. However I have been offered a scholarship for masters in the UK and I'm hoping to practice over these subsequently.

However I'm torn between resigning my job here in Nigeria (which though quite high paying but is riddled with frustrations from poor working conditions to poor facilities to practice my skills as a surgeon etc) OR accepting the scholarship offer and moving onto a place with good facilities and potentials.

I have this fear of the unknown, if I resign over here and move over there only to discover things aren't what it seemed or as rosy as I thought. Advice urgently needed pls.
I tell you for free, go to the UK. Do your FRCS. U can then go Canada or US. Surgery in Naija nobi am.

Hope u are Ibadan trained sha grin. Cos any other Medical School is a School of Nursing. Lollll

Wait you said Masters. Masters in what? Public Health?
ProgrammingRe: Help Needed To Get A Scammer by airsaylongcon: 1:37am On Mar 17, 2019
bayo2018:
There is no Efcc office here in warri sir and I haven't seen any police station nearby since have being here sir
shocked

Really? No EFCC office in Warri?
SportsRe: Alex Iwobi: Why I 'Humiliated' Hamari Traore For Having 'Bad Breath' by airsaylongcon: 1:12am On Mar 17, 2019
Joshrob:
Ya.. That's my guy
Show him you're a nigeriam.. We are king in salvaging anyone, you don't insult a Nigerian and go free without receiving one nice insult to tag along with for life..
It's in-built.. Weather home or abroad
angry angry angry
EducationRe: The School Attended By Success, The Warri Girl Sent Home Over Fees by airsaylongcon: 5:11pm On Mar 15, 2019
SocialJustice:
The girl is from Sapele not Warri.
My brother, for people wey dey Lagos Anywhere from Sapele to Ughelli (even reach Patani sef) all na Warri o grin.

Because if ńa that one den Effurun nobi Warri. Warri start from Enerhen Junction go NPA grin grin grin
PoliticsRe: How Nigerian Political ‘godfathers’ Were Humbled In 2019 by airsaylongcon: 3:36pm On Mar 14, 2019
JasonScoolari:
My dad, Chief James Onanefe Ibori is truly the undisputed "godfather"

Haters can carve out their slack balls for lunch.

God bless Chief James Onanefe Ibori.
God Father of what? Usi and amiedi politics? Nobi hin candidate Evelyn na hin Ọmọ-Agege use take do shooting practice? Ibori was a good governor but is a terrible leader. Very terrible succession planning. If like the Jagaban he had set a vision for Delta State when he was governor, 20years down the line we should be seeing the actualisation of the vision. But no, Odidigboyibo was content with allowing outside women fight with Nkoyo while he was 'dashing' money out to people. Money that if invested in education then, will be generating massive results now. Delta State is 8th in WAEC ranking. Imagine that! Even Edo State don pass us
ProgrammingRe: How Much It Cost To Build An App Like Uber Or Spotify by airsaylongcon: 3:24pm On Mar 14, 2019
resosdigital:
Didn't quite understand all you said but I think major reason why most people go for from the ground solutions is the uniqueness of the idea.

It would take more time trying to bend some open source projects into what you want than it would take if you had just built it up yourself.

My opinion though is that if there is an open source that very closely matches what I need then I just fork it and get going
So for Spotify for example I don't see a uniqueness in streaming music or video media to multiple devices/users. There's already at least one very stable FOSS solution (well it was Foss but closed source and forked twice). A proper Google search turned up several others. I would have mentioned names here but I get banned anytime I do that. I agree that it may initially be difficult adapting OSS for use BUT once you overcome that initial difficulty it becomes very easy as you can leverage on the community to provide functionality that a single person can possibly provide. For example testing which is very crucial. Or feature requests and additions.

I guess every developer has his preferred path.

For my project, think about certain cases where people need to stream videos from the Internet but cannot either because of poor connectivity (rural locations for example) or simply because the Internet is not available or is too expensive (if it's available) e.g a plane. I'm designing a solution where these multimedia content can be hosted on a local server which can be readily accessed via a WLAN. So using the appropriate app, users can access and stream preloaded content without having to be connected to the Internet
PoliticsRe: David Mark, Suswam, Ortom To Be PDP Agents At Polling Units In Benue Rerun by airsaylongcon: 2:05pm On Mar 14, 2019
capitalzero:
osun ti ko won lo gbon.
Wọn tí wise up
CelebritiesRe: Toke Makinwa Steps Out In Snake Print Outfit (Photos) by airsaylongcon: 2:03pm On Mar 14, 2019
id911:
OK Sir. Give me her contact details
Go to her Instagram handle
ProgrammingRe: How Much It Cost To Build An App Like Uber Or Spotify by airsaylongcon: 1:42pm On Mar 14, 2019
So I'm in sort of a similar situation where I'd like to stream content in an offline (non-Internet connected) scenario. An example would be a drug detox facility where access to the Internet is almost if not completely cut off.

I have come across a lot of fully functional and free/FOSS solutions with accompanying apps that I'm thinking why would someone want to spend funds building from the scratch
CelebritiesRe: Toke Makinwa Steps Out In Snake Print Outfit (Photos) by airsaylongcon: 1:22pm On Mar 14, 2019
id911:
Can you kindly mention one of the products she sales because I might be interested in buying.
She for example sells her time. So if you wanted her to attend your party (so it could be reported in the high society blogs and magazine) you'd have to pay her to make an appearance. The longer you want her to remain at the party the more you'd have to pay her.

Even this dress she's wearing she's been paid to do so. That way the designer gets publicity.
CelebritiesRe: Toke Makinwa Steps Out In Snake Print Outfit (Photos) by airsaylongcon: 1:11pm On Mar 14, 2019
Onyi22:
Which kind work she dy work?
You nor see am there? Entrepreneur

She dey sell things

I like her though. (Not her products on sale o). Her CAN DO attitude to life. Never been affected by the lemons life throws at her
PoliticsRe: $4.3bn NLNG Train 7 Yet To Take Off, 8 Months Gone Already by airsaylongcon: 12:54pm On Mar 14, 2019
Na wa o! So Dede don leave IT?! shocked

What's really holding this Train 7 sef? The IOC share holding companies are ready to invest. Is it FG through NNPC causing the stumbling block? This one that this hit front page it looks like management is trying to force the issue (NLNG news like this is inspired from the inside).

Tony and Sadiq should do something real quick
PoliticsRe: Kano Police Commissioner Wakili Mobbed by airsaylongcon:
Funny how we are all hailing him. I'm from the South and if a Southern police officer did this to a Southern governor I would have been screaming TRAITOR. If it was a Northern police officer doing this to a Southern governor I would have been screaming ISLAMISATION! But here we find a Northern police man holding his integrity against a Northern governor and I'm hailing. God please give me the grace to be a true Nigerian not a factional or tribal Nigerian. Amen
Car TalkRe: Various Car Brands And What They Are Known For by airsaylongcon: 2:51pm On Mar 09, 2019
CaptainMarvel:
I think audi overtakes BMW in terms of performance. And also in terms of class, arguably on par with Mercedes. It's also a lead in sportiness.
The Audi R8 is the most sought after super car in the world
I'm an Audi fan myself but I don't think the Audi outperforms the BMW. At least not in Naija.
PoliticsRe: Urhobo Should Wait Till 2023, Okowa Deserves Second Term, Says Ibori by airsaylongcon: 10:31am On Mar 09, 2019
Emedu:
Omo Agege actually spoiled the plan by Emerho. Emerho was clamouring for Delta North candidate but Omo agege was indirectly used by the state governor to bring Ogboru which is from Delta Central. Had it been a Delta North candidate was presented, Okowa should have been preparing his handover speech by now. Forget APC or PDP. Delta votes base on candidate.
This your permutation nor for work. Vote out Okowa and allow Delta North to have 12 years abi

1 2 3 4 5 6 7 8 ... 14 15 16 17 18 19 20 21 22 (of 139 pages)