15,539 Topics
|
|
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; } |
|
|
|
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 :( … |
|
I want to know where I can find tutorial on controlling the hardware of my pc using C :o |
|
how can i evaluate an expression using tree example: 2*6+5/10 actually i have doubt in inserting in a tree. |
|
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. |
|
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. |
|
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 … |
|
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 … |
|
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 |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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] |
|
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) |
|
consider the programme void main() { unsigned i=1; signed j=-1; if(i<j) printf("less"); } output is: less why can someone explain me |
|
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 |
|
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 … |
|
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.... |
|
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, … |
|
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. |
|
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) { // … |
|
is there a possibility to make animation with cpp is there any documentation for this |
|
#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 … |
|
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 |
|
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 … |
|
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 … |
|
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 … |
The End.