19,876 Topics

Member Avatar for
Member Avatar for nalinibh

Deal all,my prob:how can i pass data in a file after reading the file in C. i want to encrypt data of this file after reading the file.i know i cn use f commands to read data but want to pass the data later in second part of my program.sorry …

Member Avatar for danysabin
0
108
Member Avatar for pixrix

what is the different about C++ n C.. i have a program below which my friends say that it is on C.. how do i change to C++.. [code] #include <stdio.h> #include <stdlib.h> char matrix[3][3]; /* the tic tac toe matrix */ char check(void); void init_matrix(void); void get_player_move(void); void get_computer_move(void); …

Member Avatar for ~s.o.s~
0
300
Member Avatar for indraprabha_m

please help me in writing the code for "polynomial ADT ADDITION using [B]LINKED LIST[/B]:S

Member Avatar for Narue
-1
56
Member Avatar for codercpp1

Ok, so I have been tinkering a bit in CPP. I was wanting to do a cash register type system because its kinda simple yet a good challenge for me. I am thinking about good ol iostream for echoing all of the choices, and switch statements or elseifs for taking …

Member Avatar for WaltP
0
100
Member Avatar for bobs360

I am a beginner in computers, i would like to be assisted in writing a simple program that inputs a fraction in the form of a/b and c/d and culculates the sum and returns the answer in the simlest form as in p/q. Notes do not allow zero as the …

Member Avatar for ~s.o.s~
0
327
Member Avatar for narendharg

hi I want to know what is linker and linkage in c language. Could some one explain me what is linker and linkage. Narendhar

Member Avatar for Salem
0
73
Member Avatar for caltiger

Hi, Does anyone know anything about stack size reduction? I`ve gone thru the C forum and I did not find anything. Wat r the standard techniques to reduce the stack size? From wat I`ve heard, one of the best ways is to try and avoid static arrays in functions. Is …

Member Avatar for Salem
0
143
Member Avatar for smithag261

I want to know how to write a program to print all ascii values and equivalent characters using a while loop. ascii values vary from 0 to 255.

Member Avatar for WaltP
0
481
Member Avatar for Prozeen

Hi there, I'm completely new to C++ programming and need to find out/verify something in the code below... [code]// my first program in C++ #include <iostream> using namespace std; int main () { cout << "Hello World!"; return 0; }[/code] From a web site I (believe I) understand the following …

Member Avatar for Prozeen
0
124
Member Avatar for aaisha
Member Avatar for Narue
0
118
Member Avatar for andy_i

how to find out the maximum and the second maximum number from an array of integers

Member Avatar for Rashakil Fol
0
127
Member Avatar for aasi007onfire

i posted a thread earlier and from the links given to me there i found that scanf(), gets() and some functions in C cause a lot of problem when an erroneous input is given.... 1. i want to know how these problems are avoided while programming 2. if these functions …

Member Avatar for praneeth_gunda
0
121
Member Avatar for praneeth_gunda

Hai Guys This Is Praneeth Kumar Can U please give me a Code 4 CRC -12,CRC-16,CRC-CCITT in C

Member Avatar for Aia
0
71
Member Avatar for Fusina

Hi, i am new to this forum, and new to c programming. I have an assignment to write a program in c which asks the user to type in a file name (already existing) for which he wants to do processing. The size of the file is not known so …

Member Avatar for dwks
0
137
Member Avatar for vicky_dev

I have two static libraries: [INDENT][COLOR="Green"]/usr/X11R6/lib/libX11.a[/COLOR] - Standard library, ~ 1.5MB [COLOR="Green"]./libxbgi.a[/COLOR] - Created by me, ~60KB[/INDENT] Now I use the following commands to compile a program, [I]test.c[/I]: [inlinecode]$gcc -o test test.c -lm -L /usr/X11R6/lib -lX11 -L . -lxbgi[/inlinecode] This works fine, the executable [I]test[/I] is 33KB, which is as …

Member Avatar for vicky_dev
0
118
Member Avatar for Hamrick

I wrote strlen() for practice but it's really slow. Even if I copy the code from my compiler and run it, it's still slow. This is my test. [code=c++] /* strlen_comp Comparing my and Visual C++'s strlen by Kimberly Hamrick */ #include <assert.h> // for result tests #include <string.h> // …

Member Avatar for Hamrick
0
295
Member Avatar for bops

Hey, I have installed Kubuntu linux recently and I am looking for a compiler with an IDE to use with it. Does anyone know of any of these that will run on this OS and that I can get for free? Thanks.

Member Avatar for JRM
0
100
Member Avatar for vemanamar

Dear programmers, I am a new learner of C. I want to know the format specifier for long long int. I am using .net 2003 for programming. I am trying "%lld", but its not giving right results. Can any one help me with this. Thanking you ! Regards, Amar

Member Avatar for Ancient Dragon
0
183
Member Avatar for banderson777

Hello, I'm a bit new at in-depth IE programming, and am having a bit of trouble with a couple of IE browser extensions (getting them to talk to each other). The first one is a C++ Browser Helper Object (BHO). I have a class (MyClass) that has a method called …

0
54
Member Avatar for Jaav

Im doing "Sams Teach Yourself C in 24 Hours". Which can be found [URL="http://aelinik.free.fr/c/index.html"]here.[/URL] I'm at hour 6 right now. I most likely will run into several problems while trying to solve his excercises. I don't want to make a new thread everytime I run into a problem. So I …

Member Avatar for thekashyap
0
144
Member Avatar for kylcrow

I was asked to help make some test scripts at my work, and they use VBScript to write all their code. I pretty much only know c/c++ how hard would it be to learn VBScript if I am decent at c++? And does anyone have preference to which website they …

Member Avatar for ~s.o.s~
0
115
Member Avatar for jez5758

Hi Im having a problem with thr icon for my C drive it doesn't show what it should be and when you double click on it it goes straight to search. Im running xp with sp2. HELP!!!!!!!!!!!!

Member Avatar for iamthwee
0
57
Member Avatar for comCY

- finiteness - absence of ambiguity - sequence definition - input, output - effectiveness - scope definition thanks!

Member Avatar for sj87
0
79
Member Avatar for aasi007onfire

i know some basic programming in C... now C++ is a necessity for me.... i dont have any problem with syntax... my problem is i want to know what all i must study to get accustomed to C++ i.e. the concepts that C++ has and C doesn't....

Member Avatar for vijayan121
0
166
Member Avatar for narendharg

hi to every one, I am working in AT91RM9200 microcontroller,I want to use interrupt functions in that microcontroller can someone suggest solutions, I am using C code.

Member Avatar for Salem
0
113
Member Avatar for Cleong

can someone give me some example code to develop a multitasking program consists 3 lines. lines one produce A and B where line 2 receive A and line 3 receive B... im new in C , can someone show me a example for reference.. TQ

Member Avatar for Ancient Dragon
0
31
Member Avatar for tomotao

everything seems to go fine except when i get to the search. either the program runs with a runtime error ,and it cannot be excuted. [code] /***************************************************** Program Filename : post.cpp Date : May 27, 2007 Purpose : NC code convert Input from : a cls data file Output to …

Member Avatar for tomotao
0
355
Member Avatar for Jaav

I have no idea why. The lines it's skipping is the system("PAUSE");. Not the first two but the last two. [code=c] #include <stdlib.h> #include <stdio.h> int main() { char Big, Small; Big='Z'; Small='z'; printf("Z=%d.\nz=%d.\n",Big,Small); system("PAUSE"); int X,Y; X=72; Y=104; printf("74=%c.\n104=%c.\n",X,Y); system("PAUSE"); double DblNum = 123.456; printf("f=%f.\nScientific=%e.\ntestF=%F.\n",DblNum,DblNum,DblNum); system("PAUSE"); char Newline = …

Member Avatar for ~s.o.s~
0
107
Member Avatar for aasi007onfire

consider the structure [code]struct gun { char name[50]; int magazinesize; float calibre; };[/code] i found in the site [url]http://www.cs.cf.ac.uk/Dave/C/node9.html#SECTION00900000000000000000[/url] that the tag (i.e gun) of the structure is optional.... in that case wouldn't there be a problem when we declare a variable of type struct or if we have more …

Member Avatar for Narue
0
100
Member Avatar for aasi007onfire

when an array is received as a parameter by a function then whatever the dimensions of the array the first subscript is specified with empty braces i.e[ ] why is it so..... what is the implication of such a declaration [code] int sort(list[][a]) { /*statements*/ }[/code]

Member Avatar for thekashyap
0
96
Member Avatar for nalinibh

Hello Evrybody please can anyone help or explain to me how can i find time taken for a code to execute.I have put clock in main and its working.But now i have to find time outside main.The clock statement is not working i have added clock_t start = clock(); and …

Member Avatar for thekashyap
0
457
Member Avatar for Koteswar

Hi, Could anyone tell me, how to convert scancode to an equivalent ASCII char. in C language. Vijay.

Member Avatar for sj87
0
2K
Member Avatar for tito_mbo

I am not very good at algorithms and i will have a test about backtracking these days ! I don't know where i can find the code of backtracking in C and a good explanation about it. Thanks for attention!

Member Avatar for sj87
0
139
Member Avatar for aasi007onfire

i find this clock() function can be used to find the execution time between two particular statements in the code.... how to find it for the entire program,,, i mean right from the time the program is loaded and other OS and compiler related stuff............

Member Avatar for Aia
0
72
Member Avatar for aasi007onfire

"We can also have null statements by just including a ; or let the switch statement fall through by omitting any statements (see e.g. below). The default case is optional and catches any other cases." i found these lines about the switch case statement in a site.... i couldn't understand …

Member Avatar for Narue
0
114
Member Avatar for nalinibh

Hello, Please do anyone among you know about c software execution optimization.. thanks

Member Avatar for Salem
0
99
Member Avatar for aasi007onfire

i found that the limits of int and short int are the same........ i just want to know then what is the need of 2 with the same limits....

Member Avatar for ~s.o.s~
0
111
Member Avatar for Thinka

Hello again people, I've got some questions about timing that I hope can be answered by someone. I'm trying to use the functions [I]getrusage[/I] or [I]times[/I], or the [I]time[/I] command to time my programs. Now I've got this piece of code that uses getrusage, and my first question is a …

Member Avatar for Narue
0
1K
Member Avatar for shanthu123

i have to find two time stamps one at the begining of main and at the end of main and take the difference to find the time elapsed to execute the code in between.Can anybody suggest the programs or proper API s in Linux.

Member Avatar for thekashyap
0
165
Member Avatar for math_man

[INLINECODE]#include<stdio.h> void print_message(void); void print_message(void) { printf("This is a bug\n"); } int main() { print_message(); }[/INLINECODE] I'm using VS 2005 SP1+SP for Vista on Vista buisness and as I wrote in Title when I have functions in my programs and I start debugging F10..F11, and debugger encounter a function instead …

Member Avatar for thekashyap
0
139
Member Avatar for ss339

Hello... I would like to know if C++ is actually used in games development... I understand it's to create or update the game engine, such as say unreal, though is t used for more? thanks

Member Avatar for Salem
0
105
Member Avatar for laugh

hi.. i need help with this program. this is a program to turn 'ON' and 'OFF' 1 LED using 2 push buttons. the underline statement suppose to wait for button press. but it is alway false even i have press the button. is there any one who can tell me …

Member Avatar for Salem
0
105
Member Avatar for Teresa_Hall

Hi all - First time posting so please bear with me. I'm in the last week of a C++ class and cannot figure out how to do this assignment. I need to evaluate each character of a string and process using a switch statement. The CASE processing I have no …

Member Avatar for Narue
0
238
Member Avatar for phalaris_trip

I basically need to write a program that will display all images in a directory, sequentially, and either create or open an existing corresponding text file, and allow a user to write/dictate into it. (e.g. So working in a directory containing one.tif, two.tif and three.tif, the program will open/create one.txt, …

Member Avatar for phalaris_trip
0
181
Member Avatar for laugh

Hi.. I'm new in programming microcontroller in c. And I was given an assignment to write a simple program to turn 'ON' and "OFF' the LED by pressing push buttons. The microcontroller i'm using is PIC18F4620. And i'll need 1 LED and 2 push buttons to program this. I have …

Member Avatar for Salem
0
123
Member Avatar for harding07

on start of windows xp i get an error message: c:\WINDOWS\system32\kmggucmt.dll - the specific module could not be found, i hijacked this and my log file is: Logfile of HijackThis v1.99.1 Scan saved at 17:01:21, on 12/06/2007 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v7.00 (7.00.6000.16441) Running processes: …

Member Avatar for harding07
0
217
Member Avatar for himanjim

Hi, I've just started data structures....I'm studying Breadth first search and depth first search algo....Though I got some idea about them but after spending hours I can't understand the exact difference between them Which one is better ?? Please help me out

Member Avatar for thekashyap
0
169
Member Avatar for Covinus

ive been trying to connect my c program and a postgre database using VC++. but i cant compile it because it cant find "postgres_fe.h". and also i cant find any tutorials about this one too. When i searched google, most are for linux. if anyone here knows some links to …

Member Avatar for ~s.o.s~
0
144
Member Avatar for bklstheman

I am starting out, trying to learn come C programming over the summer (I've had experience in Java for over a year) and I got a problem when I use my compiler. I am using Dev-C++ and everytime I run my program it quickly closes. Now I know I can …

Member Avatar for iamthwee
0
122
Member Avatar for jlb_2_99

Is there any other code written for a coke machine program. We’ll start by having the user “insert” their money. Since they can’t physically insert the money, we will just ask them how much they wish to insert and we will keep track of how much money they have inserted. …

Member Avatar for Chaster
0
142

The End.