OpinionatR.com

Found about 18 opinions about printf. (Page 1)

1. printf:ing text if Int:s value changes?   (10 May 2009)
Hello, I have this program I've been coding lately which reads memory addresses of certain game and prints em to my console application. I dont have any problems with that part but I would really need some help solving the next. Code: while(1) { int Ammosleft; // saves the value of the address (0x0406B28C) int Ammodata = 1024; DWORD newdatasize = sizeof(Ammodata); GetWindowThreadProcessId(TeamFort, &proc_id); HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proc_id); ReadProcessMemory(hP...

2. basic c question thats confusing me?   (08 Jun 2009)
Hi I've been think about this for a while but the answer eludes me. I know its a pretty simple program but here's the snippet: Help with Code Tags ( Toggle Plain Text ) int main(void){ printf("Enter the operation of your choice\n"); int a; int b; int ch; while((ch = getChoice()) != 'q'){ printf("enter a value: "); if(scanf("%d", &a) != 1) break; printf("\n"); printf("enter another value: "); if(scanf("%d", &b) != 1) break; printf("\n"); switch(ch){ case 'a' : add(a, b); break; case 'b' : subtrac...

3. Using callback functions for error handling in C   (04 Jun 2009)
Hi, I have been thinking about the difficulty incurred with C error handling.. like who actually does if(printf("hello world")==-1){exit(1);} But you break common standards by not doing such verbose, and usually useless coding. Well what if you had a wrapper around the libc? like so you could do something like.. //main... error_catchall(my_errors); printf("hello world"); //this will automatically call my_errors on an error of printf ignore=1; //this makes it so the function will return like norm...

4. C array is displaying garbage data (memory problems?)   (08 Apr 2009)
I'm making a driver for an 8x8 LED matrix that I'm driving from a computer's parallel port. It's meant to be a clock, inspired by a design I saw on Tokyoflash. Part of the driver is an array of 3*5 number "sprites" that are drawn to the matrix. A coordinate of the matrix is assigned to a coordinate of the sprite and so forth, until the entire sprite is drawn on it. This process is repeated for the other digit with an offset. I have verified I have drawn the sprites correctly, and that the matrix...

5. unknown array size + dynamic memory allocation - C   (01 Jun 2009)
so guys, i was thinking about finding a way to create arrays, without knowing their size. for example create an app that takes unsigned long values until EOF and just saves them to an unknown size array. i was thinking that, because the array size could be big, to create the array using dynamic memory allocation. so here is my code which is NOT correct thats why i need your help Help with Code Tags ( Toggle Plain Text ) #include <stdio.h> #include <stdlib.h> int main(){ unsigned long...

6. GGG   (09 Jun 2009)
sir i got a strange problem When i try to make a post with the following text..i got the error like this.. Forbidden You don't have permission to access /BB/posting.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.9 Server at http://www.devilsduke.com Port 80 Here is the content i want to post...

7. [Guide] Client Based Packet Injection in Silkroad   (25 Jun 2009)
This article is a special one! Thanks to clockwork for letting me share some knowledge I learned from him in the past. This information is still relevant and useful for Silkroad, but as I will write about, might be too much work for the benefits. Client Based Packet Injection in Silkroad I. Purpose Welcome to the fourth guide in my series! I would like to take this time to thank clockwork for allowing me to write a guide based on his approach for performing client based packet injections in Silk...

8. [Guide] Extracting Parsed Packets in Silkroad   (26 Jun 2009)
I think you guys are really going to love this guide the most. Using this guide, you will be able to accomplish the holy grail of any game and that's being able to figure out packet formats with very little work! Once again I must give thanks to clockwork for showing me the basics of this approach when I was getting started with this stuff in the past. Extracting Parsed Packets in Silkroad I. Purpose This guide will be especially helpful to anyone that is working with Silkroad packets in their p...

9. S60 5th Edition, problem of receiving EDrag event   (24 Apr 2009)
Hello, all. I'm developing image slide application. And I want to control it using touch event. Please see below code. Code: void CDigitalFrameSlideShowContainer::HandlePointerEventL( const TPointerEvent& aPointerEvent ) { switch (aPointerEvent.iType) { case TPointerEvent::EButton1Down: { if(iState == EIdle) { iPoint.Reset(); iPoint.AppendL(aPointerEvent.iPosition); } break; } case TPointerEvent::EButton1Up: { if(iPoint.Count() > KMinimumPoints) { if(iControlSlideShow && iConfig->GetSlideS...

10. Re: Python, Perl, Lua, Ruby -- anybody??   (19 May 2009)
On Tue, 19 May 2009 02:46:17 GMT, "A. Wik" <root@dynamite.narpes.com Hi, Here come a few rants inspired by your observations on the ever increasing software sizes. (Also, I have rants about glibc2 threads, UTF-8, and an interesting comparison of gzip - compress - bzip2 and cat, but I'm saving those for another day.) I do, however include a little bit of conspiracy theory right away (well, not really right away: you may have to skip some paragraphs to get there)... enjoy, while I catc...



Results Page:   1  2  Next >

Bookmark and Share