18,491 Topics

Member Avatar for
Member Avatar for RouseA

I am developing a number of projects for STM32 processors using Eclipse, gcc, gdb and an Olimex ARM-USB-OCD jTag dongle. All works well, but every time I relaunch the project in debug mode the code stops at address 0x08000000. The debug window displays 'No source available for "g_pfnVectors() " '. …

0
70
Member Avatar for hariramprasath

Hi everyone. I want to extract the user list in Active directory using C prog. Please somebody help me. Am badly in need for this.

0
33
Member Avatar for xheavenlyx

Before I ask the question I realize that selection of a programming language depends on the context of a problem at hand. Related to this I would like to know (if anyone) how many of you use which language for programming microcontrollers, embedded systems and even generally on PC. Here …

Member Avatar for stevephillips
0
232
Member Avatar for indianscorpion2

this code is to find the factorial of a number by the recursion principle. trace the control flow in this program very carefully.

Member Avatar for Adak
0
202
Member Avatar for ellenski

Hi, In this "tree" code, what I am having trouble with is for example i inputted 2 numbers ( 7 and 5 ) an 7 is the root. if i wanted to delete 7 which is the root, it should be deleted and replaced by 5 making 5 the new …

Member Avatar for abhimanipal
0
180
Member Avatar for rohith_08
Member Avatar for progcomputeach

I'm interested to see how many languages most programmers end up learning and what languages are the most useful or popular. I've seen people talk about Javascript, C, PHP, Visual Basic, SQL, Java, and Python a lot. I thought it would be good to write down a list of programming …

Member Avatar for nicolajoseph1
0
382
Member Avatar for Member #807123

Hi, I am using the following code to download files from the internet: [code=c]size_t write_data(void *ptr, size_t size, size_t nmemb, FILE *stream) { size_t written; written = fwrite(ptr, size, nmemb, stream); return written; } int main(int argc, char** argv) { FILE *downloaded_file; if ( (downloaded_file = fopen (download_path , "w" …

Member Avatar for 0x69
0
2K
Member Avatar for vbx_wx

I have to do this : define a float variable and take its adress,cast that to an unsigned char and assign to it to an unsigned char pointer: Why isnt this good ? [code] float f; unsigned char* c = static_cast<unsigned char>(&f); [/code]

Member Avatar for Narue
0
101
Member Avatar for gahhon

hey anyone, what is the meaning of while(!correct) ? when correct = 0, what is the meaning of it? i have to trace the output but i dont understand it. please help me (: thanks alot...

Member Avatar for Narue
0
153
Member Avatar for rajsekhar28

SortedInsert() is a function which given a list that is sorted in increasing order, and a single node, inserts the node into the correct sorted position in the list.I know this code works fine.I am just curious to know why we can't use just single pointer to node to traverse …

Member Avatar for Ancient Dragon
0
143
Member Avatar for daredevil786

[code] int x[] = { 1, 4, 8, 5, 1, 4 }; int *ptr, y; ptr = x + 4; y = ptr - x; [/code] why y is coming 4 in this code i think that it should be 8

Member Avatar for pheininger
0
1K
Member Avatar for m_ishwar

I am experiencing a problem with turbo c while I execute odd loops. The compiler doesnt wait till I give a yes or a no. It just jumps out of the loop. Can anyone help me?Is it a problem with the compiler or my program. The latter is not possible …

Member Avatar for Aia
0
136
Member Avatar for guru_iyer

I need to get an output like: 1 1 11 11 111 111 1111111 I tried a lot and came to the following program. But i'm getting output like: 1 1 11 11 111 111 1111111 Please help me correct this program. The preview of the shape was not coming …

Member Avatar for Adak
0
159
Member Avatar for ftl25

Hi. I am writing a DLL application in C (using VC6) which calls external DLL functions. Some of those calls execute and return without a problem, but some others don't. When I say they don't return, I mean that either they don't return at all, or else they take a …

Member Avatar for Ancient Dragon
0
84
Member Avatar for SlickSteiner

Here is the source code, and my problem is that I want to add a series of arrays, but I have no idea how to do it. [code=c] #include <stdio.h> #include <stdlib.h> #include <math.h> int main() { //These Lines indicate the variables int Computer,c,r,rm,hd,h,ram,RAM[4],HDD[5],comp=1,ramcount,hdcount,compcount=1,price[10],cpter; float PriceBudget,MB,Monitor,Proc,VC,ODD,CC,KB,M,Price,totalpram,totalphdd,sumpc,sumpram,sumhdd,tpricehw; printf(" ---This Program Will …

Member Avatar for nick.crane
0
128
Member Avatar for Jsplinter

I am getting this error even though a) the header file does exist and is located in the directory and it's not somehow been switched to read only. Also, my #include statement uses "" like "test.h" so the compiler knows to look in the project directory first. I've read that …

Member Avatar for Jsplinter
0
584
Member Avatar for Codeburner

Hi is there any difference between the size of a struct type and the size of it's instance? similarly with enum type and it's instance...

Member Avatar for Narue
0
89
Member Avatar for watery87

hi guys, I found this code on the web but unable to integrate it into my code, can any1 help?. The problem is, it doesnt read till the eof, instead it stops when the condition is erroneously made. [code] #declare Line_Char_Buffer_Size 4000 #declare INPUT_FILE_NAME "Countries.txt" void readData () { FILE …

Member Avatar for zerocool21
0
136
Member Avatar for kimimaro

Below are a program that supposed to ask a user to enter a user ID and if found, it will then modify the very same person details in the record and if not found then calls the add function to prompt the user details and add into the record.txt as …

Member Avatar for Adak
0
266
Member Avatar for ellenski

Hi, We were asked to make a Binary Search Tree program in C. It should be able to traverse the numbers (preorder, inorder, postorder) then display it. And locate the number and display it. And locate the number to delete, delete it, then display the number that was deleted before …

Member Avatar for ellenski
0
240
Member Avatar for patrick k

I was wondering if anyone could help me a little bit with a problem I encountered on Project Euler. The specific problem at hand is to find the 10,001st prime. I have implemented what I think to be a version of the Sieve of Eratosthenes. When I modify the problem …

Member Avatar for Member #114696
0
149
Member Avatar for dwlamb

I'm trying to write a CGI script as part of a web technology programme I am undertaking. There's a challenge with getting form data to concatenate into my SQL strings to populate my database which is in Postgre. This is my HTML form: [CODE="HTML"] <form action="review_input.cgi" method="post"> <input type="hidden" id="cdid" …

0
84
Member Avatar for cpp.coder37

Hi every one. I want to do my fyp in Operating System. Can some one please give me a good idea? I want to do my fyp in kernel programming. But please give me ideas. Thank you

Member Avatar for abhimanipal
-2
76
Member Avatar for mjmythili

Hii friends, Is it possible to find the no. of elements in an array after inserting without counting while insertion

Member Avatar for Ancient Dragon
0
927
Member Avatar for cpp.coder37

Hi every one. I want to ask a question. Whenever i plugged a usb in my computer i want to save that time when this happen. Means that i want to save when when a usb is plugged in my pc in a particular day. I want to do it …

Member Avatar for sirio.bm
0
95
Member Avatar for xxpokerxx

Hi, I am trying to implement a binary tree(not sorted) using recursion. I have figured out most of my function however GetMax and GetMin are confusing me. [CODE]#include <stdio.h> #include <stdlib.h> #include <limits.h> typedef int TreeEntry; typedef struct binary_tree_node { TreeEntry item; struct binary_tree_node * left; struct binary_tree_node * right; …

Member Avatar for xxpokerxx
0
312
Member Avatar for watery87

Hi guys, am currently creating a client/server program. However im having trouble reading from a text file. Im not sure whether fgets or fread is better in my case. Basically my program requires user to input a country, and the program will display its details out.My question is, what method …

Member Avatar for watery87
0
519
Member Avatar for winecoding

There is a small program. [CODE]#include <stdio.h> void f(char **p); int main() { char *argv[]={"ab", "cd", "ef", "gh"}; f(argv); } void f(char **p) { char *t; t=(p+=sizeof(int))[-1]; printf("%s\n", t); }[/CODE] Assume the size of int is 4, I was asked to give the running result of the following code segment. …

Member Avatar for burgercho
0
109
Member Avatar for Nandu Das

I installed c++ and started to write a new simple program.But i got a warning "Function should return a value". The source code is correct and the directories are also correct. What should I do? Pls help....

Member Avatar for $urya
0
94
Member Avatar for nbaztec

Basically, I didn't know where to put this so I choose the Super of the 2 Languages. Our lecturer gave us an assignment to lay out diff. b/w C & C++, which started with a rather dirty spurge of concepts. He stated: In C program , the MAIN() should NOT …

Member Avatar for mrnutty
0
693
Member Avatar for jemz

hello i have problem on this program i don't know the formula to get the exact parking time, rounded total and total charge...please help me... Write a C program program to calculate the parking fare for customers who park their cars in a parking lot when the following information is …

Member Avatar for Adak
0
700
Member Avatar for daredevil786

*ptr++ and ++*ptr are they representing the same expression if not then how they are different according to precedence ?

Member Avatar for Adak
0
119
Member Avatar for watery87

Hi guys, i compiled a program but i have this vague error message that occured. Searching through google.com states that it might be due to many problems such as invalid pointers, etc, etc. Im a fairly new person to C prog, so i would like to seek your advise on …

Member Avatar for watery87
0
332
Member Avatar for titan5

I have written a program which checks whether the entered list is a circular list or not. I am successfully able to make the circular list. But as soon as I call the check_circular fucntion my program hangs. Can anybody find the error please? And yes the programs hangs when …

Member Avatar for titan5
0
119
Member Avatar for sanz
Member Avatar for Adak
0
2K
Member Avatar for arsenal_fan

There is an array of odd and even numbers. Now, sort them in such a way that the [B]top portion of the array contains odd numbers, bottom portion contains even numbers. The odd numbers are to be sorted in descending order and the even numbers in ascending order[/B]. If the …

Member Avatar for griswolf
0
113
Member Avatar for creeps

I've written the following binary search algorithm and it worked on [i]my[/i] tests. I want to know if there is something I'm missing, as this is the first time I try to write it, so give me a case in which it would fail, and I'll try fixing it. I …

Member Avatar for Adak
0
159
Member Avatar for WgJauharah
Member Avatar for umesh314

#include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> #include<graphics.h> int citem=0,ctemp=0; int count; void menu(); struct item{ int icode; char iname[30]; int quantity; float price; }; void modify(); struct item i; void additem(); void display(struct item ); void delete_item(); void main() { char ch,another; int num; FILE *fp,*ft; int code; long int recsize; fp= …

Member Avatar for java_programmer
-2
161
Member Avatar for Sesshokotsu

hey um i kind of been trying to figure this out for awhile now...well the program is supposed to convert numbers like 123 into words such as one two three the only problem is my program writes the numbers back words such as three two one...does anyone have any ideas …

Member Avatar for soulcandra44
0
215
Member Avatar for srinath33

can...u...convert..words..2..no..?????like..if..we enter three it should display 3???????????

Member Avatar for soulcandra44
-1
117
Member Avatar for vegaseat

Do I have to spell it out for you? This short C code will do just that. It will spell out an integer number in English words. The banks do that on large checks, and it would be nice to get one of those every now and then.

Member Avatar for soulcandra44
1
562
Member Avatar for onauc

Hi, :) I know that there are books out there and internet tutorials too for a beginner like me to learn programming but do you know what all these tutorial's downside is ? I’ll tell you what their downside is and you can upside it and cash in on it. …

Member Avatar for aimsoft
0
274
Member Avatar for .Mido

[B][COLOR="Red"]What's The difference between Call by Value and Call by Reference ? and plz give me a clear example thanks in advance [/COLOR][/B]

Member Avatar for Zinderin
-1
148
Member Avatar for ronnyrhymes

Hello Everyone. My name is Ronald Ellis. I'm from Ghana and pursuing a BSC undergraduate degree in Electrical/Electronics engineering at KNUST. I however just started learning c programming on my own. I am a cool guy and open to everyone. Thank You.

Member Avatar for Lusiphur
0
41
Member Avatar for samanthalynn

Hi Everyone. Am new to this forum. ------------------------------------------------------ [URL="http://www.sangamgrouphotels.com/"]Hotels in Kanyakumari[/URL] [URL="http://www.sangamgrouphotels.com/ayurvedha-treatment"]Kanyakumari Hotels[/URL]

Member Avatar for Member #727902
0
102
Member Avatar for onauc
Member Avatar for gahhon

Hmm... can we use the continue statement in [COLOR="red"]if-else statement[/COLOR]? as i know the continue statement only can use [B][COLOR="Red"]under for loop[/COLOR][/B] right? and also is there any idea how to write [B][COLOR="Green"]pseudocode[/COLOR][/B] of for loop ? give some sample examples. thanks alot. :)

Member Avatar for ciint
0
143
Member Avatar for Is0r

Hi! From the manpages I know, that perror evaluates the errno. So using perror and fprintf + strerror, as coded in my example below, should result in the same error messages, but they do not. The execution of the program leads to the following result: bash> ./errno_test blub fopen() failed: …

Member Avatar for costica_is
-1
604

The End.