15,539 Topics
| |
I can not solve this problem. I should write a code for PROGRAM in C, which finds the longest word of the text enter by the keyboard. Plaese help me! | |
Hello Guys I am new to C programming and as a part of an assignment I have made an ATM algorithm in C. Though the compiler shows no errors, the code goes into an infinite loop after the first input. Please Help. Here's the code: #include<stdio.h> #include<conio.h> void main(){ float … | |
Hi all few free tutorial sites for beginners are given below. C PROGRAMMING http://learnermode.com/c-tutorial/ C++ pROGRAMMING http://cplusplus.com Java https://docs.oracle.com/javase/tutorial/ C# https://msdn.microsoft.com/en-us/library/aa288436(v=vs.71).aspx Python https://www.tutorialspoint.com/python/ Java Applets http://learnermode.com/java-tutorial/applets/ | |
i defined a structure for a student `typedef struct {` `char firstName[20];` ` char lastName[20];` `int id;` ` char *birthDate; `} Student;` the function definition for a student is this `Student * createStudent(const char * first_Name, const char *last_Name, int ID, const char * `birthDate_str) {` ` /* Declare a … | |
1. Your program should read the input files by using Unix shell redirection (e.g. a.out<lab1.dat) to read the input from stdin (C). By using redirection, it is unnecessary to open and close the input file, nor should your program prompt for a file name. You should dynamically allocate tables for … | |
| I am relatively new to the programming world so I apologize if my code seems naive in any sort of way.I have been making a piece of code that counts all the circular primes below a given number, 'input'. If you wonder what circular primes are, you can check it … |
i have this piece of code that coppies a file to another: my question is, how do i change the name of the created output file ? for example if the file that i run this code on is "text.txt" how do i add the ending ".something" to the file's … | |
why can't we change the default starting index of an array to 1 instead of 0 ? and another question how much fields can a bit field have ay most ? thanks previously | |
im intending to write a code that reads words and the lines that it appears at from a file and sort the words alphabetically in a linked list then prints them. so far i've made out this... but it doesn't print them in alphabetic order and it prints duplicates as … | |
struct sdata; typedef struct sdata *sptr; struct sdata { char sName[25]; char sNum[7]; sptr next; }; void readdata(); int main(void) { readdata(); return 0;' } void readdata(){ int length; int i ; char Line [100]; const char s[2] ="#"; char *token= strtok(Line,s); FILE * data =fopen("data.txt","r") ; if(data==NULL){ printf("ERROR : … | |
Hello, I work at the U.S. Department of Labor, on the Unemployment Insurance program. I am working on developing a new Benefit Financing model for the state of Oregon, and I am having an issue with passing a struct between mutiple .c and .cfn files( the .cfn files are for … | |
Hi Friends, Recently I've experienced an issue in my (following) code. I've designed an array-stack and checked the values pushed in to it. It works well when pushing but when popping it doesn't display the whole popped values. E.g: If I pushed the values "zero to nine" in to the … | |
How to can i do like this: datagridview1.row [i] = input value , and results(calculated) in datagridview2's row[i] = output value. it means input row and output rows are neeb to be same. i need to connect them. please help me. | |
1.PLease help me, How to call input values from datagridview.(unlimited rows) I tried this coding, but it's not working, didn't show any answers. private void dataGridView10_CellContentClick(object sender, DataGridViewCellEventArgs e) { for (int i = 0; i < (dataGridView10.Rows.Count); i++) { DataGridViewRow row = dataGridView1.Rows[i]; groundproperty[0] = Convert.ToDouble(dataGridView10.Rows[i].Cells["Column1"].Value); groundproperty[1] = Convert.ToDouble(dataGridView10.Rows[i].Cells["Column2"].Value); … | |
Hie,I have Merge Sort Program .It's giving correct output but when checked through debugger it gives different values everytime.I also tried doing it manually but I am not getting the actual output. I will not ask now for complete program explanation. I just want to know the value over here.This … | |
[CODE]#include <stdio.h> #include <stdlib.h> #define SIZE 31 int main() { int array[SIZE]={0}; int i,j; int startDay=0,numDays=30; printf(" S M T W TH F S\n"); for (i=1;i<=1+ startDay*5;i++) printf(" "); for (i= 1; i <= numDays; i++) { printf("%2d",i); if ((i+startDay)%7 > 0) { printf(" "); system("color 6");} else printf("\n "); … | |
Hi All, I would appreciate if someone could please answer to the following queries. 1. Difference between "new" and "new virtual" when deriving classes from other classes. 2. Difference between Abstarction and Encapsulation (with example, if possible). 3. Types of constructors and their implementations (when and how to use). 4. … | |
XML File :http://goalserve.com/samples/soccer_inplay.xml Model: [XmlRoot(ElementName = "localteam")] public class Localteam { [XmlAttribute(AttributeName = "name")] public string Name { get; set; } [XmlAttribute(AttributeName = "goals")] public string Goals { get; set; } [XmlAttribute(AttributeName = "id")] public string Id { get; set; } } Controller: XmlDocument doc = new XmlDocument(); List<Localteam> s … | |
im trying to make a loop that asks a command from stdin and checks if it's valid or not, and the command for example will be in this format : Command then seperated with any amount of spaces then a Letter then comma then a double a comma and a … | |
I wont to display other results according to one row: Country>>League HomeTeam AwayTeam Result **Italy>>Seria A** Juventus Inter [1-0] Inter Barcelona[2-0] **Albania>>Kategoria Superiore** Tirana-Kukes [2-1] What i have done till now displays this: **Italy>>Seria A** Juventus Inter [1-0] **Italy>>Seria A** Inter Barcelona[2-0] **Albania>>Kategoria Superiore** Tirana-Kukes [2-1] @foreach (var item in … | |
Hello All; I am trying to make a copy of a file in another file using C. But the content of the file should be repeted the quantity of times of the lines of a third file { int num = 0; int x; char cont; FILE *file; file = … | |
First, I do know that it is not recommended to include .c in another .c but to do it with .h instead, everyone told me that but my instructor demands it, but whenever i try it it just won't compile. i appretiate any help... im working on ubunto 12.04 platform … | |
Server Error in '/' Application. Cannot open database "FDB" requested by the login. The login failed. Login failed for user 'fdb'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in … | |
why when i print the list it always misses the 1st line of input ? here's my code: #include<stdlib.h> #include<stdio.h> struct list { char data; struct list * next; }; typedef struct list item; int main() { item * curr, * head; char c; head = NULL; while((c=getchar())!=EOF) { curr … | |
Hello, any body. How to check the handler socket is dissconcted? if try this if (handler.Dissconcted) but not accepted from c#. | |
Hello, this is John McPherson, writing code for the U.S. Department of Labor. I am working on developing a new Benefit Finanacila Model for the state of Oregon, and I am having a problem with the printing of large numbers that are converted to strings. It works most of the … | |
hello, i just set goal of mastering algorith and i just get started i have an algorhtm for insert sort and i when i write it in c it is not sorting this is the algorith for j D 2 to A_length key = A[j] // Insert A[j] into the … | |
Hi, i would like to know if it is ok to use SQLCE for a big software like SCHOOL MANAGEMENT SYSTEM or LIbrary Management System. If NO. Why? Thank You for your help.. |
The End.