15,552 Topics

Member Avatar for
Member Avatar for Nathan_22

C++ program that displays on the screen item codes with corresponding item descriptions and prices. It asks the user to enter the code of the item purchased by a customer. It looks for a match of the item code stored in items.txt. How to read a specific line from a …

Member Avatar for toneewa
0
764
Member Avatar for Ved_683

I have to write a c program for finding the impedance of RLC circuit and represent the result in both polar and rectangular coordinate system

Member Avatar for Reverend Jim
0
121
Member Avatar for Natalii_13

Dog leaves his lamppost on summer evenings and staggers randomly either two steps in the direction toward home or one step in the opposite direction. After taking these steps, the dog again staggers randomly two steps toward home or one step backward and does this again and again. If the …

Member Avatar for rproffitt
0
120
Member Avatar for bandanasc

I am trying to edit a file that contains: Time Column 1 Column 2 Column 3. I need to print Column 2 after column 1. Time Column 1 Column 2

Member Avatar for Schol-R-LEA
0
79
Member Avatar for COKEDUDE

How would you describe c programming to a person that does not know anything about computers?

Member Avatar for rproffitt
0
193
Member Avatar for Gonzalo_3

Hello. I want to start studying the Golang language but I can't find any IDE that I can configure well, can you tell me an IDE that is good for Go and how to configure it (explained for fools in Spanish), please? I have tried with Sublime, Visual Studio Code …

Member Avatar for rproffitt
0
59
Member Avatar for bj76407

Hey guys and gals, any ideas on gaming laptops with good cooling system. Mine just melted ... :/

Member Avatar for redapplelearn
1
421
Member Avatar for Kepler123

#include <stdio.h> #include <math.h> int main() float i, x; double fact=0, sum=0; printf("Enter value of x as the power of e: "); scanf("%f", &x); printf("Enter n as the number of terms: "); scanf("%d",&i); for (i = 0; i < 99999; i++) { sum = 1 + x; fact = fact …

Member Avatar for xrjf
0
74
Member Avatar for Nicksen

Good day everyone. My assignment is to create a point of sale system for a bakery shop. I have done all the coding up to the part when i have to do a 'order summary details' means i have to put all the user inputs into the order summary details. …

Member Avatar for Schol-R-LEA
0
335
Member Avatar for omar90

i want write a code in C without using OpenCV library to code a Sobel operator to calculate the magnitude and direction of the gradient of an image then use pseudo color to display them using intensity for magnitude and hue for direction display input and output images

Member Avatar for rproffitt
0
63
Member Avatar for COKEDUDE

I sometimes move my code around to various computers so I prefer to keep my header files in my current directory. Unfortunately it does not seem to be working. $ gcc *.c -Wall main.c:1:10: fatal error: mysql.h: No such file or directory 1 | #include <mysql.h> | ^~~~~~~~~ compilation terminated.

Member Avatar for rproffitt
0
37
Member Avatar for kevinvholloman

Hello. There are two programs. One creates and transfers the file into memory, the other reads it. The problem is that reading happens every other time. That is, the data, then no. Where is the mistake? Where to look? ![с++.jpg](https://static.daniweb.com/attachments/4/da8ffa8aa779029ea918edd53ea959b5.jpg)

Member Avatar for rproffitt
0
52
Member Avatar for viksat07

Need Help i got this assignment to create a program to insert element in array, delete element in array and view elements in array by using Menu Driven Programs plz help me

Member Avatar for Govind_11
0
31K
Member Avatar for sasha12

can somone tell me why my output does not want to reverse and the solution to it #include <stdio.h> #include <string.h> #define QUIT_LETTER 'q' // Again, in a practical program, this is a ridiculously small size // for an array that is supposed to hold a line of text. But …

Member Avatar for tinstaafl
0
49
Member Avatar for sasha12

can someone explain to me this code and what the output should look like?, is there going to be two strings? and what does dest[I]=to src[] mean, is string bar going to have the string abcd or efghijk. #include <stdio.h> void copy_str(char *dest, const char *src); int main(void) { char …

Member Avatar for Schol-R-LEA
0
50
Member Avatar for Hamza_52

Write a C or C++ program that outputs prime numbers. This program should work as follows: The user will run the program and will enter a number on the command line. The program will then create another process using fork() that outputs all the prime numbers less than or equal …

Member Avatar for Reverend Jim
0
212
Member Avatar for sasha12

i been trying trying to convert a number of seconds into days, hours, min and seconds. but i keep getting errors, "expected identifier or '('" . how should i fix it.` #include <stdio.h> #include <stdlib.h> void to_dhms(int total_s, int *d, int *h, int *min, int *s); int main(void) { int …

Member Avatar for rproffitt
0
49
Member Avatar for sasha12

>hello i want to print convert seconds into days, hours, munite, and seconds but i do not know how to call void into line 28 so it can print. #include <stdio.h> #include <stdlib.h> void to_dhms(int total_s, int *d, int *h, int *min, int *s); int main(void) { int seconds_in, days, …

Member Avatar for rproffitt
0
40
Member Avatar for Lee_761

can someone help me with this problem in C? I'm new here I need help please help me with this question below. Create a C program that performs a lookup for an X element in a queue static. It is important to note that only the operations: queuing and unqueuing …

Member Avatar for rproffitt
0
105
Member Avatar for omar90

how to rotate image using c-- following this byte[,] rotation(byte[,]f, float x0,float y0,float a); f is the input image, (x0,y0) is the rotating center & a is the rotating angle. Return value is the output image (using IM & Bilinear interpolation);

Member Avatar for rproffitt
0
98
Member Avatar for sasha12

i am trying to Convert a number of seconds into days, hours, minutes, and seconds. using pointers but something seems wrong . can somone tell me what is the problem and how to solve it. it keeps telling me error: function definition is not allowed here #include <stdio.h> #include <stdlib.h> …

Member Avatar for rproffitt
0
300
Member Avatar for sasha12

i am trying to Convert a number of seconds into days, hours, minutes, and seconds. using pointers but something seems wrong . can somone tell me what is the problem and how to solve it ![Screen_Shot_2021-10-06_at_4_26_53_PM.png](https://static.daniweb.com/attachments/4/d5bbe5177858b2a75df377653b18347b.png)

Member Avatar for rproffitt
0
25
Member Avatar for ams

hi all...i am a not that much in programming ... i would ask you how i can generate a multiple choice question chosen randomly from a list of questions with answers using functions in C program ...i know how to generate random numbers only ... help me please ,,, as …

Member Avatar for DINO_4
0
2K
Member Avatar for Jinhwan

#include <iostream> using namespace std; int main() { int a, b; char c, d; cin >> a >> b >> c >> d; for (int row = 1; row <= a; row++ ){ cout << c; for (int cols = 1; cols <= b; cols++){ cout << d; } } …

Member Avatar for rproffitt
0
75
Member Avatar for kacete

Hello everyone, I've been using this website and it has helped me with it's hundred of solved cases, but I couldn't find one appropriate for this one. I have created a Menu() function that looks like this: [CODE=C]int Menu() { int i; printf("MENU\n\n"); printf("1 - ...\n"); printf("2 - ...\n"); printf("3 …

Member Avatar for theekshani
2
17K
Member Avatar for Chinmay_4

#include<iostream> #include<conio.h> using namespace std; struct marks{ int phy[10]; int math[10]; int chem[10]; }; int main(){ struct marks m[20]; int i,n; cout<<"Enter the number of students : " << endl; cin >>n; for(i=0;i<n;i++){ cout<<"\nEnter Physics marks: " << endl; cin >> m[i].phy; [error here] cout<<"\nEnter Maths marks : "<< endl; …

Member Avatar for Schol-R-LEA
2
102
Member Avatar for Mausam_1
Member Avatar for liye_wu
Member Avatar for alamu

please give the program for sorting a linked list without affecting the original value

Member Avatar for 4rajgopal
0
1K
Member Avatar for rajii93
Member Avatar for Dorian_3
1
375

The End.