15,552 Topics
![]() | |
Programming Exercise ATM Machine In this assignment you will create a program that allows a user to do the following: 1) Create a bank account by supplying a user id and password. 2) Login using their id and password. 3) Quit the program. Now if login was successful the user … | |
How do I process the xamarin forms that connect to SQL Server and export data to the listView ? I'm looking for this simple example. What do I find on google ? | |
I got this assignment and I'm stuck. I have to write a function that takes an integer value and returns the number with its digits reversed. For example, given the number 7631, the function should return 1367. Can someone help? :confused: | |
Above program takes input of coefficient and power separately of 2 different polynomials add them up to a new polynomial.It is successfully compiled and executed in DEV CPP as C file.It Turbo C compiler add void before main function to avoid warning messages. | |
![]() | I just started learning C with a book called "Sams | Teach Yourself C in 21 Days, 6th edition" and I've already run into a problem I can't solve. The book gives a program that is supposed to display any code from any saved source file - including its own. … ![]() |
i need to read from file two array with two different type (string and intger) but when i wrote the c code to read the file : char ON[row][30]; int RA[row][clo]; int i; int j; FILE*infile; infile=fopen("rane.txt","r"); for(i=0; i<row; i++) { fscanf(infile,"%s",&ON[i]); for (i=1;i<row;i++) for(j=0; j<clo; j++) fscanf(infile,"%d",&RA[i][j]); } then … | |
How to delete a record from a file in Dev C | |
I'm creating a program that maintains student scores. I've created a class called students that stores the data and displays it in a list box. Once the user clicks btnAdd a new form (frmAddStudent) loads that allows them to add the user by name and their scores and display it … | |
Hi can anyone help me convert these codes into java and let me know which classes are to have? // Clustering.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <string.h> #include "MersenneTwister.h" #define CATAGORICAL_CONST 30.0 #define MAX_FILENAME_SIZE 500 #define MAX_BUFFER_SIZE 500 #define MAX_STRING_SIZE 100 #define … | |
can anyone help me with Add to cart functionality in xamarin(i.e) C# code using SQLite | |
Hello, i need your help. I need to make a program which will make sum of digits in number e.g. 123 is 6 BUT, the number could be very big like 1000 digits long or more.(e.g. 1 005 854 684......) - of course without spaces So, i cannot use datatypes … | |
I was wandering aimlessly on google, I found [ReactOS](https://www.reactos.org/). It's interesting. I tried this OS, many windows applications are running well on it. But some latest applications are unable to run like **Firefox 65.0.1** I have few questions, * How worth is using this OS? * What is future of … | |
Hi, I'm writing in C my program and I have a problem with this pieces of code: //lib.h typedef struct Array { char **array; char *searchDirPath; char *searchFile; char *tmpFileName; int tmpFile; int arraySize; int currIndex; } Array; // lib.c Array* createArray(int size) { Array* newArray = calloc(1,sizeof(Array)); newArray->array = … ![]() | |
Suppose I create an asp.net website project that loads data into griview from the class library, declaring the library to use loading data for griview //file: ChitietSP.aspx using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Diagnostics; // … | |
So given the following code (not my actual code since it would add unnecessary lines): typedef struct block{ int a; int table[64]; }block; typedef block* block_ptr; void getValues(block_ptr node){ int i, j; for(i=0; i<5; i++){ for(j=0; j < 15; j++){ node[i].table[j] = j; } } } int main(){ block node[10]; … | |
This may sound wierd, or easy, I just don't have a statistics background. How do I alter the statistical value of an array of emmitted random numbers? I am completely capable of using ranges, or creating an algorithim, I just need pseudo code or a brief description to guide me … | |
I am starting a website where an image shows on the home page and when I scroll to hover over the image it opens a newpage. I’m trying to figure out a way to do a slow dissolve from the home page to new page and also if the user … | |
I'm trying to make this queue program for school to take the next packet out of my queue (therefore delete it) in the queue function : struct packet_t *queue_retrieve(struct queue_t *queue) in line 73. I know that i have to use my write and read but i fail to understand … | |
HEEY EVERYONE ,hope you're doing well my teacher assigned us a homework wich is to create a program with C; this program takes as input a text file with some data in it .every line of the text file contains the ID of an employee and it's name and salary … | |
Hi, does anyone know how to pass variables between functions in C so one function can recognise the variable passed from another function. one function knowing from another function like length = 0; while (length <= 5) { length ++; } return(length); getting the value of the length from the … | |
Hello everybody, I want to convert python to c but ı did not find any converter. Is it possible to convert | |
hello. how can i print out in textbox a void * value ? here is the code: uintptr_t offsetFromBuffer = (uintptr_t)internalAddress - (uintptr_t)&buffer; void * healthDecAddress = (void*)(currentChunk + offsetFromBuffer); richTextBox1->Text = healthDecAddress; // how can i do it right ? | |
I am doing a team project with some people that prefer Linux and some people prefer Windows. We are also not allowed to share code for security reasons. One thing the Windows people love to whine about is a way to hold the window open. So the way they usually … | |
I am trying to replace a string in a function with double pointers. I would like to see this change back in main. What am I doing wrong? These are the warnings my compiler gave me. $ gcc *.c -Wall main.c: In function ‘replacevalue’: main.c:10:12: warning: passing argument 1 of … | |
Hi, I have a C++ program : // ConsoleApplication14.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <list> #include <queue> #include <vector> #include <string> using namespace std; class RectangularVectors { public: static std::vector<std::vector<int>> ReturnRectangularIntVector(int size1, int size2) { std::vector<std::vector<int>> newVector(size1); for (int vector1 … | |
Hi I am trying to get windows positioned in specific order as show below  but I am unable to get and get always this  the code below is shown HDWP cmdWnds; cmdWnds = BeginDeferWindowPos(col.size()); for (int i = 0; i < col.size(); i++) { if (i == 0) … | |
i am new to c programming and i wanna ask for help. at the end of the coding part, how can i print out the orderlist, the quantity and the total price for the food? I personally think that it is similar as print out a reciept but i have … | |
i need a code for authentefication user and password with c languge the user and password should be filled first in a .text | |
So I have a poker type program where it should shuffle and deal a deck of cards using arrays of pointers. I have to write a function that uses a pointer(s) to determine if the hand contains an Ace. If I can understand this one, I'd be able to do … | |
Hello everyone. I am a newbie in C programming and I have a quite challenging task to do. I am supposed to write program where user enters a number (for example a number that user wants to get from cashpoint) and the program gives me as best solution as it's … | |
im just new on c program can you help me on this ? problem : make a C program that will ask 10 numbers and store into an array. the numbers to be entered must be between 70 to 95 only output the average,number of grades below average, above average. … | |
I want to create a game that computer guesses the number that i think between 0-500 but i am a beginner and i do not know what to do could you help me please ? | |
I see the software to charge credit card swipe, samsung pay, ... I want to find out how the swipe card works and write code to get payment information in the software sales. how ? You can share the code for me with. | |
Hey, I don't know if this is the right place, but my issue is taking an output from a software SPI and using it in another function for temperature. The code below is marked with my issue, however it's not the full code. The full code is for a lab … | |
How can I make this to continue until the user presses N? I've tried using while(1), while( option == 'y' || option == 'Y') but it kept giving an error for that, and if/else statements but no luck. So I decided to try a do while statement and same results, … | |
I have 30 functions like this void func1(int *var1, int *var2) { func2(var1, var2); } void func2(int *var1, int *var2) { func3(var1, var2); } void func3(int *var1, int *var2) { func4(var1, var2); } I do not need var3 until func15. Is there a way to fix this mistake without having … | |
If you have a counter that gets incremented through multiple functions, is it better to use a global counter or pointer counter? They both work just curious which is better and why. | |
Can someone give me the code of this program: Write a program that convert the numbers of length upto 3 into words and speech.Use either if else or switch case only | |
Hi guys, I took it upon myself to learn the mysteries of linux. I'm trying to write a shell that can handle more than one pipe. Here's the code: [CODE] typedef struct command_link{ char *command; char *argv[MAX_ARGS]; int argc; struct command_link* next; int isPiped; }command_t; int pipedCommand(command_t *command) { int … | |
Hi guys I was having issues with reading 3 files and merging them into an array, I tried fgetc, which then let me to have issues with sorting them so I tried to change my array and allocate a counter variable to get the size of it but not sure … | |
Hi, How can I pass a c# string to C++ side of the app? Right now, I have all handling in Const char * format . When I pass c# string, c++ working fine when using Platform::String . But there is no good way of converting Platform::String to const char … | |
I have show example merge cell the datagridView but actually deleting the duplicate line (demo: https://stackoverflow.com/questions/16774966/how-to-merge-datagridview-cell-in-winforms), I want after merge cell the text in the middle of the cell as the image file attached to the code write how ? http://www.mediafire.com/view/h005tuc3aawaray/1.PNG/file | |
I want to color cell of the listview, how to write code ? You see my image file. http://www.mediafire.com/view/uoq3qw4o9c90jwd/chamcong5.jpg/file | |
Suppose there are two forms: frmMain and frmPopup, frmPopup is always on frmMain, when select frmMain inputting data then frmPopup always on frmMain, frmPopup is always on frmMain, how is it to write code ? you see attach file http://www.mediafire.com/view/bq32fcb3ept329r/PopUpInput.jpg/file | |
This snippet converts a CIDR notated IP address to a range of IP addresses in decimal, dotted notation. Eg.: 192.168.1.255/31 => 192.168.1.254 - 192.168.1.255 | |
I have a data file called Access 2003 Table The question "TABCAUHOI" has the following fields: ID int; NOIDUNG memo; The "NOIDUNG" field has data type as memo, I pour data from excel text file into this table in this access file to check the contents are full as excel … | |
Hi,my problem is when I choose yes to go for customer number 2 and when I simply choose either a combo(even thought A,B,C or D) it will straight end the whole program and show press any key to continue instead of continue the looping for return the selection(case A,B,C,D or … | |
hey guys, Can any body tell me how shall i start with the project. I will be using Java and C together(JNI) in netbeans for coding. I will be embedding the C code in Java(Interface). First i want to read the wav file in C and sample it and apply … | |
#include<stdio.h> #include<conio.h> typedef struct process{ char pname[20]; int at,bt,wt,ta,end; }processes; int main(){ processes P[10]; processes z[10]; processes et[10]; processes wt1[10]; processes ta1[10]; int a,b,n,x=0,st,y,w; float aveta,avewt,sumta=0,sumwt=0; printf("Process Scheduling Algorithm:\n"); printf("SHORTEST JOB FIRST\n"); printf("--------------------------------------\n"); printf("Enter No. of Process: "); scanf("%d",&n); printf("\n"); for(a=0;a<n;a++){ printf("Enter Process Name P[%d]: ",a+1); scanf("%s",&P[a].pname); } printf("\n"); for(a=0;a<n;a++){ … | |
Is C similar to C# (C-sharp); or are they completely different ? I was wondering if I should begin learning C# and the transition to C will be a tad bit easier ? |
The End.