Search Results

Showing results 1 to 40 of 212
Search took 0.02 seconds.
Search: Posts Made By: MrNoob
Forum: C 25 Days Ago
Replies: 4
Solved: alignments
Views: 188
Posted By MrNoob
oke thanks again mate for answering my questions
Forum: C 26 Days Ago
Replies: 4
Solved: alignments
Views: 188
Posted By MrNoob
oke but there something that bugging 2 questions acctually
does it chooses the multipales randomly ? of the file or in memory for example file alignments is 0x200 does it chooses it's stuff...
Forum: C 26 Days Ago
Replies: 4
Solved: alignments
Views: 188
Posted By 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...
Forum: C 29 Days Ago
Replies: 0
Views: 151
Posted By 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

#include <stdio.h>
#include <windows.h>...
Forum: C 33 Days Ago
Replies: 4
Views: 192
Posted By MrNoob
you can just use strstr but if you want to do it with pop only you can start at end of the stack then keep popping till a space is reached when a space is reached u end that word and compare it with...
Forum: C 33 Days Ago
Replies: 1
Views: 171
Posted By MrNoob
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...
Forum: C 33 Days Ago
Replies: 4
Views: 192
Posted By MrNoob
that is if the name itself is ended with null terminator
Forum: C 33 Days Ago
Replies: 4
Views: 192
Posted By MrNoob
start with strlen(name)-1 then pop untill limit is reached or when char itself ur popping got space in it
Forum: C 33 Days Ago
Replies: 6
Views: 258
Posted By MrNoob
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
Forum: C 33 Days Ago
Replies: 4
Solved: thrashing
Views: 205
Posted By MrNoob
oke thanks a lot for the information was useful
Forum: C 33 Days Ago
Replies: 4
Solved: thrashing
Views: 205
Posted By MrNoob
oh thanks but when you load executable does it load directly in RAM or it gets loaded in hdd and sent to pages to hdd or it's vice versa ?
Forum: C 33 Days Ago
Replies: 12
Views: 450
Posted By MrNoob
well maybe u can define ; as a other name then use other name as derived type
Forum: C 33 Days Ago
Replies: 10
Views: 436
Posted By MrNoob
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...
Forum: C 33 Days Ago
Replies: 17
Views: 639
Posted By MrNoob
you can use code blocks it's cool
Forum: C 33 Days Ago
Replies: 4
Solved: thrashing
Views: 205
Posted By 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...
Forum: C Oct 12th, 2009
Replies: 6
Views: 302
Posted By MrNoob
also why do u intilise first time just use the push function
when u want to intilise and when u want to delete u should pop it
Forum: C Oct 12th, 2009
Replies: 6
Views: 302
Posted By MrNoob
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
Forum: C Oct 12th, 2009
Replies: 5
Solved: C confusion
Views: 268
Posted By MrNoob
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
Forum: C Oct 12th, 2009
Replies: 4
Views: 263
Posted By MrNoob
oh alright thanks for info
Forum: C Oct 12th, 2009
Replies: 4
Views: 263
Posted By MrNoob
but aren't RVA is on load time ? so code will be build but will crash ? or it's alrdy there when exe compiles ?
Forum: C Oct 12th, 2009
Replies: 1
Views: 247
Posted By MrNoob
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
Forum: C Oct 12th, 2009
Replies: 4
Views: 263
Posted By 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...
Forum: C Oct 11th, 2009
Replies: 2
Views: 242
Posted By MrNoob
oh i see so stand library every os has its own set and also each compiler for that os produce the file format etc .
Forum: C Oct 10th, 2009
Replies: 2
Views: 242
Posted By 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...
Forum: C Oct 9th, 2009
Replies: 6
Solved: calculator
Views: 356
Posted By MrNoob
i fixed it problem was in the increment line 68 coz i used to postfix increment it and also there was a bug

#include <stdio.h>
#include <stdlib.h> /* for atof() */
#include <ctype.h>
#include...
Forum: C Oct 8th, 2009
Replies: 6
Solved: calculator
Views: 356
Posted By MrNoob
yes i will add that but i don't want to rewrite the hole thing so i may never know what went wrong here so i won't rlly improve so that's y i want to know what i m doing wrong here so i will be able...
Forum: C Oct 7th, 2009
Replies: 7
Views: 288
Posted By MrNoob
anyways thanks for clarifying the function for me
Forum: C Oct 7th, 2009
Replies: 7
Views: 288
Posted By MrNoob
i fixed problem was that i incremented sp then used it in printf which made it next time i used the value i used the incremented one which contained rubbish value
Forum: C Oct 7th, 2009
Replies: 6
Solved: calculator
Views: 356
Posted By MrNoob
thats y i implemented it according
Forum: C Oct 7th, 2009
Replies: 6
Solved: calculator
Views: 356
Posted By MrNoob
yes but polish notation of K&R is 2 4 + not 2 + 4
Forum: C Oct 7th, 2009
Replies: 6
Solved: calculator
Views: 356
Posted By 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...
Forum: C Oct 6th, 2009
Replies: 4
Views: 215
Posted By MrNoob
well you could do this in puesdo code

#define test 5
for(n=0;n is less than or = to 9;increment n)
if(n is less than test)
for(int x=0;x is less then n;increment x) /*used for till...
Forum: C Oct 6th, 2009
Replies: 4
Views: 215
Posted By MrNoob
here your simply doing a loop that prints 5 character untill row becomes 9
and that code
if (row)
{
printf (" ");
row++;
}

else
{
Forum: C Oct 6th, 2009
Replies: 4
Views: 203
Posted By MrNoob
"" 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...
Forum: C Oct 6th, 2009
Replies: 2
Views: 158
Posted By MrNoob
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
Forum: C Oct 6th, 2009
Replies: 7
Views: 288
Posted By MrNoob
okay i understood it but i got other problem now its not acctually a problem but the exerise to add - i got it to work aswell but when i added couple of printf it didn't work this is weird
...
Forum: C Oct 6th, 2009
Replies: 5
Views: 255
Posted By MrNoob
no after while basically while means repeat code 3 times if he doesnt those 3 times do something then after 3 tries a error should be displayed
Forum: C Oct 6th, 2009
Replies: 7
Views: 288
Posted By MrNoob
okay thanks i get it but there isn't the order of evulatution for
while (isdigit(s[++i] = c = getch())) ; is right to left ?
like for example after we enter at test if(c=='.') shouldnt it quit coz...
Forum: C Oct 5th, 2009
Replies: 7
Views: 288
Posted By MrNoob
nvm about buff deceremting part it won't decerement it only after 2nd time i think but how does ungetch deletes input ?
Forum: C Oct 5th, 2009
Replies: 2
Views: 396
Posted By MrNoob
why dont you use realloc rather than freeing and allocating?
Showing results 1 to 40 of 212

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC