- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 5
- Posts with Upvotes
- 4
- Upvoting Members
- 5
- Downvotes Received
- 7
- Posts with Downvotes
- 5
- Downvoting Members
- 5
R&D Director
56 Posted Topics
Re: You can buid a DLL and call from your .NET program. | |
Re: You can use something like this: while ((c = getc(fp)) != EOF) if(c == 32) .... | |
Re: If I understand your question, you want to send your local file names to server and then server read them and calculate the response. When you send your request to server (HTTP-GET), the server is not able to read your local files. You need to send files binary data to … | |
Re: You could use http://32feet.codeplex.com/ library. | |
Re: You dont need last if else. instead just use else ... ... else //4095++ { volt = 10 ; } You also need to define result variable as a unsigned. | |
Re: We don't provide code. If you have any problems post your code and people will help you. But for now and your start point and for the last time: for(int iIndex = 1; iIndex<=100; iIndex++) { cout << iIndex << endl; if( iIndex%5==0 ) cout << endl; } | |
Re: Maybe you could use somthing like this: #include<stdio.h> #include<stdlib.h> #include<string.h> #define RESULT_FAILURE -1 #define RESULT_SUCCESS 0 int16_t fun(char *iaddr) { char* p = NULL; int i = 0; int len = 0; int rc = RESULT_SUCCESS; if(strlen(iaddr)>0) { len = strlen(iaddr)+1; p = (char*)malloc(len ); strcpy(p,iaddr); for(i=0;i<len;i++) { printf("%c", p[i]); … | |
Re: as I know GloMoSim software does not have C/C like developing environment. buddy you are in wrong place | |
Re: As deceptikon said, a declaration of variable is saying to compiler "I will use a variable it is defined before and on another file." | |
Re: C is Case Sensitive it means you must use all variables, macros, functions, ets as is in decleration. You also have to declare all variables before you are using them. I recommend you to use Camel Notation in naming of everythings except macros. | |
Re: Because you have to allocate a memory block for each pointer. Pointers as its name explain are variables those point to address of memory blocks, so when you declare a pointer it is not garantee to point to suitable area of system memory so you have to do that by … | |
Re: In windows you need to know system programming for using mouse event. | |
Re: This is working code on Watcom C/C++ #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <math.h> #include <string.h> int iConvertString2Integer(char *string, int iIndex, int iIntegerValue); int iString2Integer(char *string); int main (void) { char string[512]; printf("Enter a string of integers: "); scanf("%s\0", string); printf("The integer entered is : %d\n", iString2Integer((char *)string)); system("PAUSE"); … | |
Re: > Using puts() -- BRAVO!!! Finally someone who doesn't use printf() :o) I think you are a good C programmer. A few persons are using puts in their code, but puts performance is better than printf. | |
Re: change your lines 5,6 as below: `int s1[3],s2[3],s3[3],total[3],per[3],i; char name[3][20],pid[3][10];` and change line 31 as below: `printf("\n Your Total of Marks is:%d",(total[i]=s1[i]+s2[i]+s3[i]));` | |
Re: I think it is stupid thing to use pointer to pointer in this case. | |
Re: `#include <stdio.h>` is a precompiler command and said to compiler 'before starting to compile my file add stdio.h file to this line' There are several precompiler commands and #include is one of them. stdio.h file name is header file and there are alot of header files. | |
Re: Use GCC if it is in your decision. [Turbo/Borland C](http://blog.mousavi.net/2012/05/14/borland-c/) is from 80s and 90s. | |
Re: You need to read a little more about [pointers](http://blog.mousavi.net/2012/09/14/what-is-a-pointer/). For example in line 117 you attempt to create an new node by using emp variable before you were assigning any values to emp members. Because emp members (account structure) are pointer and you have to assign a variable. Pointers are … | |
Re: [Bluetooth Device Development using C#](http://blogs.msdn.com/b/codejunkie/archive/2008/09/13/bluetooth-device-control-development-using-c.aspx) | |
Re: I recommend you to use binary file read write for POS applications. Create an array of WaiterInfo and re-write all data to file every time that fields changed. Dont append to file or something like that. In this way you must add to or delete from array then write whole … | |
Re: You need to write your own C# compiler. there are not any compiler in the market for this purpose. | |
Re: I cant understand what is your problem because you could use multiple generics as you wrote above. for example: public class Node<K, T> { public K Key; public T Item; public Node<K, T> NextNode; public Node() { Key = default(K); Item = default(T); NextNode = null; } public Node(K key, … | |
Re: If you want that your WinForm application react as a web service server first you have to write TCP/IP server then implement one of web service protocols you want to use, usually SOAP. For more information about protocols [Click Here](http://blog.mousavi.net/2012/05/31/web-service-protocols/) | |
Re: both are the same thing. Look to this link [Click Here](http://blog.mousavi.net/2012/05/30/difference-between-string-and-system-string/) | |
Re: Just call the method that defined for button event into timer event method. private void timer1_Tick(object sender, EventArgs e) { button1_Click( sender, e); } you also could put null for parameters. private void timer1_Tick(object sender, EventArgs e) { button1_Click( null, null); } | |
Re: If there is a loop and you try to change ProgressBar value from this loop you have to check is your ProgressBar in the same thread of loop is working. (Use [B]InvokeRequired [/B]and if it is true [B]Invoke [/B]the method) I recommend you dont change the value of a ProgressBar … | |
Hi folks, I am working on a Windows Form project that all things in it are dynamically created during run time. So all controls are created during running application and also events are assigned to controls. Also I have to mention all controls are user defined controls. All event functions … | |
Re: Dear Epmpror, please put your own code so we will say you what is going wrong. This is not a forum for solving your homework. We just help you for your improvment. By the way you could look at this [url]http://www.daniweb.com/forums/thread43314.html[/url] | |
Re: use this code for "localhost" [CODE] using System.Web.Mail; . . . MailMessage xMailMessage = new MailMessage(); xMailMessage.From = "My Test System <test@test.com>"; xMailMessage.To = "vatoovatoo@mousavi.net"; xMailMessage.Subject = "This is a test"; xMailMessage.BodyFormat = MailFormat.Html; xMailMessage.Body = "<html><head><title>Test emial</title></head><br /><br /><hr>JUST A TEST<hr><br /><br /></body></html>"; SmtpMail.SmtpServer = "localhost"; SmtpMail.Send(xMailMessage); . . … | |
Re: As I understand this is not a recursive problem because F(1) is not defined. Also I cant find any F(a) = F(a+n) is not possible so this is not recursive. | |
Re: [QUOTE=mayada44;880643] i work in OFFOK Company[/QUOTE] Hey there buddy, welcome to Daniweb. :D I know alittle Arabic but not enough. I recommend that your company also put an English page for people like me ;) As I understand (maybe I am wrong) you are distributing Islamic Softwares :) | |
Re: You could use sprintf to convert int numbers to string then compare them with strcmp or memcmp | |
Re: if you want do run a loop at least once, it is better to use do-while loop. lets explain more. look this sample code: [CODE] FILE *fp; do { read file and assign some values } while( some data in file is equal to special value so file read again … | |
Re: [QUOTE=xponse;252551]I w'd like tom Download Turbo C (window version). Can any one sugget any site, thank in advance :confused:[/QUOTE] I think this is a little late for you but maybe some other people want to download ;) try this link [url]http://forum.mousavi.net/showthread.php?t=3[/url] | |
Re: I did some correction to your code and now it is working ;) Your fault was in set next node address in linked lists [CODE] #include <stdio.h> #include <string.h> #include <stdlib.h> #define FIRSTCLASS 0x01 #define ECONOMYCLASS 0x02 #define FIRSTSEATS 40 #define ECONOMYSEATS 40 #define SEATSIZE (FIRSTSEATS+ECONOMYSEATS) #define LENGTH 25 typedef … | |
Re: you also can convert HEX number to string then convert them to decimal or integer again. I mean [CODE] sprintf( tmp, "%02X%02X", TH1, TL1 ); sscanf( tmp, "%X", &intHex ); [/CODE] this is a second way to do this but jephthah's post is better ;) | |
Re: dear austinslik, please use code below. for sorting an array you could use one of sorting algorithms as below. here I use quick sort algorithm. you also could write bubble sort, insertion sort,....... [code=C] int iQuickSort( int aiBuffer[], int iLeft, int iRigth) { int iRef, iTemp; int iLeftIndex, iRigthIndex; iLeftIndex=iLeft; … | |
![]() | Re: You must post your code and ask for solving. ;) |
Re: What is "clear"? Your program is not a C program. It is C++. I think it is better that this post would moved to C++ section. Inside a class or structure (both are almost same thing in C++) you can not set member values because they are not still created. | |
Re: But this is not a C problem. This is just a math. question. | |
Re: start from here ;) [url]http://www.daniweb.com/forums/thread50370.html[/url] | |
Re: where you set the "ptr_size" value. Meybe it is equal to 50 ;) | |
Re: Your code is alittle old. In old 16 bit systems like DOS 6.0 there is a different memory addressing system named "segment" and far mentioned how the pointer can access to segments. But in nowadays 32 bit systems addressing is not via segment so there is no need to mention … | |
Re: mancode1007, I recommend you to read a file byte by byte and store in a buffer and assume all data is character type and then do any process you wish. I mean after reading your file your buffer will have a string like this "22333 Smith Alison 70\r\n12222 John Brown … | |
Re: if we suppose you are using VC++ 7.0 or 8.0, ints and floats are often 32-bit, chars 8-bit, and doubles are usually 64-bit. strings is not a base type. | |
Re: read this: [URL="http://www.daniweb.com/forums/../code/snippet109.html"]http://www.daniweb.com/code/snippet109.html[/URL] | |
Re: In C++ a struct or class needs to have a name to have a user defined constructor. The compiler will also generate the usual compiler generated constructors, but you can't get at them normally. | |
Re: Yes it is valid because printf return number of written characters. but if printf did not return a value, this program would be valid. this case is alittle hard to explain. %d in formatting string will look for suitable parameter, but if can not find it will put a dummy … |
The End.