- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 11
- Posts with Upvotes
- 10
- Upvoting Members
- 10
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
- Interests
- ProgrammingTVDay Dreaming
- PC Specs
- Fedora Core, OpenSuse 11.3, RHELIntel i5,4GB RAM, 360GB HDD, 1GB Graphics
Hello guys this is an amazing programming that converts entered digit into word.nut i need your help i am only able to do it upto 99. #include<stdio.h> #include<conio.h> void main() { int n,m,j; clrscr(); printf("Enter any number between 1 to 99 : "); scanf("%d",&n); printf("You entered "); if(n>0&&n<=10) goto one; … |
|
Hi Guys, I have a USB disk with ext3 file system created in linux. I want to re format it to FAT16 somehow. I dont have a linux system but have only a windows xp machine. Please help me to do it. Thanks. |
|
Where is the location for temporary files of Firefox in Windows xp. I am asking for latest versions of firefox( 5.0 or higher) |
|
Hi My network has a proxy server installed. I need to go through that server for internet connection. In my windows xp machine,I get internet connection through IE. But firefox and chrome doesnt work. The IE setting for proxy says, automatically detect the settings. But with the same option for … |
|
I have a doubt regarding [B]stack[/B] in c functions... Here is a program which shows an example... [CODE] #include<stdio.h> int display(); main() { int m=display(); printf("m is : %d\n",m); } int display() { printf("1234\n"); return; } [/CODE] outputs: 1234 m is : 5 [CODE] #include<stdio.h> int display(); main() { int … |
|
Has the following code any practical utility apart from showing the working of pointers? I got it while learning c in which the tutorial showings the features of pointer. Does a C programmer use this kind of code where a int pointer has been declared first and assigned a value … |
|
My source code is being altered by itself after executing once or when a copy of the source code file is made. If i try to execute the source code the 2nd time it wont work. There will be some error as there are some unwanted ASCII characters like rectangle,smiley...etc … |
|
hey all, first post of a beginner coder ;), I keep geting the following error : conflicting types of 'graphic_choice'.. its not a warning so it wont compile. I haven't finished case 7 so that may have some syntax issues. hope this isn't to big of a code block? i … |
|
Hi there, I was wandering if anyone can give me a brief explanation on how to connect my C application to the Internet. What i would like to do in the end is to access a web page trough the application and have means to read the html code behind … |
|
Can anyone help me improve my source code below? I tried fixing it but apparently, there's not much success. [CODE] #define NUM_THREADS1 1 void *go_to_website2(void *program); void *go_to_website1(void *program) { char* str[3]; str[0] = (char *)program; str[1] = "http://www.google.com"; //supposedly 2nd website to go to str[2] = '\0'; char* new_prog … |
|
I am trying to understand usage of keyword __attribute in C I have checked following two pages [url]http://unixwiz.net/techtips/gnu-c-attributes.html[/url] and this page also [url]http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Function-Attributes.html[/url] but still I could not understand where do I declare them and how I can use __attribute in my program. To test this I wrote a C … |
|
[CODE]#include <stdio.h> #include <windows.h> #include <stdlib.h> DWORD WINAPI test_thread(LPVOID lpParam) { printf("thread whiiiii\n"); struct person { char *namee; int agee; }; struct person p = ((struct person)lpParam; printf("%s\n",p.agee); ExitThread(0); } int main() { struct person { char *name; int age; }; DWORD thread; struct person p; p.name = "John Smith"; … |
|
Hi, I have a problem with my code in C An error occurs with message : /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.text+0x21): In function `_start': : undefined reference to `main' collect2: ld returned 1 exit status Does anyone know for it ? Thanks a lot |
|
I wrote a short piece of code to give me a .dat file for use in another program. But i cant figure out what is wrong. I run on a mac, and use Xcode. [CODE]#include <stdio.h> #define ARRAYSIZE 1500 #define BINDATA "file://localhost/Users/Hub/Desktop/231A4binData.dat" int main (void) { int i; double dblData[ARRAYSIZE]; … |
|
Hi, Can anyone explain in detail what is the difference between int *a and int* a? Is there any difference between them? |
|
On this link [url]http://lxr.ncu.cc/source/kernel/timer.c#094[/url] a return type is defined [CODE] return ((unsigned int)(unsigned long)base & TBASE_DEFERRABLE_FLAG); [/CODE] What is the above function returning.I am not clear with definition of what is being returned in the above code. |
|
Hi All, Can somebody explain what is the difference between (char*) and (char**). I am just looking for an explanation of in byte level. Also please refer any documents related to this. Thanks |
|
I absolutely hate hate hate hate HATE to be doing this, because I've figured out every other program I've done relatively alone with my C Book. I'm writing a program that declares an array of structs, each with a name and age field. The data is read from a file … |
|
Basically I've finished my code for the most part and I'm having trouble figuring out how to initialize loan, mort_gage, and downpayment. Is it possible to use a pointer for each of these and call the address back to main? I'm so confused...it's just one of those little things that's … |
|
I have to: Run the grades program twice, so that it accepts the data in the files t1 and t2 as input for the two respective runs. I ran the grades program, it asked me to enter digits, I have the t1 and t2 files, how do I make the … |
|
I have spent some time in C forum already but I forgot to introduce myself here since I was concentrating more on solving my C issues at first... I am Sreejith Education : Graduate in Communication Engineering Working in Television domain My OS Flavour is OpenSuse 11.3 Why I am … |
|
Hello all, I have this struct: [CODE=c] typedef struct cell { char _name[2]; int _calcResult; int _depend[MAX_CELLS]; } Cell; [/CODE] and this is my main: [CODE=c] int main(int argc, char* argv[]) { FILE *fp; int i; fp=fopen(argv[1], "r"); Cell Cells[MAX_CELLS]; fillNames(fp,Cells); for(i=0;i<4;i++) printf("%s\n", Cells[i]->_name); } [/CODE] [CODE] static void fillNames(FILE* … |
|
Hi all, I am trying to make a program but I have a problem. So I can't continue. I am using a struct like that : [CODE]typedef struct account { char fullname[40]; int id; int amount; char name[15]; } account; typedef struct parking_system { int pos; char name[15]; char description[80]; … |
|
hey guys! I need to know how to use pthreads with mutex to protect the critical section!! |
|
Hi everyone. i have an issue with a server program i'm developing for a university project. The issue is the following: The server program i'm building uses shared memory and forks. However i have a problem as to how can i destroy the shared memory segments i've created. A simplified … |
|
My func looks like: [CODE]int pop(node **hd, char **new_element) { node *dummy; int i = 0; if (empty(*hd) == 1) { printf("Stack is empty"); return -1; } else { (*new_element)[i] = (*hd)->element[i]; // problem is here ;) dummy = *hd; *hd = (*hd)->next; free(dummy); }[/CODE] and I call it via: … |
|
[CODE] if(Student[i].regNo.campus == "KUALA LUMPUR") Student[i].regNo.campus = 'W'; else if(Student[i].regNo.campus == "PERAK") Student[i].regNo.campus = 'a'; else if(Student[i].regNo.campus == "PENANG") Student[i].regNo.campus = 'b'; else if(Student[i].regNo.campus == "JOHOR") Student[i].regNo.campus = 'c'; else if(Student[i].regNo.campus == "PAHANG") Student[i].regNo.campus = 'd'; else if(Student[i].regNo.campus == "SABAH") Student[i].regNo.campus = 'e'; [/CODE] i got alot of warning message … |
|
Hello. Well, for creating linked lists, i always use 2 pointers: one for beginning and one for the end of the list. Is this OK? Or am i required to have just a single pointer pointing to the beginning of the list and then traverse everytime i need to insert? … |
|
can you help me to answer this problem... A high building has 26 floors with the level 0 and the level 25 as the lowest and the highest level, respectively. It has a lift for transport the occupant to the level destination. The lift moves up and down in respect … |