Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
46% Quality Score
Upvotes Received
5
Posts with Upvotes
4
Upvoting Members
5
Downvotes Received
7
Posts with Downvotes
5
Downvoting Members
5
7 Commented Posts
0 Endorsements
Ranked #2K
~20.3K People Reached
About Me

R&D Director

Favorite Forums
Favorite Tags
c x 41
c++ x 8
c# x 7
gui x 2

56 Posted Topics

Member Avatar for TheRoyalFalcon
Member Avatar for frctl

You can use something like this: while ((c = getc(fp)) != EOF) if(c == 32) ....

Member Avatar for hes8
0
161
Member Avatar for Pradeep_10

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 …

Member Avatar for NivekW
0
379
Member Avatar for OTOSystem
Member Avatar for naz1234

You dont need last if else. instead just use else ... ... else //4095++ { volt = 10 ; } You also need to define result variable as a unsigned.

Member Avatar for jnneson
0
265
Member Avatar for nashmug
Re: c++

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; }

Member Avatar for VatooVatoo
0
130
Member Avatar for can-mohan

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]); …

Member Avatar for can-mohan
0
1K
Member Avatar for nagarjuna

as I know GloMoSim software does not have C/C like developing environment. buddy you are in wrong place

Member Avatar for NASEEMSHAKEEL
0
246
Member Avatar for srivardhanms

As deceptikon said, a declaration of variable is saying to compiler "I will use a variable it is defined before and on another file."

Member Avatar for srivardhanms
0
1K
Member Avatar for ali11

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.

Member Avatar for VatooVatoo
0
188
Member Avatar for prakhs

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 …

Member Avatar for prakhs
0
211
Member Avatar for Lemony Lime
Member Avatar for np complete
0
177
Member Avatar for BoulderMen

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"); …

Member Avatar for WaltP
0
190
Member Avatar for celina1234

> 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.

Member Avatar for VatooVatoo
0
149
Member Avatar for bhavin.chavada

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]));`

Member Avatar for deceptikon
0
146
Member Avatar for rithish
Member Avatar for delta_frost
-1
111
Member Avatar for Faiza akmal

`#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.

Member Avatar for nitin1
0
99
Member Avatar for Nomi55

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.

Member Avatar for Nomi55
0
259
Member Avatar for sebass123

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 …

Member Avatar for sebass123
0
272
Member Avatar for JAYABAJAJ

[Bluetooth Device Development using C#](http://blogs.msdn.com/b/codejunkie/archive/2008/09/13/bluetooth-device-control-development-using-c.aspx)

Member Avatar for VatooVatoo
0
60
Member Avatar for bhagawatshinde
Member Avatar for DizaFire

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 …

Member Avatar for VatooVatoo
0
157
Member Avatar for MasterHacker110

You need to write your own C# compiler. there are not any compiler in the market for this purpose.

Member Avatar for VatooVatoo
-1
153
Member Avatar for VIeditorlover

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, …

Member Avatar for VatooVatoo
0
227
Member Avatar for pitic

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/)

Member Avatar for qadeer37
0
356
Member Avatar for foo

both are the same thing. Look to this link [Click Here](http://blog.mousavi.net/2012/05/30/difference-between-string-and-system-string/)

Member Avatar for skatamatic
0
284
Member Avatar for George_91

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); }

Member Avatar for skatamatic
0
1K
Member Avatar for D.Twomey

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 …

Member Avatar for NetDeveloper
0
610
Member Avatar for VatooVatoo

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 …

Member Avatar for VatooVatoo
0
148
Member Avatar for empror9

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]

Member Avatar for Agilemind
0
349
Member Avatar for anish.anick

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); . . …

Member Avatar for kvprajapati
0
3K
Member Avatar for red999

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.

Member Avatar for JJS
0
80
Member Avatar for mayada44

[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 :)

Member Avatar for mayada44
0
53
Member Avatar for kvprajapati

You could use sprintf to convert int numbers to string then compare them with strcmp or memcmp

Member Avatar for Dave Sinkula
0
180
Member Avatar for winrawr

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 …

Member Avatar for winrawr
0
147
Member Avatar for xponse

[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]

Member Avatar for ~s.o.s~
2
457
Member Avatar for bemo55

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 …

Member Avatar for VatooVatoo
0
298
Member Avatar for kaos

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 ;)

Member Avatar for VatooVatoo
0
94
Member Avatar for austinslik

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; …

Member Avatar for austinslik
0
121
Member Avatar for vadrag
Member Avatar for indiansoil

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.

Member Avatar for gagansharma
0
247
Member Avatar for shyka
Member Avatar for gagansharma
0
258
Member Avatar for atish12

start from here ;) [url]http://www.daniweb.com/forums/thread50370.html[/url]

Member Avatar for ithelp
0
82
Member Avatar for JpegUser
Member Avatar for ajay.krish123

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 …

Member Avatar for gagansharma
0
184
Member Avatar for mancode1007

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 …

Member Avatar for jephthah
0
2K
Member Avatar for AshwinCareem

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.

Member Avatar for Nick Evan
0
156
Member Avatar for srikanth329

read this: [URL="http://www.daniweb.com/forums/../code/snippet109.html"]http://www.daniweb.com/code/snippet109.html[/URL]

Member Avatar for alsoumhi
0
283
Member Avatar for brijendramishra

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.

Member Avatar for VatooVatoo
0
91
Member Avatar for gaurav252

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 …

Member Avatar for Ancient Dragon
0
106

The End.