19,876 Topics

Member Avatar for
Member Avatar for ivatanako

this is a java code, i need to convert it into C. [CODE] private void addFrame (int toAdd) { int[ ] frameScores = new int[0]; totalScore = totalScore + toAdd; if (frameScores.length < lastFrameNumber) { int [ ] temp = new int [frameScores.length+1]; for (int k=0; k<frameScores.length; k++) { temp[k] …

Member Avatar for ivatanako
0
157
Member Avatar for sardonic

I am using Microsoft visual c# express 2008 ide. I want to cycle thru my open files - I know there are a couple ways to do this but I want to be able to click on the name of the open file on the tab that is above the …

Member Avatar for sardonic
0
100
Member Avatar for pdwivedi

[code=C]#include<stdio.h> struct book { char name[25] ; char author[25] ; int callno ; } ; int main() { struct book b1={ "Let us C", "YPK", 101 } ; printf("name=%s",b1.name); printf("\nname=%s",&b1.name); return 0; } [/code] can someone explain me why i am getting the same output while i am using two …

Member Avatar for Salem
0
88
Member Avatar for Nathan Campos

Hello, Because of my new and the most of the future projects, i'm needing to learn C and use Windows, but because of this, i don't know how to use the Windows API, then i'm asking for an example of using DeleteFile function. Thanks, Nathan Paulino Campos

Member Avatar for marco93
0
130
Member Avatar for anne_lise

hi i am trying to use incbet.c alone . it is presently availabe as library (with its makefile) as given below . i wanted to know all the files used by incbet.c . i dont know details about make file . i tried to to look at GNU tutorial on …

Member Avatar for Salem
0
193
Member Avatar for thilinam

HI, I am a Beginner to C#. I have knowledge in C++ programming. please give me a reference to learn C#.

Member Avatar for ddanbe
0
90
Member Avatar for hoke

Hullo. I would be very nearly eternally grateful if someone would explain how to convert a void pointer's target (eg 0xda9f000) into a string in C. Both my own brain and google have failed me on this one. I can do this in printf using the wonderfully inelegant line: printf("Value:'%p' …

Member Avatar for Nathan Campos
0
6K
Member Avatar for ksan

[LEFT]i have an assignment to make a bus reservation system that will return in main 35 times and increase the ticket number,using function arrays,and looping and can anyone help me ive been doing this assignment for 3 weeks now and i cant do it. [/LEFT]

Member Avatar for MrNoob
0
180
Member Avatar for priyairani00

what will b the coding of a program.. "program to swap two no. using third variable"

Member Avatar for priyairani00
0
91
Member Avatar for ITech

I have created a windows application using C#. the problem is fairly simple. I doono how to refer to the Application path in c#. In Vb we can use App.path to refer to the Application path My C# code for opening a report is as [code=c#] public partial class frmSpaBill …

Member Avatar for serkan sendur
1
353
Member Avatar for katwalatapan

Hello, I would like to work on POSIX thread programming using TC v3.0. The required libraries for its development are STL (that's what I got from some online research). Could anyone please let me know: 1.) Where to download STL libraries. 2.) How to configure them with TC v3.0 3.) …

Member Avatar for Ancient Dragon
0
139
Member Avatar for MrNoob
Member Avatar for ItecKid

Hello, I am writing a C++ program to find the largest such number such that the square root of that number is less than or equal to a fixed number, set by me, like this: [code=c++] #include <stdio.h> #include <math.h> int main (void) { long fixed, param, result; result = …

Member Avatar for ItecKid
0
126
Member Avatar for kyumi419

guys.. i hope you could help me out here.. we are currently in iterative and conditional statements.. problem is making a [I]pyramid[/I] using asterisks. for example, if the user input 6, that would be the height of the pyramid, while the body starts at 1 and increases by 2 each …

Member Avatar for kyumi419
0
143
Member Avatar for chixm8_49

Good day everyone! I would like to ask some problem about the program I am currently working (hangman to be specific). Since I am just a beginner, there are many things I would like to clarify. I would like to ask your help so that I can enable more to …

Member Avatar for codeguru_2009
0
177
Member Avatar for Moonbaby

Can anyone help me solve this word equation it is for a simple homework assignment and the professor was having problems with his computer and now I am left in the cold. I need a detailed answer and the formula.. Thanks so much and I may not even been in …

Member Avatar for Ancient Dragon
0
90
Member Avatar for anujsharma

Hi, I urgently need some help on system date and time.Here's the code [code=c] #include<stdio.h> #include<time.h> main() { time_t rawtime; struct tm *timeinfo; time(&rawtime); timeinfo=localtime(&rawtime); int hour2; int minute2; int seconds2; char end1[5]; int end=0; char diff[5]; char start[5]; int i=0; char ch[5]; char ch1[5]; FILE *fp2; FILE *fp1; FILE …

Member Avatar for anujsharma
0
133
Member Avatar for furqankhyraj

i want to make a program in which if we input 98765 than it give output as 9 8 7 6 5 please help me

Member Avatar for Ancient Dragon
0
87
Member Avatar for azn_sweet

[code] /*Output Section */ printf ("\nThat height is equivalent to " "%1f" " feet and " "%2f" " inch(es).\n"); scanf ("%f", &FEET); scanf ("%f", &INCHES); [/code]

Member Avatar for Aia
0
72
Member Avatar for azn_sweet

I need help with this assignment for my computer programming class..... I honestly have no idea what Im doing!!!! Convert a person's height from meters into feet and inches (rounded to the nearest whole numbers) and display the result on the screen. The height must be entered by the user …

Member Avatar for Salem
0
146
Member Avatar for furqankhyraj

[code]#inclxude<conio.h> #include<stdio.h> #include<stdlib.h> max(int a,int b,int c); void main (void) { clrscr(); int a,b,c,max; long z; printf("input three numbers by giving space"); scanf("%d %d %d",&a,&b,&c); z=max(a,b,c); printf("Max value is %lb",z); getch(); } void max(int a ,int b,int c ) { if(a>b&&a>c) return(a); if(b>c&&b>a) return(b); return(c); }[/code] i make that program …

Member Avatar for yellowSnow
-2
91
Member Avatar for katwalatapan

Hello, I am trying to work learn thread programming in C. I have my turbo C installed and its working fine. I tried to get the library "pthread.h" and relater STLport package by searching online and managed to get them and copied them in my include directory. But while compiling …

Member Avatar for Salem
0
139
Member Avatar for rakesh_01

Guys I'm supposed to write a program that displays the date and time using C along with username and password inputs I came up with the following code [code] #include <stdio.h> #include <termios.h> #include <unistd.h> #include <time.h> #include <curses.h> #define PASS_LEN 25 int current_getch; int doloop = 1; static WINDOW …

Member Avatar for Salem
0
161
Member Avatar for sofiastrange

Hello everyone! I am trying to write a program in C for the RSA encryption. I have come this far and can't seem to go further. I don't understand why it is not giving me the desired results. My program style may be a bit naive i am just starting …

Member Avatar for Salem
0
133
Member Avatar for EddieC

"The great thing about standards is that every company gets to have one." The first time I heard that expression was around 1995. Proclaimed by Joel Shore, a former-boss-now-friend, it was one of the many truisms at the time. A good many standards bodies and arbiters have cropped up since …

0
245
Member Avatar for EddieC

The [URL=http://www.iso.org/iso/home.htm]International Organization for Standardization[/URL] today announced that Adobe’s Portable Document Format is now an ISO standard. Well it’s about time! The PDF has only [URL=http://www.adobe.com/pdf/about/history/] been around[/URL] for 15 years! This is great news for all areas of publishing, for Web developers and Web site admins, even operating system …

0
193
Member Avatar for EddieC

Maybe it’s all part of a kinder, gentler Microsoft; or maybe it’s something else. In the latest example of Redmond’s increase in openness, the “Evil Empire” in an [URL=http://www.microsoft.com/presspass/press/2007/may07/05-16ANSIVotePR.mspx] announcement[/URL] last week said it backs the addition of the Open Document Format to the American National Standards Institute (ANSI) standards …

0
141
Member Avatar for MosaicFuneral
Member Avatar for MosaicFuneral
Member Avatar for MosaicFuneral
Member Avatar for tux4life

[U]Usage::[/U] [ICODE][B]ir_strcpy[/B]( [I]destination[/I], [I]source[/I], [I]range_begin[/I], [I]range_end[/I]);[/ICODE] [U]example:[/U] [CODE=c] char test[] = "Hello World!!!"; char test2[20]; ir_strcpy(test2, test, 1, 3); /* test2 now contains 'ell' */ [/CODE]

0
277
Member Avatar for tux4life

This is how mine [B]strlen[/B] function would look like if I'd to implement it from scratch :)

0
245
Member Avatar for clarence_cool03
-1
108
Member Avatar for clarence_cool03
0
166
Member Avatar for clarence_cool03
0
220
Member Avatar for clarence_cool03
0
123
Member Avatar for clarence_cool03
0
146
Member Avatar for clarence_cool03
0
172
Member Avatar for clarence_cool03
0
226
Member Avatar for clarence_cool03
0
151
Member Avatar for clarence_cool03
Member Avatar for clarence_cool03
0
168
Member Avatar for clarence_cool03
0
143
Member Avatar for clarence_cool03
Member Avatar for Dave Sinkula

This is a quick and dirty example of a hex dump utility. Not much in the way of special features -- it just dumps the contents of a hard-coded filename in hex and also shows the characters. An example that can show the basics of making your own.

0
233
Member Avatar for tux4life

This program can solve expressions of the following forms: [ICODE]a+b[/ICODE],[ICODE]a-b[/ICODE],[ICODE]a*b[/ICODE],[ICODE]a/b[/ICODE] ([ICODE]a[/ICODE] and [ICODE]b[/ICODE] are numbers :P) Notice: You can't put spaces in between the operands and the operator, I know this is a limitation and that there are thousands of other ways to achieve a better result, so please don't …

Member Avatar for tux4life
0
177
Member Avatar for aiswariya

A game... Depends fully on luck that u have and a little bit of smartness.. You will be given 3 chances.. and 3 nos will me running randomly. u have to click when all t three no are same.. if u succeed in this then u are t winner.. Smart …

0
103
Member Avatar for aiswariya

This is very very simple c code.. it has simple maths logic involved..

0
98
Member Avatar for aiswariya

The program is exactly to work out with maths fun.. u think of a two digit no.. say 24 now add both the digits i.e;2+4=6. subtract 6 with the no tat u thought originally.. i.e;24-6=18.. see t symbol which correspond to the no 18 and then press enter to see …

0
163
Member Avatar for meghs007

This program take user name and password from the use but the password not display on screen insted of password ***** display Program by Meghdoot(meghs)

Member Avatar for burnt-ice09
0
194

The End.