19,876 Topics

Member Avatar for
Member Avatar for vicky_rawat

Hi All, I have implemented general LZW algorithm, if anyone can help me with motif base lzw algorithm. I will highly appriciate this.

Member Avatar for Adak
0
101
Member Avatar for maxzoran

Good morning, thanks in advance for the help. I am creating a pig latin translator for a class (with that in mind, sorry for bad coding form) and I am having trouble. I have my function working, but it seems like I am stuck in a loop. I'm having trouble …

Member Avatar for Adak
0
209
Member Avatar for skiabox

How can I declare on top of my code a function that takes an array of ints as argument? Thank you.

Member Avatar for skiabox
0
102
Member Avatar for sana_moi

hi pleas i need help if it's possible ; i have a c++ code which can select from a DB but i can't do the code for insert a new data in my data base .

Member Avatar for sana_moi
0
140
Member Avatar for Saranya Ravi
Member Avatar for mike_2000_17
0
129
Member Avatar for ronnyrhymes

Hello folks, I tried writing my own function on string copy and this is what i managed to do.Though it somehow works, I have got a great problem with the manipulation of pointers. Please explain or modify it for me. Thank You. #include <stdio.h> #include <stdlib.h> int main() { char …

Member Avatar for ronnyrhymes
0
122
Member Avatar for pav6kor
Member Avatar for ronnyrhymes
0
97
Member Avatar for autodale

I am wondering what the capabilities of C++ are for launching executables. I would like to create a simple launcher for one of my projects. It would need to launch a program in the same folder. The launched program needs to be run maximized and in Windows 98 compatibility mode. …

Member Avatar for Ketsuekiame
0
102
Member Avatar for omGac0W

Whenever I try and run this my compiler shows a random error and a bunch of binary numbers. I have no idea what is wrong. Am I missing something? Its a program to check if a number is a palindrome. [CODE]#include <stdio.h> #include <math.h> int palindromecheck (int number) { int …

Member Avatar for Ancient Dragon
0
100
Member Avatar for apolochaves

i wrote this code for a simple life game loosely based on Conway's. I wrote an 40x40 integer matrix with random numbers and a 40x40 char matrix based on the previous one, where the numbers 0 to 3 generate an X (alive cell) and the numbers upper 4 generate an …

Member Avatar for Adak
0
124
Member Avatar for figuer25

Hi so I am just trying to figure out what is wrong with my program. I am trying to implement the node class in C++. All I want to do is learn how to implement it and get it working. I am not trying to use it to create a …

Member Avatar for figuer25
0
1K
Member Avatar for dragontruong

I have an assignment that requires me to not use an array with [] at all throughout my code, read a file in a certain way, and I need a better understanding with malloc as well with pointers. The code with the [] is pretty easy for me, but pointers …

Member Avatar for jihan sultana
0
165
Member Avatar for chade25

Hey, I am trying to find a good C book that is dedicated to low level programming. Any suggestions? If it could skip all the beginner stuff, that would be great. Also, a side note, I am interested in making my own compiler. Are there any books that study this …

Member Avatar for gerard4143
0
130
Member Avatar for ganesh_IT

Hi guys is this possible to write a biggest number program( biggest among 3) in a single line

Member Avatar for 0x69
0
90
Member Avatar for anu john

Hi. plz tell me how I can connect to an SQL server to an microcontroller or a PC using C language.... Plz reply soon....

Member Avatar for 0x69
0
1K
Member Avatar for phillstarr

hey, i have this program that when a user types in a date (day/month/year)and it works out the next date. It's meant to find out whether its a leapyear and therefore on the 28/2/2012 it should print out the 29/2/2012. At the end of the year 31/12/year it is meant …

Member Avatar for Adak
0
85
Member Avatar for cj232

how can i get the total of x value, x2 value, x3 value...??? i cant finish this home work for now thi is all i have... realy need help... #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { cout<<"x value x2 value x3value\n\n"; int x=0, y, …

Member Avatar for newbie_learner
0
178
Member Avatar for weird86

hi there i am new to this forum and very new to c programming i do need any of u guyzz there to help me with my assignment i need to do a simple bank program asking the user password at first with the menu: 1. withdraw 2. balance enquiry …

Member Avatar for newbie_learner
0
145
Member Avatar for skiabox

If I leave some integer array items uninitialized I get sometime some strange numbers instead of zeros when I display the list of the array items. Why is it happening? Thank you.

Member Avatar for newbie_learner
0
95
Member Avatar for Dave Sinkula

This code uses a structure to map a letter to an equivalent representation of Morse code. It simply loops through either a string to encode or decode looking for text to substitute with a replacement string or character. Output is presented to the stdout.

Member Avatar for Quagmire232
0
377
Member Avatar for fizzle

As I posted before I'm totally new to C. In bash i can use [CODE]IP = "`wget -O - -q icanhazip.com`" echo $IP[/CODE]= and it returns my ip. However I'm trying hard to get this via curl although I don't quite understand how it works yet. I determined it is …

Member Avatar for mitrmkar
0
184
Member Avatar for afaquaholic

I am running a service that queries on regular intervals. I initially set it up so that the connection formed onStart, and closed onStop. This of course leaves a connection open all the time, which isn't what I want. So I moved the open and closed to inside my timer …

Member Avatar for seahmadmom
0
301
Member Avatar for madhusingh123
Member Avatar for vijeta sharma
0
91
Member Avatar for s2n

I have started Computer Graphics using C recently. below is the code for drawing a line using the 'line' function. I am using Code::Blocks 10.05. I need help with some kind of linker error. this is what i have done till now. [LIST] [*]installed C::B with all default setting. Then …

0
96
Member Avatar for herrel17

Our teacher have asked us to make a program in C language to read the difference between two cities in km, m, cm, inches and feets... I have tried every hell to make this work... I am not able to combine it all together... please help!!! I am so confused. …

Member Avatar for vijay143
0
218
Member Avatar for GMSI

With windows XP, normal inport, outport functions do not seem to work. I downloaded a utility to open ports and then use these funtions, but it didnt help. Anyone can give details how to do parallel port programming in XP using C?

Member Avatar for kings_mitra
-1
555
Member Avatar for skiabox

I want to get the digits of a number the user entered without using arrays. Is it possible? Thank you very much.

Member Avatar for kings_mitra
0
103
Member Avatar for potato4610

C Program - Write main and two other functions named ComputeMaximum and ComputeMinimum that return the larger and smaller, respectively, of two type double arguments: 1. Each function must be in a separate file. 2. The files containing ComputeMaximum and ComputeMinimum may not contain #defines, #includes, if statements, switch statements, …

Member Avatar for kings_mitra
0
191
Member Avatar for sree_ec

Hi, How to find the stack size available for main thread in a program(which contains the main() function) In the case of linux, we can specify the stack size available for the whole program in linker script during linking. For all other threads, we can specify the stack size when …

Member Avatar for Ancient Dragon
0
575
Member Avatar for garyengle

I can't seem to pass a struct address to a function. My program "stops working" when it gets to the scanf statement of the getReady function. [CODE]/**************************************************** Author: ---------------------------------------------------------------------- Purpose: This code will explore passing a data structure address to a function. ****************************************************/ #include <stdio> #include <stdlib> //prototypes: struct things{ …

Member Avatar for garyengle
0
144
Member Avatar for rje7

I want to arrange the number 1 - 12 like shown below. like the numbers on the clock. [code] 12 11 1 10 2 9 3 8 4 7 5 6 [/code] arrived with the following code: [code=c] #include<stdio.h> int main(){ int e = 11; int count = 10; int …

Member Avatar for Adak
0
104
Member Avatar for rajwant51

:confused: friends can you give any idea about making screensaver in c language:

Member Avatar for karthik_udt
0
259
Member Avatar for lionaneesh

[CODE]/* A simple server in the internet domain using TCP The port number is passed as an argument */ #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include<arpa/inet.h> #include<netdb.h> #include<string.h> int main(int argc, char *argv[]) { struct addrinfo hints,*serv,*p; int sockfd,newfd,status; struct sockaddr_storage their_addr; socklen_t addr_size; char *msg; int len; …

Member Avatar for malathi renin
-1
140
Member Avatar for vu student

As-salaam-o-alaikum i hope all fine. a) What is Static Polymorphism? Write its alternative name with a simple example with code. b) What is Dynamic Polymorphism? Write its alternative name with a simple example with code. c) What is the main difference between Data Hiding and Data Abstraction? How we achieve …

Member Avatar for UsmanKashif
0
78
Member Avatar for atechnikality

I'm a student and taking an intro to C class and would appreciate some help! I've got a file with 10 words that I've loaded into a 2D array. I've written code that will generate a random number between 0 and 9 to select a string from the array. I'm …

Member Avatar for atechnikality
0
1K
Member Avatar for ganav

Hello! I want to make a simple game like this: [IMG]http://img340.imageshack.us/img340/6393/gamea.jpg[/IMG] So I need to start by moving the rectangles. Now I want to make an option for player VS player. I need to somehow check what keys are in "key down" state. How can I do that? (I'm using …

Member Avatar for Adak
0
105
Member Avatar for libathos

hi guys, so iam writing a program which creates a .bat file in a directory and copies it to another directory through copyfile...the problem is that while the .bat file is created properly but when it's copied to the other directory an error occurs saying its not a win32 appropriate …

Member Avatar for libathos
0
145
Member Avatar for pavani2006

i want to print words in reverse. i could print characters in reverse but not words for(int i=arr.length;i>0;i--) printf(arr[i]);

Member Avatar for devaru2003
0
223
Member Avatar for fsl4faisal

[CODE] #include<stdio.h> #include<conio.h> #include<stdio.h> void maketree(struct node**); void inorder(struct node**); struct node{ struct node *left; struct node *right; int data; } void main() { struct node *root; root=NULL; printf("Enter root"); maketree(&root); preorder(&root); getch(); } void maketree(struct node **root) { int num; struct node *temp; if(*root==NULL){ //printf("Enter number"); scanf("%d",&num); temp=(struct node*)malloc(sizeof(struct …

Member Avatar for gusano79
0
166
Member Avatar for sabareesh

I created a dyanamic array through malloc() function. (size is 1024) next time i want to change buffersize as 500 . how can do this?

Member Avatar for sabareesh
0
92
Member Avatar for gahhon

brothers, please teach me how to show error message when a user input non-character type value? i try myself while i use if statement, but it will show me the error message too when type character type or string type. [CODE] if(name > 0) { system("cls"); printf("\t\t============\n"); printf("\t\t ALERT! \n"); …

Member Avatar for gahhon
0
152
Member Avatar for katokato

im trying to learn c++, so i stumble upon this programming exercise that asks the user to make a program that asks for 2 numbers, assuming that the second number is always the biggest in value, and adds all of the numbers in between the numbers entered including the entered …

Member Avatar for katokato
0
97
Member Avatar for Andreas5

Hey, i have read "Accelerated C++" and i am "soon" done with "The C++ Standard Library". I would like to learn about Windows Forms Applications or something similiar where i can start creating more useful programs. Can anyone recommend anything? Is it too early for me to jump to this?

Member Avatar for Andreas5
0
124
Member Avatar for gmunk

Hi all, lets say for example I have the following code [CODE]char *fname = "John"; char *lname = "Doe"; char *query = "SELECT fname, lname FROM table_name;"[/CODE] The last statement won't work, so my question is how to pass the fname and lname variables to the query?

Member Avatar for aryan79
0
1K
Member Avatar for ellenski

Hi, We were asked to make a Binary Search Tree program in C. It should be able to traverse the numbers (preorder, inorder, postorder) then display it. And locate the number and display it. I have no probleming traversing and locating it. My problem is if the number isn't there …

Member Avatar for ellenski
0
111
Member Avatar for ellenski

Hi, We were asked to make a Binary Search Tree program in C. It should be able to traverse the numbers (preorder, inorder, postorder) then display it. And locate the number and display it. I have no probleming traversing and locating it. My problem is if the number isn't there …

Member Avatar for ellenski
0
124
Member Avatar for jbronen

Hey, I'm writing a program that takes files and renames them to include a timestamp of the current time on them in c++. I'm pretty new to c++ (and programming in general) and any help or advice would be greatly appreciated. So far I have this: When I compile it …

Member Avatar for jbronen
0
856
Member Avatar for okwy

Good day all, I have this problem and have have spent quite a huge amount of time on it without any considerable progress. My problem is stated thus: I have a series of files with the extension (.msr), they contain measured numerical values of more that ten parameters which ranges …

Member Avatar for kings_mitra
0
122
Member Avatar for bunty_kkp

1. Define a structure called cricket that will describe the following information Player name Team name Batting average Using cricket, declare an array player with 10 elements and write a program to read the information about all the 10 players and print a team wise list containing names of players …

Member Avatar for Nick Evan
0
243
Member Avatar for daudiam

b=c/d++; In this, first d is incremented (because ++ has a higher priority than / or =), but c is divided by the unincremented value of d. Thus, the order of evaluation in this case is well-defined. But if we had written the above as: b=(c)/(d++) then which operand ( …

Member Avatar for daudiam
0
242

The End.