15,539 Topics
| |
Hi, I did the stack implementation using arrays and i would like to do it with function pointers but i have no idea. If anyone could help by illustration that would be great as function pointers is pretty difficult for me! Thanks in advance. coolguy | |
Hello again guys, this is the code: [code] struct nodo { char *nom_usuario; //*user_name struct sockaddr_in IP; struct nodo *siguiente; //*next }; struct lista { //list struct nodo *primero; //*first struct nodo *ultimo; //*last }; ... ... ... void ordenar(struct lista* maestra); void ordenar(struct lista* maestra){ struct nodo* aux; struct … | |
Hey everybody, I currently making a program that needs to activated on startup. So after extensive googling I decided to do it the registry way. However, creating a new value or editing an existing value, is not working. Could you explain how to edit and/or create a value in a … | |
Hello, I am only starting to design a C program that opens a file; [code] #include <stdio.h> #include <string.h> #include <stdlib.h> int main(void) { FILE *fp; fp = fopen ("file.txt", "r"); if (fp == NULL) { perror("Can't open the file"); return EXIT_FAILURE; } printf ("%d\n", fp); system("pause"); return EXIT_SUCCESS; } … | |
Hello, I was wondering if anyone knew anything about programming Microcontrollers with C, and if so what controllers are best/have the most room for the least cost/ easy to get the code on. I know nothing about what's needed to get it up and running, or even what to buy! … | |
hi i need code for brute force Boolean satisfyability program. plz help me i need it asap thank u | |
hi, how the below code is generating out put as " -1 < ( unsigned char ) 1 ". i read in many books saying when we do operation with singed and unsigned value always the resultant will be data type that has more width . i understand that -1 … | |
hi guys can any one work out a program for stack in c..for push and pop asap | |
I am having trouble compiling this program. If somebody could take a look and see if my code is sound or not i would much appreciate it. I am worried that my logic and commands might be flawed, if someone could help me out I would much appreciate it. I … | |
I am writing a program to print filenames in the current directory and print the time stamps next to them. I am loading the names into an array and then passing them to a function to print the stat and filenames. Here is the code. [CODE]#include <stdio.h> /* For printf, … | |
I am trying to get a small piece of a program i am writing to receive a simple math expression, with two int variables and 1 char for the operator, and then i will work it with an if(){}if else statement. I just don't know how to separate the string … | |
[B]Modified mostly from dileepkumar235's [URL="http://www.daniweb.com/code/snippet217246.html"]Login functionality in C-language[/URL] [/B] Inspiration from Narue and my previous post ([URL="http://www.daniweb.com/forums/thread249149.html"]Limit buffer Input[/URL] ) This allows you to prevents the user from entering past the array limit (SizeOfArray) if the user enters more the curser will just automatically backspace by 1 for eg (max … | |
[CODE]for (i = 0;i < e;i++) { // take the excuse scanf(" %[^\n]", excuses[i]); excuse_count[i] = 0; while (sscanf(excuses[i], " %[a-zA-z]", word) != EOF) } [/CODE] The input was My dog ate my homework but at the while loop word is getting the word "My" in each loop. In case … | |
[B]Introduction[/B] Hey! Guyz.. Welcome to my very short tutorial explaining basic uses of "malloc" function in C language. [NOTE : You need simple understanding about pointers to understand this tutorial] Hey guyz see by reading this tutorial you'll not be a malloc expert .. This tutorial is only for the … | |
| |
Alright Guys & Gals I have a stupid question. I've been in IT for 7 or 8 years working up to a network administrator. I'm thinking of making a slight change and moving towards programming. I've had little to no experience in programming so far. Basically I'd like to get … | |
How can insert and delete single linked lists to and/or from middle (any where except at the first and at the last? | |
Ok, Let me start off and say Im new to C. Im writting a subnet calculator, in my main function I am asking the user for a subnet mask and storing it in a char variable. Im then passing the variable to another function called "truncat", where I strip the … | |
Hi everyone ! I am completely new here , so here is a link to C language tutorial I think that'll be usefull for beginners ... [url]http://www.phim.unibe.ch/comp_doc/c_manual/C/master_index.html[/url] ^_^ | |
Joined: 14 Mar 2010 11:05 Posts: 2 Hi.Still I have problem in my program codes.I write a program in mikroC PROV2.50 for my microcontroller(PIC 18F452) but I faced to a problem that related only to C language and compiler give me the following error messages; extern int adcvalmax[8]= {0,0,0,0,0,0,0,0};// 16 … | |
How can we [B]shift the Origin [/B]from the Top-Left corner to the Center of screen in [TEX]Turbo C Graphics Programming[/TEX]? | |
Hi... i have a little problem on my code... HI open a txt that have this: LEI;7671;Maria Albertina da silva;xxxx@gmail.com; 9;8;12;9;12;11;6;15;7;11; LTCGM;6567;Artur Pereira Ribeiro;fdsdfsd@gmail.com; 6;13;14;12;11;16;14; LEI;7701;Ana Maria Carvalho;asasssas@gmail.com; 8;13;11;7;14;12;11;16;14; -------------------------------------------------------------------------------- LEI, LTCGM are the college; 7671, 6567, 7701 is student number; Maria, Artur e Ana are the students name; [email]xxxx@gmail.com[/email], … | |
Hey all, I'm as new as it gets. My goal is to extract and store NTFS permissions (files/directories), for the purpose of restoring them on-demand (using Windows XP SP3). I read all around the subject, (specially over MSDN), and I managed to make a working code via the SDDL format. … | |
--Homework-- Write a C program that codes a string which is given by keyboard so that the coded string includes characters with their number of sequential occurrences. For example, if the string to be coded is AAABBFFFRRRRZTT then the coded string must be A3B2F3R4Z1T2. You can assume that there is … | |
I am trying to read a csv file and store it into a 2D array, However it give me "segmentation fault" each time I run it. Here is my code [CODE] #include <stdlib.h> int main(void) { const char filename[] = "a.txt"; FILE *file = fopen(filename, "r"); if ( file != … | |
int a; is Definition and Declaration both ? or declaration only ? | |
Write a C program to enter the elements of three one dimensional array A (size 5), B (size 10) and C (size 5) as an input from the keyboard. The program will find and print: • The maximum element of array A entered as an input. • The minimum element … | |
I'm still trying to learn my way through send and recv with sockets in C. Now, I have a struct that I want to send over the socket. [CODE=c] struct myPacket { int a; double b; double c; int d; char e[80]; }; [/CODE] I have a client on a … | |
Hello all, I am in need of a dll that, if passed the shortcut/.lnk name and the Start Menu -> Programs path if needed, will return the target attribute of that shortcut. I am going to be calling this from a Lua script based application from Indigo Rose called AutoPlay … | |
I'm trying to find the product of two numbers using a function which receives the values of two variables from main() and the address of the variable prd where the product will be stored. I can't get this compiling because i get the following errors from Visual Studio C++ 2010 … |
The End.