Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~4K People Reached
Favorite Tags
c x 31
c++ x 21
Member Avatar for amishosh

Hi, I looked all over and since I'm probably not using the right termonlogy I couldn't find anything in Google. Here's what I'm trying to do (in ANSI C). I have a text that represents a series of bytes that looks like this: "08 FF AB 0B 12 76 CD" …

Member Avatar for deceptikon
0
192
Member Avatar for amishosh

Hi all! I would like to get more hands on programming for the languages I currently know: C Java C++ (studying now) The best way I figured is to join open source project and try to contribute. One place I found is SourceForge but I was wondering if any one …

Member Avatar for daviddoria
0
104
Member Avatar for amishosh

Hi! I copied and pasted a grapics.h example from the help>index in borland C. When I try to run it the compiler gives me 9 error messages, all going something llike this: Linker error: Undefined symbol _closegraph in module "my file name" here's the example: [code] #include <graphics.h> #include <stdlib.h> …

Member Avatar for leduduong
0
419
Member Avatar for amishosh

Hi! I have this really difficult homework assignment. I don't want answers, just perhaps a point in the right direction...I gave this a lot of thought and still nothing :( I need to find what's called a "sink" in a matrix of all 1s or 0s. A "sink" is when …

Member Avatar for invisal
0
93
Member Avatar for amishosh

Hi! Up until today I've been writing C with Borland C dos version. Only g-d knows why the school I go to teaches us C on that. I want to start using MS's Visual Studio and I'm totally lost. It's a whole new enviornment of work. All their tutorials and …

Member Avatar for iamthwee
0
175
Member Avatar for amishosh

Hi! I'm strugling with this task for my wife's business. They produce a local weekly ad paper and they want a db to mange their business. I'm having trouble with designing the "Product" table properly. This is how their pricing works: [Ad size] --------[1 week]--------[4 weeks]--------[8 weeks] --1/2---------------$10 -------------- $9---------------$8 …

0
65
Member Avatar for amishosh

Hi! I'm looking for ideas for programs that will give me a good practice for using threads. Does anyone have any ideas?

Member Avatar for Ancient Dragon
0
97
Member Avatar for amishosh

Hi! I compile this simple "Hello world" Win32 program: [code] [COLOR=green]#include[/COLOR][COLOR=green]<windows.h>[/COLOR] [COLOR=green]int[/COLOR][COLOR=green] WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, [/COLOR] LPSTR lpCmdLine, [COLOR=green]int[/COLOR] nCmdShow) { MessageBox(NULL, [COLOR=green]"Hello World!"[/COLOR], [COLOR=green]"Note"[/COLOR], MB_OK); [COLOR=green]return[/COLOR] 0; } [/code] When the program runs I get weird fonts. See attachement. Kindly advise. Thanks

Member Avatar for Ancient Dragon
0
73
Member Avatar for amishosh

Hi! I learnt the C language (NOT C++) but the concept of threading is completely new to me. I'm having trouble finding a good tutorial or book on the subject. Can some one point me to a tutorial or book about threading specifically using C? I use Visual C++ 2005 …

Member Avatar for Ancient Dragon
0
241
Member Avatar for amishosh

Consider the following code: [code] [COLOR=green]#include[/COLOR][COLOR=green]<stdio.h>[/COLOR] [COLOR=green]#define[/COLOR][COLOR=green] SET_BIT(buf,n,val)buf[n]=val[/COLOR] [COLOR=green]int[/COLOR][COLOR=green] main()[/COLOR] { [COLOR=green]char[/COLOR] ch=[COLOR=green]'D'[/COLOR]; [COLOR=green]char[/COLOR] *name=[COLOR=green]"Yankee Duddle"[/COLOR]; [COLOR=green]int[/COLOR] i=5; SET_BIT(name,i,ch); printf([COLOR=green]"%s"[/COLOR],name); } [/code] When compiling with Borland C it worked fine. However when I tried cimpiling it with VS 2005 I got the following error: "Unhandled exception at 0x00413529 in Learning …

Member Avatar for Salem
0
188
Member Avatar for amishosh

Hi! I cannot access my "Debug Windows" in VS 6. All the windows are grayed out and I cannot select them. What do I need to define to be able to access them? Thanks

Member Avatar for iamthwee
0
70
Member Avatar for amishosh

Hi! I'm looking for a tutorial to explain handles and messages in C. I tried searching google for a while with no real success. Maybe I'm using the wrong keywords... Thanks.

Member Avatar for Ancient Dragon
0
174
Member Avatar for amishosh

Hi! Is there a way that I can "Build" a single source file? Wihout creating a project? I want to be able to open a *.c file in Visual Studio and simply Build it with out having to choose a project. I know it's a whole different world but in …

Member Avatar for Tight_Coder_Ex
0
77
Member Avatar for amishosh

Hi! I live in Israel and currently attend a computer programming course. The truth is I'm not sure exactly where I'm headed. All I know is that right now we're learning C then moving on to C# and Java etc. I know that this course will NOT provide me with …

Member Avatar for amishosh
0
42
Member Avatar for amishosh

Hi! Even when I use windows versions of C++ compilers (Visual studio or Borland) when I compile my program it opens up in a DOS window. Is VB the only way the program will open up in a windows like window? Thanks, Ami

Member Avatar for fesago90
0
118
Member Avatar for amishosh

Hi! Here's my code: [code] for(i=0;i<N;i++) { for(j=0;j<M;j++) printf("%4.2f ",mat[i][j]); printf("\n"); } [/code] I want it to look like this: 68.85 52.25 32.00 -100.00 -632.25 -26.56 Instead I get: 68.85 52.25 32.00 -100.00 -632.25 -2.56 For life of me I can't remember how to get th alignment right. Anyone? Thanks

Member Avatar for Ravalon
0
81
Member Avatar for amishosh

Hi! First I'll say that I've searched this forum and read many threads and followed a few recommended links. I still need some clearifacation: I use Borlnad C++ V3.1 which runs in DOS. Can I draw an image in let say "Paint" and then display it with the above compiler …

Member Avatar for ~s.o.s~
0
158
Member Avatar for amishosh

I want to create the effect of a moving square. I would have to clear the previous position of the square and then draw a new one, right? And if that's tru how do I clear just that portion of the screen leaving the rest of my screen in tact? …

Member Avatar for John A
0
85
Member Avatar for uu666

Hello! here is what I wanna do: I have a while() statement, and inside of it I have some instructions to repeat. My problem is that, I want somehow to stop that loop ONLY when I press a key... I it's kinda like getch() but getch() waits for a keypress.... …

Member Avatar for Salem
0
136
Member Avatar for amishosh

Hi! My snake body is made of the char '*'. Does it make sense to save the coordinates (x,y) of each '*' in my snake in a struct array? This way when my snake moves it will be easy to move each '*' to the one infront of it. I …

Member Avatar for amishosh
0
90
Member Avatar for amishosh

Is there an output function in C that keeps the cursor ON the last char printed and NOT after it? (Aside from using gotoxy(wherex()-1,y)) Thanks Ami

Member Avatar for amishosh
0
78
Member Avatar for amishosh

Hi! I've been learning C in a course for almost a year now (twice a week 3 hours a night). I'm about to be tested soon and I shouldn't have trouble passing the test for C. The questions are all about "find the largets value in a vector" or "what …

Member Avatar for Ancient Dragon
0
84
Member Avatar for amishosh

Hi! I've tried to split it up a program I made for school into 3: header.h: has the functions declarations. func.c: contains the fundctions body. body.c: uses the functoins. Here's my code: [code] /* header.h */ void kelet(char *p); void copy(char *p1,char *p2); void insert(char *p1,char *p2); void reverse(char *p1); …

Member Avatar for Anonymusius
0
145
Member Avatar for amishosh

Hi! I have functions defined in ami.c and want to call them from friedman.c how do I link the 2? Thanks Ami

Member Avatar for ~s.o.s~
0
241
Member Avatar for amishosh

Hi! On different occassions (random as much as I can tell) the "gets" command does not work. The compiler simply skips it and moves on to the next code line. Like I said, other times it does work. Any suggestions? Thanks Ami

Member Avatar for ~s.o.s~
0
288