15,552 Topics

Member Avatar for
Member Avatar for Hannahlv

Hi, everyone! I want to make the user authentication for mysql database. I write the code and test it, but can't run. Let's I talk about my project idea first. I have a server, a client and a mysql database. Before entering the server, the user must login first, After …

Member Avatar for Salem
0
189
Member Avatar for dv1r

hello i want to write a programme that creates (lets say) 700 folders and numbers the from 1 to 700 and if its possible to take contents from a txt file to put after the number... if anyone can help me get started it would be gr8 i just never …

Member Avatar for Salem
0
105
Member Avatar for zabr

hi.. :) i'm a first year college student and just starting with turbo c. We have a project that is to be pass on August 29. I hope someone can help me cause i'm really having a hard time with this. I have to make an exe. of the program …

Member Avatar for Aia
0
124
Member Avatar for fromthatside

hello, I used to type my programs on console application.by C language and use these libraries , <stdio.h>,<conio.h>,<stdlib.h> .etc and used these function (printf),(scanf) under <stdio.h> library.. but then I wanted to know how they make programs on windows application by C language . I figure out they used another …

Member Avatar for ArkM
0
168
Member Avatar for fromthatside

hello , before 5 months I made a program by c language by borland c++ compiler v 3.1 . and it was run on console application.(dos). so. now i would like to make GUI program by vc++ 6 and this GUI program have a botton and when i will press …

Member Avatar for fromthatside
0
134
Member Avatar for Dawee1

Hello, I have problem to understand the code below: [code] #define LCD_DATA_REG (*(unsigned char*)( 0xC000 )) // Data Register #define LCD_CTRL_REG (*(unsigned char*)( 0x8000 )) // CTRL Register [/code] I know basics about pointers and I know how to understand pointers to functions, arrays, structures, int, ... However I don't …

Member Avatar for Dawee1
0
100
Member Avatar for james blake

Only C is the programming language that enables us with a high execution speed of programs among all other languages

Member Avatar for Salem
-3
58
Member Avatar for plike922

I cant find whats wrong to this program... im new to C... Please help. [CODE]#include <stdio.h> #include "genlib.h" #include "simpio.h" #define size 5 #define size2 3 void getArray (int numbers[][]); void checkArray (int numbers[][],int space[][]); int main() { int numbers[size][size], i, c, x, y; bool space[size][size]; for (i=1; i<size; i++) …

Member Avatar for Salem
0
336
Member Avatar for marcosjp

Hello there! I've built a simple server and a simple client in C (Linux). Among other tasks, I need the server to send the timestamp (using time.h) to the client. Then I need the client to change the system time based on the timestamp received from the server. What would …

Member Avatar for ArkM
0
239
Member Avatar for campuzcrazyness

hey guys, I would like to make a menu like this: MENU [A] - Addition of binary digits [B] - Subtraction of binary digits my option: [U]A[/U] [CODE]printf("Input upper addend: 1110"); printf("Input lower addend: 111"); [/CODE] sample output: sum is: 11111 ...how can I make it like that?

Member Avatar for iamthwee
0
103
Member Avatar for vijaysoft1

i am trying to take a input from user , suppose if user types "a bat and a ball and stick" if my array is [ICODE]data[10][20][30] = { {"a","and","apple"}, {"bat","ball"} };[/ICODE] from the sentence how i can count occurrence of "a" in the sentence ( ie , from users input) …

Member Avatar for Narue
0
120
Member Avatar for angelicxtc

Hi. I am taking my first C class and I seem to be having trouble with this program. The problem is: Write a function that adds two polynomials of at most degree n. /* f = g + h; n is the max degree of f, g, and h */ …

Member Avatar for iamthwee
0
784
Member Avatar for c_ytsui

Hi all, I am new to C programming and need some of your help. I am trying to convert a string(ex. 25,000) to an integer. I use the atoi function to do the conversion, however, it only reads the initial portion of the string by stopping at the first non-numerical …

Member Avatar for jephthah
0
170
Member Avatar for riahc3

Hey I have to make the game War (card game: [url]http://en.wikipedia.org/wiki/War_(card_game)[/url] ) in C. Im not sure where (how...) to start. My basic thoughts/ideas/etc: Its a 40 (4 times 10) card version with 2 players. A way to do it would be set up a structure with 4 faces values: …

Member Avatar for jephthah
0
135
Member Avatar for abhigame

can any one tell me what are compiling errors and what are linking errors

Member Avatar for jephthah
0
91
Member Avatar for Isha20

I have to design a parser to convert Binary(HEX) File into number. I have to refer a format file for the same which is as follows: (Sr No;field_name;position;length;datatype;flag;) 1;TimeStamp;0;4;HEXA;0; 2;TimeOffset;4;4;HEXA;1; 3;Data_Vol;8;4;HEXA;1; ................so on.........it has 60 fields, which represent 1 record. Binary file: 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Can you please help me coding this …

Member Avatar for jephthah
0
136
Member Avatar for SiRuS

Hello guys this is my code. [CODE] #include <stdlib.h> #include <stdio.h> #include <string> using namespace std; void charToBinary( char *value ) { unsigned int i; unsigned int alloc = (strlen(value)+1); int* cVec = (int*)malloc(alloc); for( i = 0; i < strlen(value); i++ ) { //works in windows but not on …

Member Avatar for Ancient Dragon
0
161
Member Avatar for the reaper

i know this sounds a bit n00b but can anyone tell me how to open a web browser in "c" because i am doing this project and i have to make a program that opens a web browser.. i need it to open the default internet explorer web browser and …

Member Avatar for the reaper
0
275
Member Avatar for vijaysoft1

Hi i am in a trouble please help me. in my program i had an array [CODE] int Maxwordcount[127]; int index=0; char ltr; char *typedword; char word[127][300][30] = { {............................................................}, // index = 0 {........................................................} // index = 1 ............ ................... ............................ {"a", "and", "apple","adobe","anvira","avast"}, // index = 65 {"boat", …

Member Avatar for vijaysoft1
0
353
Member Avatar for J-son

In this program, I cannot in put - integer. It outputs wrong result. What should I do to make it possible? Thanks heaps !!! [CODE=c] #include<stdio.h> int main(){ int num; int max=0; printf("Enter +/- integers or enter 0 to Exit \n"); while(1){ scanf("%d",&num); if(num==0) break; if(num>max) max=num; } printf("Max is …

Member Avatar for ArkM
0
86
Member Avatar for plike922

i need help with this program im getting this 1>selections.obj : error LNK2019: unresolved external symbol "void __cdecl displayArray(int * const)" (?displayArray@@YAXQAH@Z) referenced in function _main 1>D:\Documents and Settings\ERIC\Desktop\Projects\selections\Debug\selections.exe : fatal error LNK1120: 1 unresolved externals please help [CODE]#include <stdio.h> #include "genlib.h" #include "simpio.h" #define size 4 void sortArray (int …

Member Avatar for Aia
0
82
Member Avatar for ambarisha.kn

hi, i have some data in variables of different types.(short, int, long, float, char, double). now i have to create one pointer, have to allocate 1mb memory and have to store one by one in that pointer. How to do this.. plz give some clues to start.. which type i …

Member Avatar for ArkM
0
850
Member Avatar for T&T

Hello, I need your help in updating the loop in this code. the purpose of this loop is to open and read all data file in the programme area that has a name (passenger xxxx) where x is any number from 0 to 9 . please help me, [code]void Print_allPass() …

Member Avatar for T&T
0
329
Member Avatar for harshchandra

is there anyway to print out any string on stdout without using semicolon at the end... ?? plzz reply

Member Avatar for Nick Evan
0
413
Member Avatar for francisprite

Hello there.. Can anyone give me an idea for a fun project in C? I just need something that will keep me busy and pretty much entertained. It's also for practice. What I mean when I say a fun project is something like the last Machine Problem I made. It …

Member Avatar for onkar81
0
254
Member Avatar for jobs

Line by line I need to get the whole content in a line from a file. I have looked at fgetc, fgets. According to fgets, I need to specify max number of characters to read. If I have file content like this: 1235690,9087657788888770000,89977553223456789\n I wouldn't know how max characters in …

Member Avatar for Narue
0
263
Member Avatar for ml2662

I am having trouble with the following program. I am trying to create a linked list that behaves like a FIFO queue. I need to be able to add new items to the end of the queue and remove them from the front. My confusion is with trying to use …

Member Avatar for findsyntax
0
171
Member Avatar for kneiel

how many processes will be created when i fork() twice . Is this logic correct ? the 1st fork will spawn child C1 which is a child of the parent process P. the code segment of the parent P is inherited by C1. the 2nd fork is called by both …

Member Avatar for Salem
0
87
Member Avatar for cusa

Hi, I have a problem with strtok(). I have string in this form 2000;ON_0;1000;ON_2; and when I execute this code: [code=c] for ((p=strtok(Seq_String,";"));p;(p= strtok(NULL, ";" ),n++)){ foundThings[n] = p; Send_String_pc("\xd\xa\xd\xa"); Send_String_pc(foundThings[n]); } foundThings[n]='\0'; [/code] I get : 2000 ON_0 10 It is C code for microcontroller and this is not …

Member Avatar for cusa
0
135
Member Avatar for basukinjal

Suppose i have a random permutation of 0,1,...., N-1. Now if i want to get the identity mapping from this can i do anything better than sorting?? I mean, sorting does not take into fact that all nos from 0 to N-1 are in the array or not. But in …

Member Avatar for ArkM
0
119

The End.