19,876 Topics

Member Avatar for
Member Avatar for kanaly.john

Write a program in c/c++ that add two numbers which are between 3000000 and 5000000. the result should be shown as "number 1 + number 2 = result

Member Avatar for Sam_6
0
121
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
559
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
144
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
334
Member Avatar for Cave_1

Hi. I'm trying to use brace-initialization notation: int number{}; But I get the following error: "expected an expression". Shouldn't c++11 allow this kind of initialization? int number2(4) works just fine. Thank you.

Member Avatar for Cave_1
0
368
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
252
Member Avatar for iqra aslam

how can i download the c++ software, like turbo c can any one give me the link?

Member Avatar for mike_2000_17
-1
231
Member Avatar for iqra aslam
Member Avatar for iqra aslam
0
149
Member Avatar for tan.revilleza

hi can any one know how to program in c++ the *143# in globe all iknow is u can use if else conditional statement!! tnx in advance

Member Avatar for Naveen508
0
175
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
377
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 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
47
Member Avatar for sanjeev_3
Member Avatar for JOSheaIV
0
76
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 cayman
0
246
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 cayman
0
185
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
95
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
248
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
165
Member Avatar for Jack_9

Is C++ worth learning for webapps? I know python and it works well, so would it even be worth it to learn c++?

Member Avatar for Jack_9
0
161
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
351
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
167
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
105
Member Avatar for aluhnev

Hi,can you explain the use of **for_each and lambda** in c++11.What are they for,how to use? I have seen a few examples but do not get the meaning.Thank you.

Member Avatar for Hiroshe
0
207
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
279
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
554
Member Avatar for YiLiang

Hi Guys, I'm a beginner. Can i ask, how to write the code for delete or backspac in a password if i key in a wrongly? Example: Password is 123456 But I accidentally keyed 124, so how do i delete/backspace 4 so i can key in 123456 again.

Member Avatar for rubberman
0
189
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
240
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
142
Member Avatar for TommyTee

Hi guys, I have a class called Account with variables called Balance and Status. The Member Name is given by the User through cin and represents an the Account Number. How can I diynamically create an object through cin and give their variables a value through cin? I have been …

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

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 SoreComet
0
123
Member Avatar for cambalinho

i'm build a function for do the combination of keys(like the kombat games: we do some combination keys for do an actions): bool CombineKeys(std::vector<int> const keys) { static bool PreviousKeyPressed; static DWORD StartTimer = GetTickCount(); static int i=0; if((GetAsyncKeyState(keys[0]) & 0x8000) and PreviousKeyPressed==false) { i=0; SetWindowText(a,"hello"); PreviousKeyPressed=true; i++; } else …

Member Avatar for cambalinho
0
235
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
115
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
394
Member Avatar for mike_2000_17

Hi all, I was just playing around with some ideas about optimizing a core piece of my library: the run-time type identification system (RTTI). What does that have to do with compile-time string concatenation? Well, the whole point of the RTTI is to provide information on the type of objects, …

Member Avatar for mike_2000_17
6
13K
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
174
Member Avatar for sunnyshahrukh

how can we use write and read functions in files and why we use these function because i have already get put or cin cout available.

Member Avatar for NathanOliver
0
83
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
313
Member Avatar for cambalinho

i'm build a completed new code for properties: #include <iostream> #include <functional> using namespace std; template <typename T> class property { private: T PropertyValue; //i think these is ok, but something seems not std::function<T(void)> getf; std::function<void(T)> setf; public: property() { getf=NULL; setf=NULL; }; property(T value) { PropertyValue=value; }; property(std::function<void(void)> GetFunction=NULL,std::function<T(void)> …

Member Avatar for cambalinho
0
402
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
575
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
270
Member Avatar for Gunjan Rathi
Member Avatar for deceptikon
0
218
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 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
97
Member Avatar for mo_snow

I posted a simliar issue ealier, but I've changed my approach since then. #ifndef TIME_H #define TIME_H class Time { public: Time(int = 0, int = 0, int = 0); ~Time(); int hour; // valid values are 0 to 23 int minute; // valid values are 0 to 59 int …

Member Avatar for rubberman
0
1K
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
129

The End.