Posts
 
Reputation
Joined
Last Seen
Ranked #489
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
92% Quality Score
Upvotes Received
14
Posts with Upvotes
13
Upvoting Members
9
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
4 Commented Posts
0 Endorsements
Ranked #2K
~15.6K People Reached
Favorite Forums
Favorite Tags
Member Avatar for walas

// i want create doubly linked list in c with following choices: 1- add to head 2-add to mid 3-add to tail 4- delete from head 5-delete from middle 6-delete from tail 7- search 8- print 9- exit i write my program but founded some errors what is it? [CODE]#include<stdio.h> …

Member Avatar for syker111
0
617
Member Avatar for NH1

I have an issue i need to get resolved fast. I cant seem to get my Dialog box to run properly. This is the code i have for it. The Problems i have are where the black arrows are. First arrow: "No matching prototype available Second and third arrow: "Invalid …

Member Avatar for Riebens
0
179
Member Avatar for danswater

Hi guys! I just wanna ask on how to access the first character in a string?

Member Avatar for danswater
0
95
Member Avatar for akvilio

Hi, I have a little problem. I need to write a function that will be given a number (with unknown number of digits) and it will search the number for similar neighboring digits. I must say that I'm not allowed to use arrays (unfortunately). I thought of disassembling the number …

Member Avatar for akvilio
0
118
Member Avatar for johndoe444

Hi, I thought I have mastered fighting segmentation fault thanks to the assistance of you guys. But still in this days I am getting seg fault. And there is no clue at all. I am writing a suffix tree using a trie. Here is the trace of segmentation fault: [CODE]aba …

Member Avatar for UncleLeroy
0
138
Member Avatar for Akash Mujumdar

I have just started with MinGW. I tried to compile a simple C program ie., Hello World but came up with the following error error:no include path in which to search for stdio.h can anyone help me out with this problem....

Member Avatar for UncleLeroy
0
162
Member Avatar for viwenka

Can anyone help me with my code?! I need to do a programm binary to decimal converter without using library, just stdio.h my code works wrong [CODE] void bin2dec(){ long int n; int s=1,j,p=1,i=0,x; int digit=1; printf("Input a binary number: "); scanf("%ld",&n); while(digit==1) { x=n%10; s=s+pow(2,i); i=i+1; n=n/10; if(n==0) digit=0; …

Member Avatar for UncleLeroy
0
192
Member Avatar for newbiecoder

Hello I'm trying to get a random float number between two float numbers using rand() function but I couldn't write it by myself, can you show me how to do it? Thanks...

Member Avatar for arkoenig
0
421
Member Avatar for arsenal_fan

Hi, this is not a homework or assignment. I am preparing for interviews. I just wanted to know how do I find out say the next 6 byte aligned address given any random address? Hope I am clear. Any code or explanation will be appreciated. Thanks.

Member Avatar for arsenal_fan
0
221
Member Avatar for Grusky

Ok, I am about 20+ hours into this utterly confusing idea of link lists. The classes I have are listed below. I cannot for the life of me understand how I would write a reverse function. My office floor is cluttered with printouts and scribbles from trying to make this …

Member Avatar for daviddoria
0
132
Member Avatar for kevinyu

hello guys, i need help, on how to output odd and even numbers at the end of the loop... not the way my program does, which prints the number every time i input numbers, and it needs indicated whether it's an odd or an even number. guys give me an …

Member Avatar for kevinyu
0
102
Member Avatar for eslmz

I want to reach linked list like an array. I write a code like that but i get unexpected result. Main problem is, when i check sizeof(myrecord) value, i get 27 bytes, but actually difference between the records is 32 bytes. Do you know where is the error? [CODE]#include <stdio.h> …

Member Avatar for UncleLeroy
0
124
Member Avatar for Xpress2010

Helo, I need calculete Spaces in file. Maybe can write this function. Thank you P.S Sory for may english

Member Avatar for UncleLeroy
0
94
Member Avatar for MrNoob

hi, I have some problems with winsock library so I am calling loading it dynmically then calling the functions so far so good,but the problem is for example I see in the winsock2 header files that - GetHostByName and some other functions are which I use there prototypes is kinda …

Member Avatar for UncleLeroy
0
95
Member Avatar for johndoe444

I was debugging a program and following is the snapshot: [CODE]81 while (j < len_y && suf_arr[j].word[0] == c) (gdb) 184 if (suf_arr[j].len > 1) (gdb) n 186 memcpy(temp_str, suf_arr[j].word+1, suf_arr[j].len-1); (gdb) n 187 ind = search(suf_arr, temp_str, len_y); (gdb) print suf_arr[j].word $13 = 0x7fffffff96d2 "bbit" (gdb) print suf_arr[j].word+1 $14 …

Member Avatar for UncleLeroy
0
2K
Member Avatar for jskelly

I need to take 2 char strings (6 character date) (and (8 charachter operatror id) convert to uin32 to send over a bus to store by another processor. That processor later sends them back as uint32 and I need to conver back to char strings. Two files need access to …

Member Avatar for UncleLeroy
0
164
Member Avatar for theABCasian

trying to figure out the reason for memory loss any ideas would be helpful requirements should be done however i need a working file for turn in thanks for help. leak seems to be around line 59-61 i think in demo.cpp Demo.cpp [CODE] /* File Name: Demo.cpp Chapter No. 15 …

Member Avatar for Ketsuekiame
0
260
Member Avatar for hetalraithatha

Hi Everyone, I would like to get some help in a way to convert C code to DLX assembly code.I have tried to search if there are tools available which would perform this, but whatever I find is to convert to MIPS assembly code. Guidance to move further in this …

Member Avatar for UncleLeroy
-1
558
Member Avatar for notuserfriendly

I am coding 2 dynamic arrays. basically ive done the first part which requires the user to enter rows and columns, i also implemented the functions to print and fill the created arrays. now the next task is to create a SINGLE dimensional array with enough size to fit the …

Member Avatar for notuserfriendly
0
374
Member Avatar for mr.confused!

i'm having trouble creating a craps game for school, i'm a light weight c user and any help would be amazing!!!

Member Avatar for UncleLeroy
0
112
Member Avatar for ajithasati

Hi there, On executing the above code I'm getting the error "segmentation fault". Is it possible to manipulate a string variable which already contains a data?[code]#include<stdio.h> int main() { char *str="Hello"; char * str1 ="World"; strcpy(str,str1); printf("%s",str); }[/code]

Member Avatar for abhimanipal
0
66
Member Avatar for leway

I can't seem to figure out the code you are missing. Any help getting the below code working would be great. [code]#include <stdio.h> #include <stdlib.h> #define SIZE 2 // initially to test kept it to SIZE 2 typedef struct { char firstName[30]; char lastName[30]; char street[35]; char city[20]; char state[3]; …

Member Avatar for abhimanipal
-1
130
Member Avatar for krap_nek

hi guys, I'm trying to implement a basic program which deals with structures and pointers. I have to insert data for various citizens, which is structure that have other structures as fields. in this case my main objective is to create 2 general functions that will get the information for …

Member Avatar for UncleLeroy
0
165
Member Avatar for nshh

Hi, please answer me the following questions. It will be very useful for me...Thanks in advance. c questions: 1. storage classes (auto, register, extern, static) in c with these informations (scope, lifetime, default value and memory location(where it stored in memory)). 2. why should we use static in function prototype …

Member Avatar for UncleLeroy
0
130
Member Avatar for lionaneesh

Sir/Maam, please suggest me some very simple tutorials explaning right from the basics of such functions . I am doing C since 6 months and was looking at a tutorial of BEEJ's guide to network programming.. there at looking at a source code i found these functions and am really …

Member Avatar for UncleLeroy
0
108
Member Avatar for colmcy1

Hey all, i would really appreciate some help with abit of code i'm stuck on. I am trying to read data from text files in this way: 1. Open text file 2. Read in the first line from the text file that doesnt start with "/" 3. change this char …

Member Avatar for UncleLeroy
0
102
Member Avatar for rickymak

I have this error, " lvalue required as left operand of assignment," for line 10 where scanf command appears. I can't figure out a solution to it. [CODE]#include <stdio.h> int main() { int start; char delay; printf("We're close to blast off.\n"); printf("countdown initiated"); scanf=("%d", &start); do { printf("T minus %d …

Member Avatar for UncleLeroy
0
124
Member Avatar for Ammar1990

Hi All, I am new to C language and am suppose to write a program that gives me an even integer with cube greater than 40000 and also is divisible by 7. This is what i have... [CODE]#include <stdio.h> #include <stdlib.h> #include <math.h> int main(){ float a,b,c,d,e; a=pow(40000,1/3); while(pow(40000,1/3)<=a){ a=b; …

Member Avatar for Adak
0
113
Member Avatar for DCvonB

Hello, I am trying to get the following code to print out the number of days in each month using pointers. This what the program currently prints: Enter a year (ex. 1997): 2001 Year entered: 2001 --Not a Leap Year!-- Number of days in each month: January: 0 February: 0 …

Member Avatar for Aia
0
144
Member Avatar for pramoda.ma

Hi All, How to copy one 2D-array to another without using loops and library function of C. Not pointers. Regards, Pramod

Member Avatar for Ancient Dragon
0
5K