- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 14
- Posts with Upvotes
- 13
- Upvoting Members
- 9
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Re:
// 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> … |
|
Re:
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 … |
|
Re:
Hi guys! I just wanna ask on how to access the first character in a string? |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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.... |
|
Re:
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; … |
|
Re:
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... |
|
Re:
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. |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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> … |
|
Re:
Helo, I need calculete Spaces in file. Maybe can write this function. Thank you P.S Sory for may english |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
i'm having trouble creating a craps game for school, i'm a light weight c user and any help would be amazing!!! |
|
Re:
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] |
|
Re:
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]; … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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; … |
|
Re:
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 … |
|
Re:
Hi All, How to copy one 2D-array to another without using loops and library function of C. Not pointers. Regards, Pramod |