15,539 Topics

Member Avatar for
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
50
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
49
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
207
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
102
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
97
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
267
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
89
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
373
Member Avatar for harshchandra

This is a simple archery Game developed in C language . The aim of the game is to shoot the balloons and score as much points as you can . The game have three levels. Platform used is Turbo C++ IDE . Standard Graphics.h functions are used.

Member Avatar for 26_Anuja
0
4K
Member Avatar for Harry cruise

A grayscale digital image is a two-dimensional raster image in which the picture elements, or pixels, store a single value representing a shade of gray that varies from black to white. In a discrete grayscale image, the shades of gray are represented by integer values in the range [0 to …

Member Avatar for Schol-R-LEA
0
302
Member Avatar for safiullah786

Can anyone help me please! I want the source code for this program.!! Tomorrow is last date of submitting C++ PROJECT. I want the source code for this program.!! **Airline Reservations System** A small airline has just purchased a computer for its new automated reservations system. You have been asked …

Member Avatar for Dani
-1
310
Member Avatar for Julia P.

HI!! How can I create an automatic numerical progression from 0 to 500,000 in html? The code I was given is this: <p><span style="font-family: Calibri, sans-serif;"><span style="text-shadow: rgba(255, 255, 255, 0.8) 0px 3px 2px;"><sup>437</sup></span></span></p> how can i make the code progressive and automatic every three minutes? The progression I have …

Member Avatar for jedimatt
0
108
Member Avatar for 13_503_Etiraz I

# Importing import sklearn from sklearn.datasets import load_boston import pandas as pd import matplotlib.pyplot as plt # Load the dataset bos_hou = load_boston() # Create the dataframe column_name = bos_hou.feature_names df_boston = pd.DataFrame(bos_hou.data) df_boston.columns = column_name df_boston.head()

Member Avatar for rproffitt
0
48
Member Avatar for Jawad_12

Hey, I want to make a program in which I will find the **index** of word and **count** how many words there in a txt file using c++.

Member Avatar for rproffitt
0
42
Member Avatar for john_326

The Question A Bank charges $10 per month plus the following cheque fees for a commercial checking account: $ 12 for each fewer than 25 cheques $ 15 each for 26-40 cheques $ 18 each for 41-59 cheques $ 20 each for 60 or more cheques The bank also charge …

Member Avatar for rproffitt
0
49
Member Avatar for joseph_59
Member Avatar for dasharath_1

Give the solution of the apthon exampsl prectical 1. Write a program to create a number converter that can convert numbers between binary, decimal, octal and hexadecimal. E.g. i/p - Please Enter the base of your input number : 2 Please Enter Binary number : 1111 Please Enter Base for …

Member Avatar for rproffitt
0
69

The End.