15,539 Topics

Member Avatar for
Member Avatar for vvsmario

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!

Member Avatar for Busuioc
-1
4K
Member Avatar for Sumit_12

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 …

Member Avatar for Gribouillis
0
1K
Member Avatar for itian.kongu

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/

Member Avatar for cahendi
2
377
Member Avatar for jaelle

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 …

Member Avatar for thines01
0
4K
Member Avatar for Kerri_1

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 …

Member Avatar for ddanbe
0
260
Member Avatar for Martin_20
Member Avatar for rproffitt
0
71
Member Avatar for ericstern

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 …

Member Avatar for dagger
0
704
Member Avatar for Adm666

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 …

Member Avatar for rproffitt
0
397
Member Avatar for Adm666

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

Member Avatar for pty
0
352
Member Avatar for Adm666

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 …

Member Avatar for Adm666
0
2K
Member Avatar for Mrra

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 : …

Member Avatar for Nutster
0
283
Member Avatar for JohnMcPherson

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 …

Member Avatar for JohnMcPherson
0
612
Member Avatar for gajen007

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 …

Member Avatar for rproffitt
0
311
Member Avatar for Khaliunaa

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.

Member Avatar for ddanbe
0
387
Member Avatar for Khaliunaa

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); …

Member Avatar for ddanbe
0
733
Member Avatar for Iamateur

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 …

Member Avatar for rproffitt
0
385
Member Avatar for DoEds

[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 "); …

Member Avatar for John_167
2
6K
Member Avatar for KushMishra

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. …

Member Avatar for KushMishra
0
371
Member Avatar for Stat_1

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 …

Member Avatar for rproffitt
0
1K
Member Avatar for Adm666

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 …

Member Avatar for Nutster
0
382
Member Avatar for Stat_1

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 …

Member Avatar for Stat_1
0
326
Member Avatar for Alex_65

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 = …

Member Avatar for Joris Claassen
0
324
Member Avatar for Adm666

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 …

Member Avatar for kristiangd
0
496
Member Avatar for Stat_1

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 …

Member Avatar for thines01
0
333
Member Avatar for saladin_1
Member Avatar for Adm666

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 …

Member Avatar for Adm666
0
178
Member Avatar for andreas.petrou.967

Hello, any body. How to check the handler socket is dissconcted? if try this if (handler.Dissconcted) but not accepted from c#.

Member Avatar for andreas.petrou.967
0
101
Member Avatar for JohnMcPherson

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 …

Member Avatar for AssertNull
0
488
Member Avatar for chrisschristou

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 …

Member Avatar for rproffitt
0
416
Member Avatar for kim_boto

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..

Member Avatar for rubberman
0
92

The End.