15,547 Topics

Member Avatar for
Member Avatar for Mayank_5

Hello My Turbo C/C++ 4.0 was working properly in my Windows 7 64-bit but from two days i am not be able to use keyboard in Turbo C. I can't type any text. But mouse is working. Tried with DOS BOX Turbo C3, reinstalled it many times but could not …

Member Avatar for deceptikon
0
1K
Member Avatar for pvbhargav

Hi all, I have already used InitGraph and have given the path(C:\\TC\BGI) in Initgraph and checked the Graphics option in Linker Options. Still Iam getting this error. I want a solution. Can somebody pls help me. Its urgent.

Member Avatar for Sun_5
-1
14K
Member Avatar for TĦɇ Ãðît

#include<iostream.h> #include<conio.h> class twonum { private : int x,y; public: void getvalues() { cout<<"enter any two numbers"; cin>>x>>y; } void putvalues() { cout<<"\n\n"<<x<<","<<y; } int add(int x,int y) { return(x+y); } int multiply(int x,int y) { return(x*y); } void swap(int x,int y) { int c; c=x; x=y; y=c; cout<<x<<","<<y; }; …

Member Avatar for tinstaafl
0
296
Member Avatar for V3N0M

Hi guys after fixing my previous bug this one has resulted. What I am trying to do: 1. Make getchar() read only one character per input 2. Make the while loop not accept numbers 3. When the user enters duplicate characters the program should only accept the first character. code: …

Member Avatar for V3N0M
0
321
Member Avatar for V3N0M

Hi guys I am looking to go through C then transition to C++ later this year. I am having a minor problem with switch statement and I am not in a position to ask anyone as there are no tech savvy that I know. So I thought it was better …

Member Avatar for V3N0M
0
337
Member Avatar for Jose_12

I need save each word of text file into array of strings I have this code how to do for convert into dinamically #include <stdio.h> #include <conio.h> #define MAX_CHARS 20 typedef char string[MAX_CHARS+1]; // leave one space for '\0' main(){ int i; string array[4]; FILE *data; data = fopen("ard.txt","r"); for(i …

Member Avatar for AssertNull
0
688
Member Avatar for Jose_12

#include <ctype.h> #include <stdlib.h> #include <stdio.h> #include <string.h> char c; { char text[1000]; FILE *fp=fopen("filename", "r"); int i=0; while((c=fgetc(c))!=EOF) { do something } }

Member Avatar for deceptikon
0
175
Member Avatar for Jose_12

How should I concatenate the characters read from a file with fgetc to determine if it is a number, keyword or an identifier? The problem is that, for example, the number 555 must be one and 5 and 5 and 5 as words must be jose and not character by …

Member Avatar for Jose_12
0
515
Member Avatar for Jose_12

I have this code #include <stdio.h> #include "ctype.h" #include <string.h> #include <stdlib.h> #include <string.h> char p; int j; int i; FILE *f1; char c; int main() { f1 = fopen("ard.txt","r"); if(f1 == NULL) { printf("No se ha podido abrir el archivo"); } while((c=fgetc(f1))!=EOF) { if (isdigit(c)) { putchar(c); } else …

Member Avatar for AssertNull
0
289
Member Avatar for can-mohan

Hi, I need to make sure my integer variable doesn't store more than 2 bytes. Usually i am writing programme on Linux machine where integer size is 4 byte. Each byte can take the values 0 through 255 (=2^8-1). So, two bytes can take the values 255*255=65535, so would it …

Member Avatar for AssertNull
0
400
Member Avatar for Hi-Tone

Hi all, I trying to add two matrices together using a typedef struct, but i seems to get an error doing this. I asked my professor, but he couldnt help me. Is there anyone who might know why this problem is caused? Thank you so much! Code: /* Structures */ …

Member Avatar for Akbar_5
0
3K
Member Avatar for Alif_2

Here is my text file : > 1 SPRITZER 999 2.500000 > 2 PENCILBOX 999 20.000000 > 3 IPHONE 90 20.000000 > 10 GUNNAROPTIK 1919 200.000000 The program let the user enter productID. Listed as 1,2,3,4. And delete the whole line. I'm currently testing it in main function only. And …

Member Avatar for AssertNull
0
262
Member Avatar for Mr.M

Hi Dw. If there is anyone who knows how and which languagies are used to develop software's like word processing, Excel, Access, basically things like Office suite. I know Linux has their own different tools for office, as well as Microsoft as well and other OS have different Suites for …

Member Avatar for rubberman
0
193
Member Avatar for rakesh.menon.16

hello, I've been trying to interface 4x4 hex keypad with pic16f877a using MPLAB X and XC8 compiler. My task is to get 4 individual key presses from matrix keypad and convert it into a 4 digit integer and display the 4 digit integer on multiplexed common cathode seven segment display …

Member Avatar for AssertNull
0
298
Member Avatar for Chris_38

Can someone give me some programming ideas to keep my knowledge up-to-date? I received a masters degree in computer science back in December and been job searching since then. I want to tell an employer something.

Member Avatar for rproffitt
0
286
Member Avatar for Kersten

Hello ,I'm writing a GUI with C Win32 API and facing following issue. When I start the program and click the button for Opening the file dialog everything works fine. I can choose a file and all informations seem to fit properly into the ofn structure. If I choose to …

Member Avatar for Kersten
0
488
Member Avatar for Kersten

Hello, this question is related to an older post of mine ([Click Here](https://www.daniweb.com/programming/software-development/threads/505499/getopenfilename-freezes-at-second-execution)). In this question i stated that my program freezes at the execution of GetOpenFileName. After struggeling a while with that problem and doing other more important stuff first, i came back to the original problem and found …

0
218
Member Avatar for will_9

hi, guys i'm in colleage trying to do some homework with cs10 and got stuck with this combination of functions please help me out!!!! T^T spent 8hours today still couldn't figure it out #include<iostream> using namespace std; void getProbsPerSet(); void doOneset(char Func); void doOneproblem(int &Answer); void getMaxnumber(int &MAX); void printHeader(int …

Member Avatar for rubberman
0
394
Member Avatar for Ani_2

Hello guys, I had been writing program in Turbo C 7. For few days programs were working correctly but today I am getting different output.I tried doing simple program finding perfect number or not.But I get this output for perfect numbers as : "1308 is perfect number" and for non-perfect …

Member Avatar for pritaeas
0
119
Member Avatar for Micheal_6

How can I make the URL displayed in the MessageBox clickable, such that when a user clicks on it, it will open the link in a web browser? string msg = "MyApp | v1.0.0.0.1" + Environment.NewLine + "© 2016 MyApp" + Environment.NewLine + "All Rights Reserved." + Environment.NewLine + "For …

Member Avatar for tinstaafl
0
3K
Member Avatar for nitin1

Hi, I have one function (in a library I can't change the code) which takes a key and returns a Object. This code is written in java. I am calling this function from cpp code. I am accepting the result as jobject. 1. Added key as "key1" & value as …

Member Avatar for JamesCherrill
0
2K
Member Avatar for burningkrome

I'm a developer lead and I'm trying to get actual statistics on how many developers are comfortable in multiple C-like languages. I'm specifically interested in the crossover amongst C, C#, C++, and Objective-C. This is a legitimate quesiton, not a spam. Instead of asking everyone to post a comment...I've created …

Member Avatar for rproffitt
0
236
Member Avatar for _1_13

We wish to write a program countletter.cpp that takes a filename and a single character on the command line and prints the number of occurrences of that character in the file

Member Avatar for rproffitt
0
96
Member Avatar for nivedita5

I am working with a code which stores the information of customers in a file called customer_details.txt then asks the user to enter a name and then searches for the name in customer_details.txt, if the name is found, the entire details of the user is displayed on the output screen. …

Member Avatar for 2teez
0
3K
Member Avatar for nitin1

Hi, I have been working on JNI. I have one doubt. When I call any native method from android activity (Java code), then we get jclass object from jobject instance we get in the native method as a parameter. Why do we need it actually? Here is a snippet from …

0
179
Member Avatar for Mark_48

I am trying to ask for a float input and valididate if it is a float if it is... continue, and if it is not ask for another input. My program tells me my input is invalid, which is correct... it then prints the two statements but it skips the …

0
131
Member Avatar for chrisschristou

hello friends. i have i simple c/c++ function that return the min of the array to the main function, in the body of the function i'm using an iterative loop so i would like to do it recursivly and i don't know from where to start! all reply are usefull …

Member Avatar for AssertNull
0
540
Member Avatar for rahul208708
Member Avatar for makaijohn9

Suppose if I am working out with a simple basic coding to write a C# program for odd even number. But I am stuck at the step as to how i can re-enter input while i am converting a string into integer at one place.

Member Avatar for makaijohn9
0
107
Member Avatar for sofoklis
Member Avatar for ddanbe
-3
165

The End.