Click here to Skip to main content
Page 1 of 201
Page Size: 10 · 25 · 50


Tag filtered by:  C [x]
Question 13 May 2013   license: CPOL
how can i find the week number of a given dateexample 1/1/2010 - 1 week 22/2/2010 - 9 week like this ?????
Answer 13 May 2013   license: CPOL
Its a small setting in your editor. In view, or in personalization or some similar setting, you must have checked the "Show spaces and tabs" or something to that effect.
Answer 13 May 2013   license: CPOL
In your find function you have the following:node* find(node *start,int item,node *locp){ node *loc,*save,*ptr; save=start; ptr=start->next; while(ptr!=start && ptr->info!=item) { save=ptr; ptr=ptr->next; } if(ptr->info==item) { ...
Question 13 May 2013   license: CPOL
This XML is to parsed through the Libxml in C. 000 ...
Question 12 May 2013   license: CPOL
class·$(Class·name)|{publi...
Catalog 12 May 2013   license: Commercial
Unsurpassed Documentation Comment generation and updating for C#, Visual Basic, C++/CLI, C++, C, Java and UnrealScript code. Keep your comments readable and in sync with the code with a minimum of effort. Plus other coding utilities.
Catalog 11 May 2013   license: Limited Time Trial
IncrediBuild is an easy-to-use platform for accelerating Windows-based processes through advanced Grid Computing technology. IncrediBuild speeds up Visual Studio and make based code builds as well as data builds, scripts and applications.
Answer 11 May 2013   license: CPOL
Try this instead:int pos = 0;int flag = 0;node* ptr = start;while(ptr != NULL){ if(ptr->info == item) { flag = 1; break; } else { ++pos; ptr = ptr->next; }}Ian.
C
Answer 11 May 2013   license: CPOL
Instead of your while loop: while(ptr->next!=NULL)You should use while( ptr != NULL)ptr is the pointer to the current node that you want to inspect and compare with the item. So ptr must be non-null, and not ptr->next.
C
Answer 11 May 2013   license: CPOL
Yes there is. And it's is unclear what you are trying to do (where are you trying to insert the new node?). Here are three options:// If you are trying to insert a new node at the end of the linked list:// e.g. you have [start][node a][node b]// ptr = any node in the list; insert node...
C
Answer 11 May 2013   license: CPOL
Um.Have you looked at the code at all? Or tried running it in the debugger?Assuming your insert operation should insert a new node between the parameter node and the next node in the listStart:A -> B -> CAnd you pass "B" in the you expect:A -> B -> NEW ->...
C
Answer 11 May 2013   license: CPOL
I think the problem is the lineif(ptr->next!=NULL)in your insert function. If you change the if to while it should work fine.
C
Question 11 May 2013   license: CPOL
Respected techies i would like to know how to filter downloading of .exe or any other fileAdded from reposted "question":give me a idea not allow .exe file from downloading in windows filtering platform architecture.[edit]Questions combined - OriginalGriff[/edit]
Answer 10 May 2013   license: CPOL
I fixed some bugs (uninitialized variables). Please note: you should handle the digit 0 (zero) too. #include #include void show_number(int number){ int counter = 0; int i, temp, digit, x, ten; if (number > 9) { temp = number; while...
Answer 10 May 2013   license: CPOL
This code is so naive that it does not worth reviewing. This is not even programming.This is the first step you could do: put all your English numeral in some array of strings. Than, if you have a number 0..9, its English representation of it will be found in one line of code; this is the...
Question 10 May 2013   license: CPOL
I am having trouble coding a problem from Kochan's "Programming in C," Chapter 6, Exercise 6. The problem is to take user input (an integer) and display it in english. Ex. User inputs "123" output should be "one two three." At this point in the book, I should only have basic knowledge of C (no...
Article 10 May 2013   license: CPOL
This article explains why the Arduino digital I/O functions are slow and compares them with faster implementation used in Wiring framework.
Answer 10 May 2013   license: CPOL
/*****************************...
Answer 10 May 2013   license: CPOL
See http://msdn.microsoft.com/en-us/library/windows/desktop/ms741540(v=vs.85).aspx[^] for a complete description of how these events are generated and consumed.
Question 9 May 2013   license: CPOL
Hi Everyone,As a continuation of one of my previous questions...URL belowalphanumeric increment in C[^]Using the above working code, I open a file, use fgets and sscanf to scan the rows. Each row has a number of items, one of which is a value of 6 characters. The code then...
Question 9 May 2013   license: CPOL
I am working on newtwork event based socket application. When client has sent some data and there is something to be read on the socket, FD_READ network event is generated.Now according to my understanding, when server wants to write over the socket, there must be an event generated i.e....
Answer 9 May 2013   license: CPOL
Your while condition is uninfluential (always true). According to the documentation[^]:Return ValueThe total number of elements successfully read is returned.If this number differs from the count parameter, either a reading error occurred or the end-of-file was reached while reading....
Question 9 May 2013   license: CPOL
I have written this code which reads contents of text file into a buffer and sends the buffer over the socket until end of file.The code works fine and after complete file is sent to over the socket, fread() fails, however, according to my undersanding when complete file is sent over the...
Answer 9 May 2013   license: CPOL
If you get "any other way" to read the lines of the files, they still will be the same lines. It won't solve the problem of the file "format". The question makes no sense.For example, you can use std::istream::getline:http://www.cplusplus.com/reference/istream/istream/getline/[^].—SA
Question 9 May 2013   license: CPOL
I want to read one line of the text file, save it to a buffer, send the buffer over a udp socket and then go and read the second line and so on..So far, since I knew the data type of the text to be read from the text file, I had been using fscanf() to read each line from the text file. But...
Answer 9 May 2013   license: CPOL
Here you are the code of Merge Sort:/* author: Radoslav Dimitrov OMG Grade 6*/#include #include #include using namespace std;int mergeSort(int arr[], int temp[], int lqvo, int dqsno);int merge(int arr[], int temp[], int lqvo, int sreda, int dqsno);int mergeSort(int...
Answer 9 May 2013   license: CPOL
Exactly how you deal with this depends to a large extent of what system you are using to compile and run this code.Look at your system closely - does it have a debugger? If so, then use it: single step through your program and try to work out why it is looping.If it doesn't, then start...
Answer 8 May 2013   license: CPOL
Such code, albeit valid, make no sense.It checks ten times if x is different from y and if the condition is satisfied (actually it is NOT satisfied) does NOTHING (due to the semicolon after the if statement: such a semicolon is the 'empty statement').
C
Answer 8 May 2013   license: CPOL
While do you want to use such an obsolete development environment? Let me suggest you a more modern alternative to turbo C, like Visual C++ 2010 Express[^].Anyway, for building a (very) simple game (let's say a 2D one) you need to learn how to draw graphics primitives on the screen (BGI with...
C
Question 8 May 2013   license: CPOL
this is C Language code where the semicolon is put right after if condition plz explain me this code.#includeint main(){ int x = 10, y = 100%90, i; for(i=1; i
C
Question 8 May 2013   license: CPOL
sir, i am a beginner of turbo c programming, i want to design a snooker game using turbo C so kindly hekp me.....thank u
Answer 8 May 2013   license: CPOL
Changing a flag in the project properties.Go To Properties-»linker-»system and SetThe Enable Large addresses To Supportaddresses Larger Than 2Gb
Answer 8 May 2013   license: CPOL
You didn't bother to close the file, did you?Call fclose(fpSend); when you've done with it (before returning from the WndProc).
Question 8 May 2013   license: CPOL
I am trying to send a text file at a socket after every 10ms. The code works fine and keeps on sending the text file over the socket after an interval of 10ms. But after some period of time (like after 3-4 minutes), fopen() fils (though fopen() works fine for some duration) and I get an error...
Answer 8 May 2013   license: CPOL
i think set a limit to this loop while((prec(stack[top],Q[i]))>=0) to avoid memory error and use %c to print array character
C
Question 8 May 2013   license: CPOL
My following code is compiled successfully and runs perfectly for sometime handling 40 clients but after sometime, it gives an error "Debug Assertiion Failed expression: (_osfile(fh) & fopen)".I searched on internet and found a solution:Project + Properties, Configuration properties,...
Answer 8 May 2013   license: CPOL
The allocation limit is defined by two factors: instruction-set architecture of the processor used (should be supported by the adequate Windows version), and available physical memory. On top of it, the allocation is limited by the current level of memory utilization. Yes, there is a 2GB limit,...
Question 8 May 2013   license: CPOL
Hi,I have a question about dynamic memory allocation.Is there a limitation (except hardware - available RAM) on the amount of memory that can be allocated?can i allocate 1MB in a loop 2000 times resulting in a 2GB of memory allocation?I have a faint memory that says that there...
Question 8 May 2013   license: CPOL
Hello everyone! Now i'm doing my graduation's project. It's about the american sign language recognition system. I intend to use the product HMM method. I have already finished the skin segmentation and hand tracking, now i'm going to do the sign recognition. But the biggest problem is that I...
C
Question 8 May 2013   license: CPOL
Hello ,, I`m beginner With VS C++ I want to make gui for my C++ source code I have 3 quiestion q1:When I try to linking 2 forms togother errore show as below : Error 1 error C2065: 'Form2' : undeclared identifier c:\users\sara\documents\visual studio...
Answer 8 May 2013   license: CPOL
The error message indicates stack problems around threadno. And it is really helpful here when looking at the occurences for that variable:char threadno[2];itoa(threadNumber,threadno,10);strcat(threadno,".txt");Did you see the problem? The string can hold only one character plus NULL...
Question 8 May 2013   license: CPOL
My following code gives an error "Run-Time Check Failure # 2 - Stack around variable 'thread no' was corrupted." if I add a "break" inside my if statement. I have also hghlighted this "break" inside the code. If I remove thi "break", the error is removed.Can anyone explain me please why does...
Answer 8 May 2013   license: CPOL
I've done some research for you using my old friend google and that trustworthy dependable guy spat out quite a few suggestions:RECLAIMING SPACE IN FILES[^]Organizing Files for Performance:Reclaiming space in files [^]Reclaiming space in files[^]Regards,— Manfred

Page 1 of 201
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web01 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid