Silento's Posts
Nairaland Forum › Silento's Profile › Silento's Posts
1 2 3 4 5 6 7 8 ... 34 35 36 37 38 39 (of 39 pages)
I don't know for java but in c language enum is defined constant name for integer value for easy remembrance for the programmer array is a collection of data or value address in a real word we know that we have 12 month in a year and enum of months can go like this enum month{jan,Feb,...} and an array may contain how many days are in each month ex. days[12]={30,31,34,....} to access how many days that is in February you can just like days[Feb] instead of remembering that February is the second month of the year so with this example enumeration type is a defined name for an integer value for easy remembrance |
logicalhumour:try to code in mid week like Wednesdays and week ends Sunday two intensive days in a week is ok hope is nothing without life wish u best of luck |
Davonjagah:I don't thing so the redirect problem I think it is caused on the side he uploaded the website I think it time to upload Nairaland on a site with more bandwidth |
Harvest601:gimp in making |
![]() my kidneys are intact and am flexing it now
|
codeSavant:you are welcome am writing update for my video converter this is some part of the code more c examples loading next how to setup a complete and easy GUI library in c langaue |
lets start with basic mp3 id3 tags visit http://id3.org/ID3v1: to learn more mp3 id3 tags looks some thing like this: typedef struct mp3_id3 { char Tag[3]; char Song_Title[30]; char Artist[30] ; char Album[30]; char Year[4]; char Comment[30]; char Genre[1]; }MP3Id3; or typedef struct mp3_id3 { BYTE Tag[3]; BTYE Song_Title[30]; BTYE Artist[30] ; BTYE Album[30]; BTYE Year[4]; BTYE Comment[30]; BTYE Genre[1]; }MP3Id3; last 128bytes of an mp3 file contains the tags of an mp3 files with an above info lets create a program to read the info from an mp3 so i wrote this little program with c language : #include <stdio.h> #include <stdlib.h> #include <string.h> int in(char *item,char *mp); int Len(char *items); char *readit(char* src,int size); typedef struct mp3_id3 { char Tag[3]; char Song_Title[30]; char Artist[30] ; char Album[30]; char Year[4]; char Comment[30]; char Genre[1]; }MP3Id3; int main(int*argc,char **argv[]) { //decl MP3Id3 MP3Id3 tag; //Open mp3 file for test FILE *file = fopen("3.mp3","r" ;//check and seek to the last 128byte to read tags for our mp3 file if((fseek(file,-128,SEEK_END)||fread(&tag,1,sizeof(tag),file)) !=1) { printf("ERROR WHILE PROCESSING MP3" ;return 0; } fclose(file); //check to find TAG to see if we had a vaild tag data char *temp = (char*)malloc(3); int i; for(i=0;i<3;i++) { *(temp+i)=tag.Tag[i]; } *(temp+3) = '\0'; if(in("TAG",temp)!=1) { printf("DUMPED DATA NOT VALID MP3 TAG or NO Tag on MP3 File \n" ;} free(temp); printf("Artist Name : %s \n\n",readit(tag.Artist,sizeof(tag.Artist))); printf("Album name : %s \n\n",readit(tag.Album,sizeof(tag.Album))); printf("Album Year : %s \n\n",readit(tag.Year,sizeof(tag.Year))); printf("Song Title : %s \n\n",readit(tag.Song_Title,sizeof(tag.Song_Title))); printf("Track Comment : %s \n\n",readit(tag.Comment,sizeof(tag.Comment))); return 0; } int in(char *item,char *mp) { int r,l,j=0,chk=0; l = Len(mp); for(r=0;r<Len(item);r++) { if(mp[j]==item[r]) { chk+=1; j+=1; } else { chk=0; j=0; } if(chk==Len(mp)) { break; } } if(chk==Len(mp)) { return 1; } else { return 0; } }//end of func in int Len(char *items) { int i=0; int ii=0; while(i !=1) { char a = items[ii]; ii++; if(a=='\0') { i=1; }; } return(ii-1); }//len of a string char *readit(char* src,int size) { char *dst; //printf("%d ",size); dst = (char*)malloc(size+1); int i=0,s=0; for(i=0;i<size;i++) { //printf("%d \n",*(src+i)); if(*(src+i)==32) { //break; } else { *(dst+s)=*(src+i); s++; } } *(dst+s)='\0'; return dst; } if u need help holla i will be here to guide u ; |
4% |
pcguru1:bro if u are waiting for a code to give u a head start in Nairaland sorry u won't get such here I make open source binary both in c and python but my code are not sir and for what to make with c : any thing u can think of to develop just find a program on other language and implement it in c thats the best way to know how powerful c is |
nurain150:c is not easy to deal with that why everybody choose java python etc |
nurain150:that's becoz u are still learning c while coding on c u must know what u want not like python on java u just write and think c is for people that knows what they are doing |
babatope88:do u code in c |
BlueWizAngel:that's why u need c language c is a way of life plz don't quote me or I will cast u to void |
share u next great open source ideal and helpers to develop it with u |
ugo2016:yes |
am looking for a freelancer who can code and design a website for me any domain name is allow or even blog and I want it for free |
DanielTheGeek:thanks man vlc uses ffmpeg |
any library suggestion is welcomed |
elfico:thanks bruhh since it will be available for most is like Linux windows android etc and it is an open source I think ffmpeg with be OK for GUI I think iup will be OK or fltk and since u have develop app like this before I think u skills is highly needed here |
DanielTheGeek:this will be a life time supporting project but at lest before 2 month we should have a beta version |
ur contributions are high welcome be it code or suggestion especially on the web side of the project I don't know much about web stuff daniel ,dhtml and host of others una help is highly needed and android devs also |
great nigerian programmers i think it is high time we develop some thing meaningful to our society we 9jas love entertainment be it visual or audio both adult and children enjoys it so I have decided to create this thread for us to create a wonderful media player that will run on both pc and android for now later on other devices which will be called 75 media player meaning Nigeria = 7 letter words in unite = 5 letter words I hope u saw what I did there haha so what are the features that this will possess 1. it will be both online and offline app 2. it will be capable to download music and video from the webserver with its own inbuilt downloader 3. ability to play avi mp4 and mp3 WMA acc our major media preferred type 4. ability to compress video and audio file bcoz of network issue etc who can join in this : 1 . pro programmer in any language 2. new programmer in any lamguage 3.anybody with no skill but want to see this project advance if u are interested plz reply we have a lot to cover and do |
Knownpal:as I said before we peace not war if u think it is as easy as u said plz create a thread let people who are interested start rubbing mind and let's teach each other things note : Api is good but not as good as knowing what you are doing I know python and c and c ++ not a hello world level but to a core level I hope you know what that means c programmers don't just use library they will always make sure they explore it and build a better one waiting for the thread |
Baby exercise for baby coders but anyway larsoft good work need more hard software that need more coders to work on we need peace among ourselves not levels Maybe let us build our own video player and audio player for both pc and android That will communicate with a website to tell u want is latest and hot for the month Note: we will build the video and audio decoder ourselves One group android and others pc And maybe dhtml18 will be development manager |
CodeHouse:sir c |
- |
If die Die Else Die |
U.s.a. c coders India python Asia web Devs Nigerians talk talk coders |
airsaylongcon:If I hear u again I go take c arrays slap u functional coder and u dey run from e-beef as my bro dey call am |
DanielTheGeek:Good but na old story for nl and are u not the guy who emailed me and I reply u since last month uptil now I never hear from you that shows How bad u will suck with deadline Maybe if u want us to develop some thing together start first by tell us what the software will do followed by prototype And @dhtml u are one of the worst coder that nl has With all the years u have been into coding u have nothing worth to show only script u got And discouraging young devs Be warned not all coders sucks like u |
Good coders are here and good commenters here all so but anyway anambra people has the highest number of serious coders in Nigeria and here |

;