15,552 Topics

Member Avatar for
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
244
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
54
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
851
Member Avatar for tahataha

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

Member Avatar for tahataha
0
103
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
153
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
Member Avatar for tahataha

using resultgraph() it returns -3 (asking for graph driver device) i wanna know where could i find this and where i ll put it

0
79
Member Avatar for RITZY_G
Member Avatar for alc6379
0
123
Member Avatar for tanner0035

I am currently getting 33 linking errors like the following: c:\msvc\mfc\lib\lafxcwd.lib(sockcore.cpp) : error L2029: 'WSAASYNCSELECT' : unresolved external c:\msvc\mfc\lib\lafxcwd.lib(sockcore.cpp) : error L2029: 'GETHOSTBYNAME' : unresolved external c:\msvc\mfc\lib\lafxcwd.lib(sockcore.cpp) : error L2029: 'WSASTARTUP' : unresolved external in each one is a different socket function. Each function listed in the errors appears nowhere …

Member Avatar for glSuccinct
0
119
Member Avatar for tnorton

Using this code: Fees = ovrh + (wr * z); I am getting the following error: error C2440: '=' : cannot convert from 'double' to 'float [6][3]' Fees, ovrhd, wr and z are all declared as float. I believe if I can figure out what the problem is, I will …

Member Avatar for Dave Sinkula
0
326
Member Avatar for fang221914

Pls help me regarding with this problem show me a complete program of a Commission or Brokerage Problem what is written below. The amount of money paid to an agent for buying or selling goods C= Commission R= Rate of Commission S= Sales Formulas: C= R * S R= C/S …

Member Avatar for alc6379
0
103
Member Avatar for Maineboy

I want to change the direction of movement of a shape (Circle) on a Form, using up,down,left,right, buttons placed within a panel also on the Form. The form contains a shape(Circle) and a TTimer component. I can get the Circle to move across the Form using : Circle->Left = Circle->Left …

0
54
Member Avatar for Mahen

OK, since i am not getting the answer am looking for, i am showing you a small source code of my program, i really hope that u understand it & sorry fot the newbie codez. [ #include <stdio.h> #include <stdlib.h> int main(int argc, char **argv) { int numa = atoi(argv[1]); …

Member Avatar for Dave Sinkula
0
96
Member Avatar for Naveen

i am unable to compile and run network based applications like client/server apps. what should i do now?

Member Avatar for hivework
0
307
Member Avatar for Mahen

Hi everyone, Some questions in my previous post is still left unanswered. Here it is again: How can i accept decimal numbers from STDIN and perform arithmetic operations on it in C. How can i create a subroutine within a program, that can be called again & again at different …

Member Avatar for Dave Sinkula
0
178
Member Avatar for kohkohkoh

[font=Times New Roman][left]here is the question:[/left] [left]Use a two-dimensional array called [/font][b][font=Times New Roman]price [/b][/font][font=Times New Roman]to hold the prices for Proton’s car[/left] [left]regarding to the models and CC as listed below. [/left] [left]--------------------------------------------------------------------------[/left] [left]in 2d array..i could get[/left] [left](for example)[/left] [left]void disp(a[][3]);[/left] [left]int main()[/left] [left]{[/left] [left]num[3][2] = { {1,2},{4,5},{7,8} …

Member Avatar for freesoft_2000
0
128
Member Avatar for kohkohkoh

Do anyone know what's the problem with my Visual Studio 6.0. the program that i wrote sometimes can compile and sometimes can't, and yet sometimes can execute, sometimes can't.. the meaning of can't is..my whole VS frozen.. at the bottom, a message bar(whatever they called it) only shows Linking...(the word …

Member Avatar for freesoft_2000
0
109
Member Avatar for Sukhbir

consider the following statement & tell me why it i undetermined or ambigious int i=9; i=i++; PLS EXPLAIN ME FULLY

Member Avatar for alc6379
0
111
Member Avatar for policeachan

why do we use function definition in header file and function declaration in obj why can,t both be at header file?

Member Avatar for Dave Sinkula
0
136
Member Avatar for Naveen

hi. can someone please explain what are message passing interfaces and how i can code them? regards, naveen

Member Avatar for Chainsaw
0
155
Member Avatar for zrixter

as title mentioned, i face problem with convert a jumbled text file to unjumbled text file, some of you might not clear what i am saying, well a example will give a clear idea what this all about. jumbled text file contain a few line of number, after unjumbled it, …

Member Avatar for FireNet
0
143
Member Avatar for Mahen

Hi everyone, i have just startted programming with C and i have got 3 Questions: 1. How to calculate with decimal numbers in C. 2. How to convert strings into numbers and perform calculations on it. 3. Where to find a book that explains all the header files. Tahank you …

Member Avatar for Mahen
0
126
Member Avatar for matt768

I have to create a program in c using this formula, y=ax(cubed)+bx(squared)+cx+d, I have to ask the user to read in the four coefficients of the cubic, Ask the user for start and finish values for x, ask the user to view the graph and Plot a graph using grx20 …

Member Avatar for Chainsaw
0
75

The End.