18,491 Topics

Member Avatar for
Member Avatar for cambalinho

how can i build a typedef with variadic operator? what i mean is that i need build these: typedef std::function<void(void)> Event;//works fine, but for any parameters typedef std::function<void(...)> Event; //no errors Event test(int x, int y)=[](int x, int y) { int a=x+y; string b=tostring(a); MessageBox(NULL,b.c_str(),"hello",MB_OK); }; in these sample i …

Member Avatar for cambalinho
0
1K
Member Avatar for neha1511

Friends, I want to know how to write a C program to embed text or data into the image, and also how to display this image as output. Can anyone please help me, its urgent guys!!!

Member Avatar for Ahmad_Khalaf
-1
1K
Member Avatar for cambalinho

i'm buiding an image class, but i need some information... the C\C++ teach how read binary\text files... but not how the files are build like JPEG, PNG, GIF and others :( i can't find a page for give me the file struture and when i found it, i only see …

Member Avatar for mike_2000_17
0
591
Member Avatar for lewashby

I'm reading a book on C and it's telling me how to use gcc and about the -c option/flag. It reads "-c Compiles to an object (.o) file instead of an executable. This is important for creating library files." What is an object file and how is this good for …

Member Avatar for rubberman
0
199
Member Avatar for Harish_2

Hi All, Can you please let me know what these two functions do ? I would want to know for what purpose they are being used? Kindly help Harish //CallBack function for EnumChildWindows API call from SetOS2CursorForWindows BOOL CALLBACK EnumESLChildWindowsCallback(HWND hWnd,LPARAM lParam) { //CGI_CONV_OS2WIN_START //Function body modified according to keep …

Member Avatar for Suzie999
0
386
Member Avatar for engrghost

I am writing simple server client programs using socket, in which a client would request a video file and the server should send it that file. After recieving the file the client would play that video file. I know how to open ordinary text files and binary files but can …

Member Avatar for Andrea.Vieira
0
2K
Member Avatar for gesha

i need help for my school project in it. the function of the program is like a calculator that computes mean, median, mode, range, percentile, & standard deviation. and i dont know how to compute for mode, standard deviation and percentile. please they gave us dev c++ for out it …

Member Avatar for David W
0
2K
Member Avatar for shen06

Hello Guys! :) I'm Shen. I'm new here and to programming also. I hope you guys could help me learn more about IT and stuffs 'cause I'm really interested in learning things about computers and the technology. And also, I'd be very happy to meet new friends in here too... …

Member Avatar for David W
0
268
Member Avatar for Aish_14

Hello everyone.. I am new to this forum and also to C programming.

Member Avatar for Aish_14
0
85
Member Avatar for iqra aslam

what is the basic use of keyword return? if we donot use it what is the effect?

Member Avatar for iqra aslam
0
166
Member Avatar for new2code

I have an assignment that requires me to make a code to basically have the user input 5 letters into an array. The five letters then have to be checked against themselves for duplicates and they have to be letters. I am the worst at doing this, i will say …

Member Avatar for David W
0
392
Member Avatar for Aish_14

hello.. I am trying to write a code which can ping multiple ip addresses and depending on the reply print whether the server is on. My approach is to save the addresses in an array, then ping them using a for loop. I am not sure about the data type …

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

Hi guys, I want to access the element of structure from structure pointer using indexing for below code snippet. apart from this I also would like to know is there any way to find the type of member variable of structure on run time. #include <stdio.h> #include <assert.h> #include <stdlib.h> …

Member Avatar for Schol-R-LEA
0
244
Member Avatar for iniesta

hi every one i am trying to pass multiples 2D arrays to funtion but i have the following errors"

Member Avatar for Hiroshe
0
53
Member Avatar for can-mohan

Hi Guys, Any body knows what is the efficient way to create the map (key,value pair ) using linklist using c .Apart from this in this map one key can have multiple values and i need to display those values. I don't want implementation in c++. example string1->"james" string1->"mike" string1->"harry";

Member Avatar for Schol-R-LEA
0
2K
Member Avatar for oanahmed

Hi! I was doing my exercise of C Language. In the exercise I was encountered by a question in which author says you to perdict the correct answer; I was uable to perdict it, so I compiled it to get the answer, the source code is this: #include <stdio.h> int …

Member Avatar for Member #899888
0
283
Member Avatar for vishalonne

Hello How can I get minimum number of coins for a given amount. I have fixed denominations of cents - 25, 10, 5 and 1 If I have 0.67 then what will be the minimum numbers coins I need Thank you all in advance for valueable advices and suggestions

Member Avatar for Member #899888
0
225
Member Avatar for amithunter

how can we fetch the system time regulerly irrespect to the another part of the program? how it's possible to do so actually its a validation in a game,but i dont have an idea how can be implement.

Member Avatar for L7Sqr
0
114
Member Avatar for Miffy

Hi, Please help me write this C code as i am clueless and helpless in C programming Write a C program, which allows the user to enter a valid filename and then prints the file content to screen, two lines at a time. The program should pause after displaying the …

Member Avatar for Hiroshe
0
270
Member Avatar for brent.banaag

Please help me. The following program builds and compiles just fine however when I try to execute it it stops before getting any output, displaying "The instruction at "0x77c48a0b" referenced memory at "0x00000014". The memory could not be "read"". I also get the following when the debugger reaches the point …

Member Avatar for Moschops
0
177
Member Avatar for agent.orange

Guys how can i connect MS.ACCESS as my DATABASE in TURBO C.? Please help.. this is not an assignment.. i just want to know how....

Member Avatar for manishsaini09
0
375
Member Avatar for amithunter

Please help me to create a automaticcaly executable file in c .when cpu boot up it should automatically execute once. Thanks for the help

Member Avatar for amithunter
0
179
Member Avatar for new_developer

Hi there, I need explanation for the range of data type say character which is 1byte ranges from -127 to 127 or 0 to 255. I did not understand what it means and how can I check the range of characters. Does it means it can store only values from …

Member Avatar for Slavi
0
292
Member Avatar for amithunter

Hlo guys can u please tell me that websites can be created in c or c++ please suggest me something... thanks for the help

Member Avatar for Hiroshe
0
96
Member Avatar for kalidas.rajendran.1

i am lookng for some sample c coding for fuzzy logic, can anyone help me in developig fuzzy logic in c,.. i had developed my fuzzy rules in matlab, now i hav to develop the c coding for the developed model, can anyoe help me in developing the c code, …

Member Avatar for nelsonfaboan.rios
1
2K
Member Avatar for fmchua

hi. can someone help me with this . req: if item code is A description is CHAIR witha a prize of 200 else if itemcode is B description is TABLE with a prize of 500 else item code is C description is PC with a prize of 4000. output display …

Member Avatar for David W
0
124
Member Avatar for senait.kifle.127

Hello Everyone, This question is quite hard for me to understand it. I have gone this further. your help will be appreciated. The program is used to calculate volumes of tanks. #include <stdio.h> #include <stdlib.h> #define PI 3.14152 /*Declare for storing the data of a cylindrical tank new structure type …

Member Avatar for David W
0
314
Member Avatar for jtjudge

#include <p18F8680.h> #include <delays.h> #include <string.h> #include <stdio.h> #include "LCD_Utilities.h" int* lpc_L1; unsigned int ln_Volts; unsigned int ln_Tenths; unsigned char luc_Result; char Convert_ADCResult_to_Char(unsigned char, unsigned char); void main (void) { TRISA = 0x01; TRISD = 0x00; ADCON0 = 0x01; // ch0, DONE, ADC on ADCON1 = 0x0E; // AN0 set …

Member Avatar for sepp2k
0
561
Member Avatar for tena.venmathy

Hi, I need help from anyone to solve this "c programming" or help to teach the method for this question. thank u so much? A bookstore has many customers and each one of them has an account with a credit limit which must not be exceeded. The bookstore owner requested …

Member Avatar for David W
-1
268
Member Avatar for Mahkoe

I am currently writing a little applet to modify files in a certain way. However, I am noticing wildly strange behaviour. I have an output file that is fopen'd in "a+" mode. If the file did not exist and was created, the resulting output is total garbage (however, it exhibits …

Member Avatar for rubberman
0
163
Member Avatar for Member #986332

Can string be compared with == operator? I know that they can be compared using strcmp() function. But this snippet confused me a lot #include <stdio.h> #include <stdlib.h> int main() { char str1[]="Good Morning"; char str2[]="Good Morning"; if(str1 == str2) printf("Equal"); else printf("Not Equal"); return 0; } The output of …

Member Avatar for Member #986332
0
141
Member Avatar for Saranya_2

Hi Dani I am trying to develop a case study in c languade for addressbook.Is glade a turbo c accepted GUI. If so how can I link c program functions, xml etc with glade.I have no idea.Please reply as soon as possible. Thanks Saranya

Member Avatar for rubberman
0
133
Member Avatar for kukkumahi
Member Avatar for EarhawkPH

i somehow can't find how to fix the error: "non portable pointer assignment in function main" #define b break #define p printf #define s scanf main() { char M,[9]; int month, day, year; p("Enter Month:"); s("%d", &month); p("Enter Day:"); s("%d", &day); p("Enter Year:"); s("%d", &year); switch(month) { case 1: M="January"; …

Member Avatar for David W
0
421
Member Avatar for Azhagu

in data structure, how the paranthesis balanced are checked with stack.little confusion in it.

Member Avatar for David W
0
198
Member Avatar for kimlong008

Hello Everyone ! I have build a c file but it use GNU library, I can not build it to exe file. It error because I don't know use MinGW to build. [Download file](https://sites.google.com/site/datazus09/crunch-3.6.zip). I have install MinGW but I don't know how to run it in my visual studio …

Member Avatar for kimlong008
0
334
Member Avatar for Raik.48

Is making font size bigger or smaller possible in C programs? If yes, what should I do? I am a beginner in C and have been using Turbo-C++ for programming. Thanks.

Member Avatar for Abinaya_3
0
631
Member Avatar for neeraj_shri
Member Avatar for hg_fs2002

I want to convert this piece of code using this memory layout transformation : https://software.intel.com/en-us/articles/memory-layout-transformations (Array of Structures to Structure of Arrays) Here are the codes before and after applying the transformation and I want to know whether I'm doing it right or not? Before: typedef struct { double x; …

Member Avatar for Hiroshe
0
286
Member Avatar for Gunjan Rathi
Member Avatar for deceptikon
0
244
Member Avatar for mo_snow

The MilTime class should convert time in military (24-hour) format to the standard time format used by the Time class. Theclass should have the following member variables: milHours : Contains the hour in 24-hour format. For example, 1:00 pm would be stored as 1300 hours, and 4:30 pm would be …

Member Avatar for pritaeas
0
5K
Member Avatar for sunnyshahrukh

how can we use pointers arrays in programmes and how much space occupied in memory for pointer arrays

0
47
Member Avatar for Syeda_2

hi everyone, i am new in C. can anyone help me to solve the following problem: write a small program in CLIP to code that shall work like a simple computerized study advisor. Your program will collect some data from the user and then suggest a field of study. To …

Member Avatar for rubberman
0
113
Member Avatar for Gunjan_1

Hey I am a student and i m performing selection sort in this way. Is it proper way or not? if it is not proper, explain it why with reason. #include<stdio.h> #include<conio.h> void selection(int a[],int n) { int i,j,temp; for(i=0;i<n;i++) { for(j=i+1;j<n;j++) { if(a[i]>a[j]) { temp=a[i]; a[i]=a[j]; a[j]=a[i]; } } …

Member Avatar for ITTechnos
0
149
Member Avatar for JOHN-shirley

please help !! I cant comiple this code for a spell checker when i build the project i get no de-bugg messages however when i run the code it i get actual answer.exe has stopped working i have attached the relevent files except the word.txt is missing as it wouldnt …

Member Avatar for Moschops
0
92
Member Avatar for getmeusername

Hi All, I am trying to send data from client to server. And getting data back to client. But I am facing following issue. 1. I am unable to display client message in server side. 2. I am unable to get back message from server. Also I am not getting …

Member Avatar for Himadri_1
0
293
Member Avatar for rana ranjit

main() { char str[30]; int i ,n=0; printf("enter stirng"); while(( str[n]= getche() ) !='\r') n++; str[n]='\0'; for(i=0;i<n;i++) putchar(str[i]); } this is a simple program. enter string as input and same string become output. nothing is wrong in this program. this program is in my book. my question is what is …

Member Avatar for Daisy_1
0
95
Member Avatar for Vandithar

Hi, I want to install turbo c in windows. I don't have cd to install turbo c. I tried downloading a zip package and installing but it is giving error. How can i install and download turbo c in windows? Any suggestions? VANDITHA

Member Avatar for maha harshini
0
487
Member Avatar for mahrukhbalouch

when m pressing printf("welcome to airline reservation system\n"); its gettng error tt its a declaration syntax error plx help me i have to complete my project

Member Avatar for ddanbe
0
108
Member Avatar for narmadhahearty

while storing the value 1.111 in a float variable the value stored and printed is 1.1109999. why is this loss of data or sometimes the gain of data?.

Member Avatar for jnneson
0
147

The End.