Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
40% Quality Score
Upvotes Received
6
Posts with Upvotes
6
Upvoting Members
5
Downvotes Received
10
Posts with Downvotes
8
Downvoting Members
8
9 Commented Posts
0 Endorsements
Ranked #1K
~20.0K People Reached
Favorite Forums
Favorite Tags
c x 218

75 Posted Topics

Member Avatar for TheFeedingHand

you forgot to use the return value of your structure just place p=func(p); or if u want to use p to initialize and then use it's value u can use ptr to a structure

Member Avatar for mg120
0
179
Member Avatar for MrNoob

hi, I have some problems with winsock library so I am calling loading it dynmically then calling the functions so far so good,but the problem is for example I see in the winsock2 header files that - GetHostByName and some other functions are which I use there prototypes is kinda …

Member Avatar for UncleLeroy
0
98
Member Avatar for kde

then why don't you find 22 then after that -1 if the number before it is 22 then decrement it again untill the number is not 22 then you have there is your first 22

Member Avatar for Ancient Dragon
0
94
Member Avatar for mahima.b
Re: Bmp

if you want to manipulate bmp files you have to read it's structure

Member Avatar for MrNoob
-3
79
Member Avatar for MrNoob

oke I was coding some stuff involving 2d array allocating i normally know how to do it in main coz you don't need to pass adr main ptr that get's allocated but when i made it i got somewhat confused I don't know why it went wrong [code] #include <stdio.h> …

Member Avatar for MrNoob
0
115
Member Avatar for Shillz

well maybe u can define ; as a other name then use other name as derived type

Member Avatar for Shillz
0
152
Member Avatar for kavitha1591

I just downloaded Code blocks today since alot of people here said its cool etc I also have also msv8 it have everything msv8 has + it opens faster and got gcc compiler so I vote code blocks for msv8 you need like fast computer i got alrdy 3 mb …

Member Avatar for rimmmeee
0
192
Member Avatar for MrNoob

hey i got something again i got confused by in PE files and they don't rlly explain why happens oke so what im confused with FileAlignment and SectionAlignment files must be aligned or sections to whatever count is right ? like if the it's less than the number (x) then …

Member Avatar for MrNoob
0
105
Member Avatar for MrNoob

I got problem with this function for adding icon to a program with small programs it corupts it and with bigger programs it doesn't even do anything [code] #include <stdio.h> #include <windows.h> #define MIN 2 char *ReadFile(char *SzFile,int *BytesCount) { int fSize; FILE *pFile; char *Buffer; if(!(pFile=fopen(SzFile,"rb"))) return NULL; fseek(pFile,0,SEEK_END); …

0
68
Member Avatar for riahc3
Member Avatar for seo2005

also remeber don't use void main since u might want to check it's return value if it's return sucess or right also main is a specailized function which alawys start the program at like entry point for example . u should see some tutorials on c before doing anything on …

Member Avatar for tux4life
-1
183
Member Avatar for claire89

start with strlen(name)-1 then pop untill limit is reached or when char itself ur popping got space in it

Member Avatar for MrNoob
0
95
Member Avatar for adobea

why don't u just use fgets and read in portion coz like this your scanning starting addr of the file which u can't do that coz u didn't read the buffer of the file or anything into a string so u cant expect it to start directly i suggest you …

Member Avatar for MrNoob
0
126
Member Avatar for Hoey33

remeber in binary search it stuff needs to be arranged i didn't read your code but i don't see any arranging function in it

Member Avatar for MrNoob
0
125
Member Avatar for MrNoob

hey i was reading some stuff about windows i was wondering if file is loaded at virtual memory and let's say we load many files at once wouldn't that cause thrashing ? or exucatables are loaded into RAM then copied to virtual memory of hdd ?

Member Avatar for MrNoob
0
158
Member Avatar for makymakaru

c doesn't have call by refrence since the value if it's not a ptr it won't change only it's copy will in the function if u want it to change u need to pass the address

Member Avatar for Tom Gunn
0
103
Member Avatar for MrNoob

hey i m reading about pe format but there something that i don't get RVA in documentation it says it just like a temp for addressing memory in other sections ok and it's just a DWORD what if there are many temperoralily variables wouldnt that overflow the that RVA value …

Member Avatar for MrNoob
0
478
Member Avatar for rakeshbk402

it's used in the static memory that memory is intilised and won't quit like automatic variables it will retain there values even after functions end

Member Avatar for MrNoob
0
63
Member Avatar for MrNoob

hi i m sorry for this noob question but there something i don't get i was reading abt File format like PE for example i was wondering how is C unverisal on MAC win and unix since they use diffrent file format does C takes care of each file format …

Member Avatar for MrNoob
0
317
Member Avatar for MrNoob

hey i m here supposed to extend calculator of K&R to support getline i made it but i dunno everytime i keep getting 0 poped not the numbers itself i debuged it i couldn't find where the bug is so hopefully someone will tell me what i m doing wrong …

Member Avatar for MrNoob
0
165
Member Avatar for MrNoob

Hello here in k&r excerise of primitive calculator i get it and all but there something i think its weird and i don't somewhat get it here the getch and ungetch functions i don't get it's routine [code] #include <stdio.h> #include <stdlib.h> /* for atof() */ #include <ctype.h> #define MAXOP …

Member Avatar for MrNoob
0
314
Member Avatar for nathenvan

here your simply doing a loop that prints 5 character untill row becomes 9 and that code [code] if (row) { printf (" "); row++; } else { printf(" "); row--; } [/code] will never enter row-- since any non zero number is true what u should do is explain …

Member Avatar for saphar
-1
83
Member Avatar for jobseeker97

"" stuff between is character string '' between s character which has ascii representions or can be any other system represention like strings always end with NULL to mark the end character is just 1 character

Member Avatar for Arcaiz
0
144
Member Avatar for abhi_marichi

well i don't really have much knowledge in language development but if you want it like middle language you can use asm after all c is asm based

Member Avatar for Ancient Dragon
0
587
Member Avatar for DoEds

also why don't you use and operator if(!strcmp(pw,pw)) && if(!strcmp(idid)) { excute following command}; also you should convert a to either upper or lower so you do better only 1 if statement

Member Avatar for ksj
0
132
Member Avatar for NicAx64
Member Avatar for adi.shoukat

just do nested loop first loop looping through file and 2nd loop checking if that string is contained within if its contained then use strstr and delete that by placing NULL at its ptr then rewrite it to other file

Member Avatar for William Hemsworth
0
97
Member Avatar for bbballin
Member Avatar for MrNoob

well bascially here i started with K&R excerises with remove tabes and spaces i m not sure why my programs works in my head it does but even in puesdo code i did it does but arr[j] sometimes get intilised to values before [code] #include <stdio.h> #include <ctype.h> #define STOP …

Member Avatar for dkalita
-1
99
Member Avatar for acidik_4

you can cr8 a batch file that check attributes of hidden files and then write to batch file after you retrieve them write deleting attribute but thats long task i think there api for these stuff

Member Avatar for MrNoob
0
74
Member Avatar for duggydiggy

with void i think you need to cast according to the type at first not set a void ptr to void ptr

Member Avatar for MrNoob
0
71
Member Avatar for konohastar

you can also do something like while(!answer()) reget user choice //then when its out of the loop puts("welcome to the treasure of centries "); if you know about functions ofcourse and if you dont then you could just just do scanf inside loop and keep scanning till while(strcmp(Name1,Name)) you cant …

Member Avatar for konohastar
0
240
Member Avatar for oling

just make it as an atoi but change base 10 to 16 you can make it unverisal aswell that work for all bases by applying a 2nd argument in atoi copy specifying the base

Member Avatar for oling
0
2K
Member Avatar for vileoxidation

lol srsly thats soo stupid thats y most professional programmers arent from college there self taught lol and btw arrow operator is ptr to structure -> they should tell you basics before you should even tell you to translate program to english

Member Avatar for vileoxidation
0
121
Member Avatar for arcticM
Member Avatar for arcticM
0
171
Member Avatar for Sobakaa
Member Avatar for Sobakaa
0
87
Member Avatar for MrNoob

hello i was reading today some stuff abt bitfield but here in this program I understand most of it but there unnamed fields inside the structure book says its stuff for allgiment or something like that i dont rlly get what does it do [code] /* fields.c -- define and …

Member Avatar for codeguru_2009
0
144
Member Avatar for MrNoob

I m trying to find idea to change like from 1 to one and 2 to two and 3 three from 1 to 999 i m had an idea to do like a string with information etc ? but i want better idea so i dunno how to do it …

Member Avatar for Anjoe18_Edica
0
225
Member Avatar for MrNoob

hello i m suppose to do this program which should pass array of ptrs to a structure intilise and put student[i] info in each array i did most of it but now i got problem coz i cant just pass address of structure since its an array of ptrs to …

Member Avatar for MrNoob
0
151
Member Avatar for MrNoob

hello i m doing some function for saving a structure of some employee to text but i want to do it using ptrs to struct normally i tried first using ptr to struct in some main function to test some stuff abt it but i get runtime error [code] #include …

Member Avatar for yellowSnow
0
128
Member Avatar for ubi_ct83

if its multi dimensional array then u have to keep track of the counts ur comparing like for example for(i=0;i<MAX;i++) //this is a case in which string have same count if(!strcmp(SzString[i],SzString2[i])) { //do stuff};

Member Avatar for ubi_ct83
0
612
Member Avatar for ksan

just post your code and show whats wrong with it and what do you mean by return 35 times ? you mean there will be 35 seats in the bus ? and max booking is not more than 35 seats?

Member Avatar for MrNoob
0
180
Member Avatar for MrNoob
Member Avatar for chixm8_49

I got one idea though coz hang man doesnt require junk genrator names unless you do a real name genrator my idea is have the program read from you 3 names for the movies or any other names and it will choose randomly between the 3 or more if you …

Member Avatar for codeguru_2009
0
176
Member Avatar for chathu12
Member Avatar for MrNoob

Hello guys I am reading some book but there and went to input validation but there is something logical i dont get in it you know when press enter with getchar() sometimes it transmits newline to the program but book has solution but i don't know why it works i …

Member Avatar for MrNoob
0
106
Member Avatar for dumbncool

and you can also use while(*p++) it will increment addr till it meet \0 in a char *

Member Avatar for Aia
0
149
Member Avatar for chathu12
Member Avatar for yasaswyg
Member Avatar for MrNoob

hello i have last problem with strings i dunno whats wrong with this i dont get sometimes the logic coz when i write the program i do it into smaller stuff but this rlly string stuff drive me insane i hope i m gonna master it in the end anyways …

Member Avatar for MrNoob
0
135

The End.