8,298 Topics
![]() | |
Write a program that will print adjacency matrix of a directed and weighted graph. Weights are positive real values, and graph is strongly connected. Then, print values of two vertices which indices are read (values of each vertice are functions: **sin(index),cos(index),index^2,sqrt(index)**). How to check if a graph is strongly connected? … | |
I am working on C# window form application, which do insert, update of data into the database. I am having trouble, since I am new into this. I have declared temp variable that gets value if record exsits in the database. But in some scenarios if record is loaded onto … | |
Hello, I do want to start off by saying this is completely out of my area as I've never really worked with any ASP.net sites and hosting off IIS is also new to me. The site we currently have deployed is c#.net and was written back in 2005-2007, I have … | |
I need some explanation with the logic in the following program: Create a data structure such that it contains of three singly linked lists that are connected to one central node. **i-th** list can only have elements such that **list_element % 3 = i**. First element of every list represents … | |
Write a program that will read data about **n** movies (data about a movie is defined in structure). Sort data about movies (criteria of sorting is by title of a movie and by surname and name of an actor). Read data about one actor, and print data about all movies … | |
Write a program that reads **n** strings (with blank spaces). For each read string, check if it is a permutation of some other read string. If it is, print the found string and all other found strings that are permutations of the found string. Uppercase and lowercase letter are not … | |
Write a program that reads an array of **n** polynomials and prints their squares using arrays. Example input: n=1 1. polynomial: order: 2 coefficients: 1 1 1 Output: square(x^2+x+1)=2x^3+4x^2+2x+1 The following code gives **SIGSEGV** segmentation fault: #include <stdio.h> #include <stdlib.h> #define MAX_ORDER 10 typedef struct term { int coef; int … | |
I am having problems to figure out how to do arithmetic operations on positive integers represented as strings (addition, subtraction, multiplication, incrementing and decrementing). I did the addition as following: #include<stdio.h> #define MAX 100000 typedef struct { int arr[MAX]; }NUMBER; void read(NUMBER *add_num) { int i,digit=0; char ch[101]; scanf("%s",ch); while(ch[digit]) … | |
I need help with the following program: Define a structure **VEHICLE** which contains **producer, model and chassis number**. Store the content of a structure in binary search tree such that the **key** for storing contains all fields of a structure (**producer** has the highest priority, and **chassis number** has the … | |
The following program should create singly cyclic linked list which has **n** nodes, where data are random generated numbers from **0-99**. Create binary search tree which will contain all prime numbers from the list. Print binary tree in text file so that numbers are sorted in descending order and every … | |
The following program compiles successfully but doesn't give the output: Write a program that reads data about **n** number of **books**. Sort data about books lexicographically by **title** (if the title is the same, sort by **publish year**), and then for every book sort data about **authors**. Then, read **name** … | |
Hello There, Does It exist a simple way to detect black lines at PictureBox? | |
#include<stdio.h> #include<math.h> int factorial( int ); int main() int n; double x,i; double value, sinx; value = sinx = 0.0; printf("Enter the value for x and i"); scanf("%lf %d", &x, &n); for( i=1; i<=n; i=i+2) { value = pow(x,i); sinx += (x - value / factorial(i)); } printf("Result - %f", … | |
Write a function for swapping players in a team. New player (which is read) enters team and replacing the player which is also read. Prototype of function is void swap(TEAM *, PLAYER, int); First argument of a function is the pointer to team, second argument is the player that enters … | |
Write a program that reads data from binary file **EMPLOYEE.DAT** (employees are proffesors and teaching assistants, assume that the file exists). Split data about proffesors and teaching assistants in two separate text files and sort data by **ID** using insertion sort algorithm. Search and print data about employee which **ID** … | |
Write a program that reads strings(words) from a text file and copy the inverted words to another file (use the command line arguments). Form a new array of words b from original array a using the function ***void formNewArray(char **a, char **b, int n, char* (*t)(char *));*** where ***n*** is … | |
Hi there! I need to find the mimimum element in two-dimensional(4,4) array by row and maximum element by column and store them in another array (5,5).Maybe I did not explain properly. That's how it should look new array (5,5): 1 2 3 4 min 1 2 3 4 min 1 … | |
I hot the following program from the book 'C++ For Dummies' but have two questions about it. First I compiled the program but I'm afraid to run because the memery created from the heap does not appear to me to get de-allocated. Am I correct in not wanting to run … | |
Hello ! How can I change my sorting function called bubblesort, so that it uses a dynamic stack. Now I've done and funcion can work properly, but is using list, because I intercede for the next item and in stack i have access only to the top. Data for stacks … | |
Need a free links of for c++ compiler ide for windows multipoint server 2012 OS..thank you.. I download turbo c++ but its dos based and my setup is n.computing..it will not run to other monitor connected to the main pc.. thank you.. | |
i am developing attendance software with sms support current i have tried sending sms with one gsm modem , but the it took 1.5 hour to send 3500 sms , so i wan to use 4 gsm modems having separate com ports , now the problem is i am unable … | |
Hello ! How i can find the smallest number, higher than average value. For example in deque I have these numbers: 46 84 25 93 91 25 37 32 64 49 17 81 59 38 79 22 57 17 61 11 (transferred from file Stack.txt to deque.txt). Тhe average of … | |
I want to assign a single KEY in Keyboard to enable/Disable function. Initally, the button should be disable. when I press the button1 it should get enable and when I press tha same button1 again it should get disable. How can I do that in visual studio C# for windows … | |
Hi All, I have a one web form where PF details will be filled in that i want PF nominee amount distributed using %. If they filled nominee details in the form the amount distributing in percentage. I need this in asp.net. Example: suppose they have 3 people for nominee … | |
hello so we are in the process of developing a tagging program, and im building the form in c#. now how would we be able to connect the db from workbench with this form in visual studio to make queries in the program? btw the databse i hosted it at … | |
Hi Guys, iI am new to programming and started aabout 2 months ago. I am doing some exercises to help me get my head around the programming language. Here is what i am stuck on; Write a program that uses nested loops to collect data and calculate the average rainfall … | |
im doing a project about tagging butterflies system, in which users will login/create account, update account, insert butterfly in database, update a butterfly in database, search for a butterfly, display a leaderboard, and a graph. i havent done C# in a while, altho i can get the hang of it … | |
Question: Trying more than two weeks but not getting corect program due date is already over.please hel me anyone For this project, the students are to use MS Visual Studio to program and run a simple multi-process console program using MPI in visual C++. The MPI libraries can be downloaded … | |
How would I implement the rand or the srand statement into this C Programming language. I have been reading about these 2 statements but I am a bit confused still. In need of assistance. I am a beginner in Programming.... #include <stdio.h> //Main header #include <stdlib.h> //Standard header tells the … | |
how to use AT commands in c# which actually work | |
I've been away from programming for a bit, and I never really learned pointers that well. What I'm trying to do now is code from a model. Here's a link to the model: [Click Here](http://s1042.photobucket.com/user/AlanTuring11/media/123_zpsx47kycfm.png.html?filters[user]=144321721&filters[recent]=1&sort=1&o=0) My problem is that my output is not changing when I enter events. The program … | |
Hi, I am dealing with the shape drawing functions in C# and I am trying to resize DrawingGroup after drawing some shapes on it. Here is my code: DrawingGroup drawingGroup = new DrawingGroup(); Pen redPen = new Pen( Brushes.Red, 2 ); DrawingContext drawingContext = drawingGroup.Open() drawingContext.DrawRectangle( null, redPen, rect); double … | |
Normally you can do this and pass the reference type by reference and the new keyword won't make the variables point to different objects: static void Main(string[] args) { Object origObj = new Object(); ExampleMethod(ref origObj); } void ExampleMethod(ref Object newObj) { //origObj will also reference the newly created object … | |
I have to convert this part of code to C# but I have no idea how. Need your help, guys! for /f "tokens=*" %%a in ('curl -s -m 3 http://hghgh.hgh.fgfjk/ ^| jq .ua') do set uagent=%%a I think, I should use ProcessStartInfo, but not sure about `-s -m` and `^| … | |
The program seems to be building fine however I can only get it to return "Your tax amount is: 0.00". I've stared at the thing for hours and cann't for the life of me find my problem/problems. Any suggestions are extremely appreciated. /* * File: main.cpp * Author: Callie Tester … | |
guys i have this assignment about luhns algorithm and i cant seem to know where to start (i am very weak in functions and arrays) , if anyone can help me out with the start of the i would be very thankful then later on i will be disscussing my … | |
Hello All, I am having trouble looping through a 2D array in C++ (should be very easy, but I am just starting C++). At the current moment I have this class file #include "Cube.h" #include <freeglut.h> #include <stdio.h> Cube::Cube(int cx, int cy, int cz , int cubeWidth) { int p[][3] … | |
I am having a problem when trying to delete specific record from a text file. Data structure is as follows: typedef struct { char id[9]; char name[50]; float amount,price; }PRODUCT; typedef struct id { char key[9]; int address; }ID;//for searching typedef struct node { ID id; struct node *left,*right; }NODE; … | |
Everything I have found shows how to add a row to a database for new images... I am trying to update an existing row with a longblob field to store a logo and cannot seem to grasp what to do Any help would be greatly appreciated | |
how to do this? write a c++ program that given the name of a text file reads that file and counts the number occurrences of each alphabetic letter in the text. treat upper and lower case instances of a letter as the same letter. hint: look up tolower()---testing the case … | |
I am currently taking this course, and I am struggling with the application of code at points. Does anyone know where I can find a good site for tutorial purposes? | |
hi i got a bank account project and i dont know how to figure out this problem i need to be able to transfert money from checking account to saving account if someone can help me with an exemple ,because i am a bit lost thanks by advance | |
Using an initialization list for a class array variable, what do you use to setup a slot with a 3parameter Ctor? | |
i'm trying getting the richedit caret positions. seems that i can't use the caret functions. LONG firstCharIndex(HWND hwnd) { POINT pt; pt.x=0; pt.y=0; LONG n = SendMessage(hwnd, EM_CHARFROMPOS, 0, (LPARAM)&pt); return LOWORD(n); } COORD GetCaretPos( ) { COORD pos; //getting the line from caret position: pos.Y=(LONG) SendMessage(consoleedit, EM_LINEFROMCHAR,(WPARAM)-1,0); CHARRANGE cr; … | |
Can someone tell me the formula codes of how to 1 find and write the total number of massive elements om massive number(random massive numbers) 2 find and write the biggest random massive number(random massive numbers) 3 find and write the smalles random massive number(random massive numbers) 4 how to … | |
Define an int array variable named arx with 3 slots, and stuff a 7 in the last slot int arx[2]=7; or is it: int arx[3]; arx[2]=7; Is this correct? | |
When I try to compile the program below in Eclipse I get two erros, ‘const class Fraction’ has no member named ‘n’ & ‘const class Fraction’ has no member named ‘d’ When I compile it on the command line with g++ -Wall FloatFraction2.cpp Fract7.cpp -o FloatFraction I get more errors … |
The End.