15,539 Topics

Member Avatar for
Member Avatar for Mahen

Hi everyone, i wanted my program to create another small program, but it stopped at `"\x00"`, why and what can i do. Thnaks #include <stdio.h> int main() { FILE *out; out = fopen("c:\\cpy.exe", "wb"); fprintf(out, "\xCD\x21\x00\xCD\x21"); fclose(out); return 0; }

Member Avatar for Chainsaw
0
166
Member Avatar for Sukhbir
Member Avatar for XianBin
0
134
Member Avatar for Mahen

hi everyone, hope u r all feeling fine :mrgreen: this is my program: #include <stdio.h> int main() { char pass[12]; printf("Enter Password: "); gets(pass); if (pass == "neo") { printf ("ini"); } else printf("Wrong"); return 0 ; } when i enter "neo" as password, it does the "wrong" thing :( …

Member Avatar for Dave Sinkula
0
173
Member Avatar for chound

I want to know where I can find tutorial on controlling the hardware of my pc using C :o

0
60
Member Avatar for kicha

how can i evaluate an expression using tree example: 2*6+5/10 actually i have doubt in inserting in a tree.

Member Avatar for Chainsaw
0
114
Member Avatar for Sukhbir

Consider the following programme void main() { char str[]="\12345s\n"; printf("%d",sizeof(str)); } Output is :6 can someone explain me why.And is sizeof contain null value while gigving the size of any string.

Member Avatar for Dave Sinkula
0
126
Member Avatar for apurva agarwal

winding rule is used to find the points either interior or exterior to ploygon so , but the problem lies that when the point lies in the same line we have to apply some different concept that i am not able get it sp pleas explain it.

Member Avatar for nallahp
0
127
Member Avatar for shabna

sir,please correct the errors in this program and also write the algorithm in this program and give me an introduction to this program.Pls send the error free program,algorithm & introduction before 03/09/2004.thank you #include<iostream> #include<iomanip> #include<stdio> #include<cstdlib> #include<cctype> #include<fstream> using namespace std; const int maxchrs=50; const int items=3; const short …

Member Avatar for Dani
0
121
Member Avatar for Brent_Ritterbec

Hello, I started learning C about 2 days ago, and now I have come to a problem that I can't figure out why I am getting the result I am getting. I bought a book, and I have proceeded quickly through it until now. The problem I was given was …

Member Avatar for Brent_Ritterbec
0
284
Member Avatar for apurva agarwal

insert a node in circular link list without traversing it. :?: you have to insert the node at any place "without traversing it help me out!!! in this

Member Avatar for Chainsaw
2
155
Member Avatar for wild_potatos

Hi guys / girls i am new in this forum and i hope you could help me in this problem. i programmed a link list which stores some information one of them is strings and i entered them using the function gets(); instead of scanf(); to enable the program to …

Member Avatar for Dave Sinkula
0
221
Member Avatar for chound

How do I create a function with variable parameters. Will "functionname(float a, ...);" work? If it does how do I use the variables. Eg. [CODE]void f1(int i, ...); void main() { int a, b,c; cout<<"Enter 3 values"; cin>>a>>b>>c; f1(a, b, c); } void fi() { //How do I access the …

Member Avatar for Chainsaw
0
149
Member Avatar for sonix

anyone remembers the syntax of reading a file into C and subsequently printing it out? for eg. i have the file 'matrix.txt' the contents inside the file is as follows: <matrix> rows = 2; cols = 2; 1 2 2 4 </matrix> how do i read it into my C …

Member Avatar for Dave Sinkula
0
460
Member Avatar for ArmedCoder

Hi, im just learning about multithreading for a program i am writing that ne eds to read from multiple camreas attached to the computer at the same time. I know how to create threads and pass around info, and i know a bit about mu texes but this is not …

Member Avatar for ArmedCoder
0
188
Member Avatar for jatin

hey guys..... i need 2 write this program which picks as and when a new message is written into the syslog file(syslog is a system file in unix) the trouble is ther r hundred's of messeges written into syslog file. I was experimenting with End Of File and pointerts but …

0
94
Member Avatar for RITZY_G

can u please xplain' wat this error means: [COLOR=Sienna][FONT=Comic Sans MS][U][I][B][SIZE=2]Linking... file_name.obj : error LNK2001: unresolved external symbol "int * resultarray" (?resultarray@@3PAHA) Debug/file_name.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe.[/SIZE][/B][/I][/U][/FONT][/COLOR]

Member Avatar for Dave Sinkula
0
145
Member Avatar for let us c

hi i want to get following output. 1 2 2 2 3 3 3 3 3 4 4 4 4 4 4 4 and so on in 1st row one 1 in 2nd three 2 in 3rd five 3 in 4rt seven 4 in 5th nine 5 (all odd outputs)

Member Avatar for let us c
0
94
Member Avatar for Sukhbir

consider the programme void main() { unsigned i=1; signed j=-1; if(i<j) printf("less"); } output is: less why can someone explain me

Member Avatar for Dave Sinkula
0
128
Member Avatar for Mahen

hi everyone, I belive in daniweb and post my question so that everyone can help me. CAN anyone provide me with a link to a web that has a tutorial about: 1. Socket programming in win32 2. Porting UNIX C's to WIN32 THANKS :p

Member Avatar for FireNet
0
116
Member Avatar for Mahen

Hi everyone, First of all thank you very much for all the help that you have been providing me. Unfortunately, i am with another bug. This time, i am havinh problems linking OBJ files that uses the following: #include <stdio.h> #include <winsock2.h> #pragma comment(lib, "ws2_32") When i link them, i …

Member Avatar for Dave Sinkula
0
243
Member Avatar for kalinga

i dont understand about how to use the reference and value parameters in a program. I also need to know how to pass an array to a function.give me the reasons with examples .. thank you kalinga....

Member Avatar for Dave Sinkula
0
218
Member Avatar for Mahen

Hi everyone, First of all thank you very much for all the help that you have been providing me. Unfortunately, i am hist with another bug. This time, i am havinh problems linking OBJ files that uses the following: #include <stdio.h> #include <winsock2.h> #pragma comment(lib, "ws2_32") When i link them, …

0
53
Member Avatar for smithag261

I want to know how to write a program to fill the entire screen with a smiling face. The smiling face has an ascii value 1.

Member Avatar for FireNet
0
70
Member Avatar for madref

This program won't print the menu number the user enters??? /* Currency equivalence to the Dollar*/ #include <stdio.h> float Australian_Dollar; //Australian Dollar float Euro; //Euro Dollar float British_Pound; //British_Pound Dollar float Japanese_Yen; //Japanese_Yen Dollar float Swiss_Franc; //Swiss_Franc Dollar float count; int menunum; /* Dollar conversion */ int main(void) { // …

Member Avatar for red_evolve
0
849
Member Avatar for tahataha

is there a possibility to make animation with cpp is there any documentation for this

Member Avatar for tahataha
0
102
Member Avatar for vivekgalatage

#include <stdio.h> #include <stdlib.h> class A { int a; public: A() { a=100; } int get() { return a; } }; int main() { A *a=new A(); int *p=(int *)a; printf("%d\n",a->get()); *p=200; printf("%d\n",a->get()); system("pause"); } its out put is - 100 200 so can any body help me to avoid …

Member Avatar for Chainsaw
0
152
Member Avatar for shalin

Hi all here is small C program main() { int i=2; printf("%d\n",++i * ++i * ++i * ++i); } it gives o/p 480 why..? Thanks for u r reply. shalin

Member Avatar for pursottam tiwar
0
134
Member Avatar for pranavjec

hi guys, can anyone here give me c program about any file which would in binary format . the program will copy some content of binany file which would be on a tape drive (or any drive) & paste it another text file that would be in disk. thanks in …

Member Avatar for WhataNerd
0
122
Member Avatar for pranavjec

hi guys, i have no idea how these lines work the given c program(see attachment).the program is about Read SEG-Y input data from disk file (stream of bytes) to properly structured SEG-Y with proper IRGs on tape.The program didnt include any path of the file.does theses line works as path …

0
86
Member Avatar for morgan drutchas

In Microsoft Access 2000, I have a form that is for adding a new record and contains 2 subforms that each link to different tables. The subforms are connected by a user ID. I do not want the user to type his user ID twice, so when the user types …

0
73

The End.