Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~42.0K People Reached
Favorite Tags
c x 26
php x 6
Member Avatar for guidely

Hi, I try to convert the c code into python it actually complie but no result came out Code in C #include <stdio.h> # include <math.h> double const pi=3.1415926535897932384626433; double const twopi=2.0*pi; double const halfpi=pi/2.0; float cos_32(float x) { int quad; x=fmod(x,twopi); if (x<0) { x=-x; } quad=int(x/halfpi); switch (quad) …

Member Avatar for Sukant_1
0
18K
Member Avatar for guidely

Hi, Yesterday I try to figure out that if we input day and the system will add day to current date and display result but I got problem example below input 1 day to add table 1st record 2012-05-05 Add 1 day 2012-05-06 input another 3 day table 1st record …

Member Avatar for guidely
0
113
Member Avatar for guidely

Hi, This is part hotel managment system but we want to create new feature where we can edit room type but this is not my code but it my program because I cant contact programmer so end up need to do my self, so got problem where cant update Here …

Member Avatar for Biiim
0
755
Member Avatar for guidely

Hi I dont really sure what I did wrong but it no working. I am making Snakes and Ladders game with out using list import random separator = '-' * 20 spaces = [None] * 90 c_l_spaces = {r'slid down a chute ': [[14, 3], [20, 15], [39, 33],[66, 53],[69, …

Member Avatar for TrustyTony
1
1K
Member Avatar for guidely

Hi, I currently studying computer science 1st year and I have trouble with practice exercise because I got exam tomorrow can you guys help me Here is my question: I have done some sql query am not sure It correct or not ITEM([U]INO integer[/U], INAME: varchar(10), DEPT: integer, PRICE: float, …

Member Avatar for Taywin
0
142
Member Avatar for guidely

Hi, I having problem with enter file name to read file it give me result like this [CODE] Please Enter Ship File path or Ship File name: data Segmentation fault: 11 [/CODE] Here is my code [CODE] #include <stdio.h> #include <stdlib.h> struct harbour { int harbourId; int maxCap; int timeUpload; …

Member Avatar for WaltP
0
208
Member Avatar for guidely

Hi I dont know why when I run in xcode it give me exec bad access but when I run using terminal it work fine Here is mt code [CODE] // // main.c // Harbour Unload System // // Created by Guide on 15/10/11. // Copyright 2011 __MyCompanyName__. All rights …

Member Avatar for guidely
0
165
Member Avatar for guidely

Hi, I get a output result: Segmentation fault: 11 when I tried to do quick sort a time in ship structure Here is my code [CODE] #include <stdio.h> struct harbour { int harbourId; int maxCap; int timeUpload; double amount; }; struct ship { int number; int shipId; int sMaxCap; int …

Member Avatar for guidely
0
4K
Member Avatar for guidely

Hi, I just wondering how to Passing structures of array to functions Here is my code [CODE] #include <stdio.h> struct harbour { int harbourId; int maxCap; int timeUpload; double amount; }; struct ship { int number; int shipId; int sMaxCap; int sActCap; int aTime; }; void readHarbour() { int i=0, …

Member Avatar for thines01
0
218
Member Avatar for guidely

HI how can store multiple array into one array [CODE] int id[5] = { 1,2,3,4,5,6}; int size[5] = {35,76,85,78}; int PerBox[5] = {12,24,44,54}; double Price[5] = {3.32,6.76, 13.45,6.08,7.8}; int item[200],i; for(i=0;i<4;i++) { item[i] = {id, size, PerBox, Price}; } [/CODE] each element should store id, size, perbox, price and output: …

Member Avatar for cse.avinash
0
251
Member Avatar for guidely

Hi, Am very very struct is there possible way to multiple variable into one element in array c and is there posible to do case statement with array. What I try to if max capacity of ship is less than max capacity of harbour but I need to check every …

Member Avatar for guidely
0
410
Member Avatar for guidely

Hi, I have problem passing array from main to another function Here is my code [CODE] #include <stdio.h> #include <string.h> # define Line_size 200 int processing(int lineCount, char harbour[Line_size][Line_size]) { int i; for(i=0;i<lineCount;i++) { printf("%s", harbour[i]); } } int main ( void ) { static const char filename[] = "data.txt"; …

Member Avatar for guidely
0
282
Member Avatar for guidely

Hi, How to read line by line of text file and store to array C data.txt example [CODE] 1234 25500 24000 1 1345 23523 21209 5 9865 12389 600 98 .... [/CODE] and sorted in order by last column I try everything and it not working Thank

Member Avatar for D33wakar
0
15K
Member Avatar for guidely

Hi, I have a bit of problem to store array from text file, It compile but result is not correct. it will store array when Max Capacity of ship is greater than harbour capacity here is my code [CODE] #include <stdio.h> int loadShip(void) { FILE *fp, *fp1; //char filename; int …

Member Avatar for guidely
0
400