19,876 Topics
![]() | |
hai everybody, know only i start learning c program,while compiling any program i have the error "[B]stdio.h was not included"[/B] even any header file it may math.h,conio.hstdlib.h etc,we include in our program it show this error [B]"you header file is not included"[/B] [B]how will i rectify the error.[/B] [B]Thanks in … | |
Hmm,first sorry for some grammar mistakes... I have a big problem with graphics in C... For 2 days i'm looking on internet and nothing...I saw some theards and posts but none of the lib didn't work...(It was forums on my language ) I'm working in VS 6.0 I saw here … | |
If you have to count numbers of 1 in a 32 bit word. Other than checking every other bit or dividing the bits is 4 parts and then using lookup table. What will be some other most efficent way ? | |
[COLOR=#0000ff]switch[/COLOR][COLOR=#000000](time)[/COLOR] { [COLOR=#0000ff]case[/COLOR] 1: System.Console.WriteLine(" Enter the century. ie 20 or 19."); C = System.Console.ReadLine(); Convert.ToInt32(C); [COLOR=#0000ff]goto[/COLOR] [COLOR=#0000ff]case[/COLOR] 2; [COLOR=#0000ff]case[/COLOR] 2: System.Console.WriteLine("Enter year in YY format. ie 96") ; Y = System.Console.ReadLine(); Convert.ToInt32(Y); [COLOR=#0000ff]goto[/COLOR] [COLOR=#0000ff]case[/COLOR] 3; [COLOR=#0000ff]case[/COLOR] 3: System.Console.WriteLine("Enter month in MM format. ie 03"); M = System.Console.ReadLine(); Convert.ToInt32(M); [COLOR=#0000ff]goto[/COLOR] … | |
i've been trying to use fscanf to parse parts of a line from a file. The format of each line is like the following: Connecticut,1788,Hartford,29 I've been trying to use this: [CODE]fscanf( fpIn, "%[^,], %d% [^,], %d", name, &year, cap, &popRank )[/CODE] To extract the state, year, capital, and population … | |
Hi Guys, I wonder if someone can help me out with this. I'm running the same C code in diffferent platforms (windows/unix) but getting different result. For instance the code is: [code=cplusplus] fgets(line,LINE_BUF,fp); while (!feof(fp)) { Len=strlen(line) - 1; if ( (newNode=malloc(sizeof(ListNode))) == NULL) { fprintf(stderr,"\nListInsert: Memory Allocation failed! Aborting.\n"); … | |
/*****in the book ive read, they gave me a code which will be placed in the .rss file as shown below...*****/ RESOURCE LISTBOX r_demo_listbox { flags = EAknListBoxSelectionList; array_id = r_demo_listbox_items; } RESOURCE ARRAY r_demo_listbox_items { items = { LBUF { txt = "Item1"; }, LBUF { txt = "Item2"; … | |
Create a DVD rental shop system using OBJECT ORIENTED programming approach. The system will create a list of ten DVD’s that can be rented from the rental shop. The system is used via the command line. When the shop begins trading a list of available DVD’s will be displayed. The … | |
I have to do a Project in C++I in mid level in C++. Can anybody provide me some guidelines. Thanking You. | |
i am using CreateThread to, unsurprisingly, start a thread :p is it possible to return a value? i need to return either true or false at least. ideally i need to return 0, 1 or 2 to indicate the success of certain things that go on inside the thread. I … | |
Hi, i dont know [I]<<edited profanity>>[/I] about C. But maybe you can help me in some really light coding (i think). I want to do a plug in for any RTF editor, like wordpad, in which User-Defined Keywords, are highlighted. In this plugin it will also be possible to save … | |
Friends, I have a question: Many times in books and tutorials I'm sent to consult the Standard C Library reference. Sometimes, references are made to some Standard C function. Where do I see the Standard C Library in a compiler. I don't see any source code in my compiler that … | |
can anyone help me...?? how can i put image in the application box of my program...??? vs.net gave me a default program found in the .rss file but it only says "<put your stuff here>" as shown from this rss file... [code=c] RESOURCE DIALOG r_symbian3_dialog { flags=EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar | … | |
Hi everybody I am a beginner with C++ programming. And I need some help. How can I start with this program *********** [IMG]http://www.gidforums.com/images/gid/smilies/icon_smile.gif[/IMG] The program is using a text file of information as the source of the questions. The program starts by outputting a simple text information screen: Question Master … | |
Hi all, Can any one point to me how to develop a screensaver in winxp. What language shud i use to write the code. I have browsed the net and found some native code in c. Is this the way to develop. Has anyone played around with it? Looking fwd … ![]() | |
Hi, While compiling the code for accessing files from a wacom intuos2 tablet i am getting the following error. This error persists for other programs that i have downloaded from the net. The error is as follows: " File format not recognized ld returned 1 exit status C:\ONLINE\Makefile.win [Build Error] … | |
Hi Im trying to use the stl vector to implement a container. The container doesnot need any data and member functions. It should just act as a stack for the objects. But the objects are not homogneous.so I don t think i can use vector. How can I implement this … | |
Hi, I am trying to make a method inside a class that will remove the first 2 characters of a string of characters. Sounds simple enough, I though it was, but actually implementing it took a bit of thought and doesn't seem to work. [code] void classname::removeFirstChars(char * buffer) { … | |
[URL="http://img218.imageshack.us/my.php?image=sketchmh1.gif"][URL=http://img513.imageshack.us/my.php?image=sketchlw8.gif][IMG]http://img513.imageshack.us/img513/8739/sketchlw8.th.gif[/IMG][/URL][/URL] I have something like this : The reallocation of a piece of memory that works like a circular queues I've made a sketch explaining this ,I hope , very clearly I just need a clue,a tip,something that will get me started , because right now I'm stucked Thx | |
Suppose we have [code=c] main() { try{ while(error) throw 1st excep } catch(1st excep) { if (condition) we have to jump to 2nd excep is it possible? i am unable to send from this catch to next catch. pls help me with codin/example..........? } catch(2nd excep) { ...... } } … | |
Hi All :mrgreen: , was mucking about with a small programme I have which makes a triangle pattern when entering in a number. It uses nested For loops. I now want to create the same thing using functions as im only just beginning to learn the C language. I have … | |
Ok that might sound stupid, but Id like to know how to get box with error message.... I dont know how to explain what i realy want so here is a screenshot. [IMG]http://www.trendmicro.com/vinfo/images/worm_cydog_a_img1.gif[/IMG] This is error box...How to make it... Can you send me link with sources od this boxes … | |
What could I include in this function: [code] MessageBox( NULL, "Dolgcas s tabo, ko si tok zabit...grem js", "Message", MB_OK | MB_ICONINFORMATION );[/code] what can I insert instead of frist NULL? [php] MessageBox( NULL (here what could I insert instead of NULL), "Dolgcas s tabo, ko si tok zabit...grem js", … | |
when I initialize the array in this way: const int size = 10; int myArray[size]; it works well. But I have to initialize it in this way: const int size =pow(2, Depth()+1)-1; int myArray[size]; in this case it throw an error which is "expected constant expression" What should I do??? … | |
[COLOR=blue]Write a program that, when run, will print out its source code. This source code, inWrite a program that, when run, will print out its source code. This source code, in turn, should compile and print out itself. turn, should compile and print out itself.[/COLOR] :p | |
I try read a story text file using c. the problem is i want one paragraf in one variabel. i am confuse how much i should alocate the buffer size? [code] #include <stdio.h> int main() { char buf[255]; <<HOW MUCH SHOULD WE ALOCATE TE BUFFER? FILE* fp = fopen("somefile.txt","r"); if( … | |
Hi, i have made a code. Its meant to announce a "Sentence" but i dont know how to make a string into a sentece. The string up to now only announces the first word of the sentece. [CODE] //Announce }else if(memcmp((void*)lpcLine, "/announce ", 10) == 0){ bRet = false; char … | |
I have been trying to figure out how to deal with any situation when the result is bigger than what a integer declared can hold. For example: [code] [COLOR=Blue]/* * Old_guy.c * */[/COLOR] [COLOR=Magenta] #include <stdio.h> [/COLOR] int main() { unsigned long int hartbits; [COLOR=Blue] /* years * days * … | |
Hi , can anyone give me some good links to learn all about data structures and using them in C. I have an exam soon on the topic and although i did went through it in my college days, its all washed out now. Thanks in advance. | |
hi I am new to C++ and I want to vrite some kind of "virus" for windows. The problem is, I dont want that command line opens when program runs. Its actualy unfinished loop, which beeps all the time. Now i want to know how to make "hidden" program. I … | |
write a program that awards marks depending on the instane of the guess you make. the correct guess is may be 10. if you guess correct the first time you are awarded 10 marks. you have a maximum of 10 chances to make the correct guess. marks awarded by guessing … | |
I have been struggling with this program assignment for weeks now. Can someone offer some advice on how to only accept numerical input, and to reject anything else? Here is my code. [code=cpp] #include <stdio.h> #include <ctype.h> void main() { //Declaration of Variables float kPrice; //Price to Calculate int choice; … | |
hello i have the following char Ambiglist[1000]; this variable contains a company name and postcode, but there may be numerous of both ie STEPHEN COMPANY LTD;TN25 8a7 JOHN JACKSON LTD;98asHHS HUMBURG LTD;8JSHAKS i want to read in and store the company names in a variable, but i cant for the … ![]() | |
My college programming teacher gave me this pseudocode assignment on his first lecture. For crying out loud i have never heard anything like that. Actually am suppose to [I]Write a pseudocode to generate the [/I] [I]1)[/I] [I]fabonacii series &[/I] [I]2)[/I] [I]prime numbers btw 1 & 50. [/I] [I] -[B]Note that … | |
I am writing a C program using Dev-CPP. It uses a 3 dimensional array to store around 350 values as shown below. [code=c] db[2][0][1]=3278; db[2][0][4]=2368; db[3][0][3]=6686; db[2][0][6]=7224; .. .. .. [/code] I get a valid output when I read the array with the following code [code=c] zone = db[2][0][1]; printf("%d",zone); … | |
Hi all, I am just new to progamming .I am writng small twenty card game.What I want I dont repeat the cards again to next player after first user received.And in real I wana do game with more than two player.But in my code have some problem with print out … | |
[COLOR=#555555]I want to use static buttons with invisible background to the text. does anyone know how to do that? I have a picture in the background, and when I use a static button, it has a gray background, which doesn't look nice at all....:-| ![/COLOR] | |
Write a program that can simulate the following CPU scheduling algorithms: 1. FCFS 2. RR (new processes are added at the beginning of the ready queue, the quantum is one time unit) 3. Priority based 4. SJF non-preemptive 5. SRTF The program can be written in either C or Pascal. … | |
06)How can we turn on and turn off the serial ports’ DTR and other pins………? When we transfer a file from one computer to another is there need to configure these pins or they are automatically configured? | |
I'm just trying to get a handle on the when and why of overloaded operators. I the following snippet: the line: T& operator[] ... is there for use in the copy constructor? the line : const T& operator [] ... is there for the constructor definition? In english, the code … | |
how to make computer shutdown in C?which header do i have to include? | |
I just writing the simple twenty one card game...now evth work and fine. And I put cards from 2 to A with concerning value.But when the debug step coming '0'comes to input with value '10'(K is worth 10 etc). It make me so confused. here is my code: [code]#include <iostream> … | |
Hello again! I am using code blocks with the gcc compiler and the gdb debugger (which is a little buggy itself). If i have a program running in debug that requires an input from the keyboard to continue, how do i do that? | |
Hello, I'm working on a stock trading assignment. I have developed the algorithm for trading, and now I need a little help on getting the data from a server. There's a server that replies to the following request: servername stockcost <stockname> and I assume I can use it like: int … | |
Hello, i really need code for creating a binary search tree from pre-order and post order traversals.......and print its output in post order and level order traversals....pls help... ![]() | |
08)Can we read from a port while write to the same port? When we short the TX and Rx pins the value TX can be captured from the same port as a data read from port? | |
10)Can we use C++ codes to change the voltages of mother boards? How can change this ? simple codes please? How can we check whether that changes are configured to the mother board or not? Is there softwares? | |
02)What are the purpose of drivers? I had heard this “as example: VGA drivers adjust voltages of VGA chips……” Is that correct? Is there any thing than that if u know please tell me……….. I m really interesting in driver and port programming……….If u can please give me some simple … | |
07)when file transfer between two computers, is there need to code two programmes for receiving data and transmitting data seperately? If not how?please give me a code example…………?How is the flowcontrol is done? Is it done by software ,hardware or both? |
The End.