19,876 Topics

Member Avatar for
Member Avatar for abhay_pundir

hii , i m getting a problem with save file dialog, i m getting this error "c documents and settings localservice desktop refers to a location that is unavailable' whenevr i click on desktop button.

Member Avatar for Ramy Mahrous
0
111
Member Avatar for Pramoda.M.A

Hi All, I am using Visal Studio 2005. I couldnt understand how Visual Studio is executing follwing code. Can anybody please tel me. I have worked on Turbo C compiler, VC++ compiler and Visual studio. I could understand the output of other two compilers for the following code. But i …

Member Avatar for csurfer
0
150
Member Avatar for paroshm

Hi I'm working with a structure like this: [code=c] struct table{ int id, rank, hop_sup; float dist,bs_dist, res_enrg, total; }; struct nd{ float x,y, enrg, bsdist; int id,my_rank, hop; int neighbor[50], prfrdnbor; float nbordist[50]; struct table nbr[25]; }node[127]; [/code] Do you think this would cause memory problem? In my program, …

Member Avatar for tux4life
0
132
Member Avatar for StaticShell

Hello all, I am new and I was hoping someone could please help me out. My problem is, I am trying to design a C program to read in a text file containing values, and output these values in binary form. the text file "values.txt" looks like this: 139 <tab> …

Member Avatar for StaticShell
0
157
Member Avatar for Hiroshe

Writting a program which involves tallying generated numbers. I'm having problems with the tallying part. It takes a number, and finds it in the second row of an array, and tallies (add 1) to the same position in the first row. Here's my extracted code: [CODE=C]#include <stdio.h> void tally(int number, …

Member Avatar for Hiroshe
0
1K
Member Avatar for xyzt

In a book, I saw a definition like this: [CODE]static struct map_info mymap = { .name = “mymap”, .phys = FLASH_START_ADDR, .size = FLASH_LENGHT, .bankwidth = FLASH_WIDTH, };[/CODE] what does it mean..?It's not clear for me actually..

Member Avatar for tux4life
0
131
Member Avatar for Jim_b

Looking at using resource files. using Watcom c. Using the Watcom resource editor I output *.res and *.DLG files Any hints on how I produce a *.rc file?

Member Avatar for Ancient Dragon
0
84
Member Avatar for kris4th

I need to create a program that adds two sets, hint: the set is composed of distinct (integer) How to do this using this Function: void add(int result[],int item,int *count); add result the value of the item. Please i really need ur immediate help...pls600x

Member Avatar for csurfer
0
129
Member Avatar for sam511

hello people, I have a problem in sorting linked list according to id number of student in secondary school system ,the code is not working .can any body help me please ?!! Here Is my code. [CODE] void sortbyID() { struct school *pre; struct school *move; move=head; pre=move; move=move->next; while …

Member Avatar for s_sridhar
-1
86
Member Avatar for art-1001

Build a program in C that accomplishes the following task: It reads from a file the names of some certain files and their size in MB, then it distributes these files to some folders each with a maximum of N MB. The way of distribution is such that a minimum …

Member Avatar for tux4life
0
93
Member Avatar for sam511

hello. In my project the students are added into two levels(1 & 2) each level has it's own linked list so if you choose to add a student in level 1 it will be added to list1, if you choose to add him in level 2 it will be added …

Member Avatar for s_sridhar
0
256
Member Avatar for sam511

hi , I'm trying to store linked list in a file . I opened a file with extension txt but when I opened it to read it . It was encrypted does anyone know why??

Member Avatar for kvprajapati
0
91
Member Avatar for salesman91

hi, I m making a graph with all (x,y) printed on graph line..like from +x=1,2,3....so on and same with -x,+y,-y. below I tried u can try this too but I want clean graph with nos. on it. can someone solve it? [code]#include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> int …

Member Avatar for salesman91
0
107
Member Avatar for XTRobot

Hi,first i must say this is not my homework,because i am to young (14 Years old)to have programming homework.I am trying to make application for automation of the dental surgery(i am testing my skills :D),this is the program menu : Ask for username and password and if it's correct it …

Member Avatar for Stefano Mtangoo
0
242
Member Avatar for sam511

HI everyone. :) .I hope you can help me my function . I want the user to enter number of level "There are two levels" and then display students records in that level sorted by id .the one I wrote sorts then displays so the output is wrong .I tried …

Member Avatar for sam511
0
84
Member Avatar for bahr_alhalak

hello every body i have a problem with a c program . the question that ( [COLOR="Green"]write a c program that reads a real numbers untill error then calculate the sum and the average of all numbers [/COLOR]) i have solve it with a while looping . and i need …

Member Avatar for bahr_alhalak
0
225
Member Avatar for kspriya01

Hi, I want datagridview in windows application(C#.net), type in "this is the first line allows the 50 char", if you press "letter" and type "this is the second line", the current cell and go to the cell right below it. What I want is, when I press "letter" and type …

Member Avatar for kvprajapati
0
145
Member Avatar for wendwessen

[code=c] #include<stdio.h> // Global variable declaration and initialization. can be used every where in the program body. static char grid[3][3] ={{' ',' ',' '}, {' ',' ',' '}, {' ',' ',' '} }; void Print()//--- to print the grid. prints the grid. { int i, j; printf("\t-------------\n"); for(i = 0; …

Member Avatar for wildgoose
0
118
Member Avatar for cmakesmesad

I need help with the following program I wrote. Im getting a segmentation fault and the warning "assignment makes integer from pointer without cast". Can anyone spot any errors with the program? [CODE] #include <stdio.h> #include <string.h> #define MAXLENGTH 256 //function portotype char * next_word(char *instring, char **new_start); int main …

Member Avatar for Tom Gunn
1
86
Member Avatar for serkan sendur
Member Avatar for serkan sendur
0
261
Member Avatar for jonnytabpni

Hey folks, I've been reading: [url]http://www.codeproject.com/KB/IP/cs_remoting.aspx[/url] Now, I havn't actually done anything in the article yet however a question springs to mind. I have an app that has non-decoupled UI and business stuff (probably not the best). In time, I would like to make this app run on a "Software …

Member Avatar for sknake
0
134
Member Avatar for kostasxx

hi guys, i have this code [code] #include <stdio.h> #include <stdlib.h> int main(){ unsigned long long *x; x = (unsigned long long*)malloc(600851475143ULL*sizeof(unsigned long long)); if (x!=NULL){ printf("success\n"); getchar(); } else { printf("fail\n"); getchar(); } printf("%I64u\n",600851475143ULL); getchar(); return 0; } [/code] this is a part of some program im trying to …

Member Avatar for Tom Gunn
0
122
Member Avatar for Hiroshe

Warning, this post contains code for Euler problem 5. Try to solve it youself without looking at anyones code. Its alot more satisfying if you do it yourself. Hello, just found an interesting website called project euler. I managed to get to problem 5 without a too many problems. Anyways …

Member Avatar for iamthwee
0
116
Member Avatar for ps243

hi, I need help in my work. Let me give some idea of what I am trying to do. I have multithreaded C program, where I am suppose to take inputs from different files (a input file for each thread). Threads will execute based on these inputs. I am struggling …

Member Avatar for Ancient Dragon
0
101
Member Avatar for ganesh_bala

I need to use huge data (10^100) in a Variable in C? How can i implement it? Double,float ranges are low.. Suggest me in this.. Thanks in advance!!

Member Avatar for Hiroshe
0
142
Member Avatar for sam511

hello everybody,I'm a new member ,and i was hoping that you could help me with my problem . I'm making a secondary school system using linkedlist and files and i add students into two levels each one with a different linkedlist. we are suppose to add ,update,delete,search,display and then save …

Member Avatar for sam511
0
62
Member Avatar for kspriya01

Hi, I want datagridview in windows application(C#.net), type in "this is the first line allows the 50 char", if you press "letter" and type "this is the second line", the current cell and go to the cell right below it. What I want is, when I press "letter" and type …

Member Avatar for ddanbe
0
268
Member Avatar for veronica_0501

hi all.. ive got a C++ assignment to do. this is what it says: Write a program in C++ that takes input from a text file specified by the user and outputs the following to the screen: • Number of single letter words. • The average word length for the …

Member Avatar for tux4life
0
251
Member Avatar for ravikiran032

[code] # include <stdio.h> # include <conio.h> #define squ(x) x*x main( ) { float s=10,u=30,t=2,a; a=2*(s-u*t)/squ(t); printf(“result :%f”,a); } [/code] [B]output is -100.000 how is it possible[/B]??

Member Avatar for MosaicFuneral
-1
103
Member Avatar for Hiroshe

I'm trying to make a simple prime number generator for bigger program. It needs two numbers (n and c) and needs to edit them. So I decided to put the numbers in pointers, and just give the adress two the pointers. After about a half-houre of fumbling with *'s and …

Member Avatar for tux4life
0
154
Member Avatar for CSharpant

Hi, We are into Reports development using C# and PDF Library (for front end). The development is done in Visual studio 2005/2.0 framework. Now since the production has 1.1 framework, I was asked to "downgrade" to VS 2003. The problem is we have Tuple/generics in 2.0. After I recreated the …

Member Avatar for Ramy Mahrous
0
227
Member Avatar for tux4life

[B][COLOR="Red"]First:[/COLOR][/B] I'm not asking how to do this, just carry on... Hey, I found a nice link on how to read C/C++ declarations: [B][URL="http://unixwiz.net/techtips/reading-cdecl.html"]http://unixwiz.net/techtips/reading-cdecl.html[/URL][/B] I'm leaving it here for anyone... I hope it will be useful to you!

Member Avatar for xyzt
0
98
Member Avatar for Cheesey

Hi All I am attempting to install a low level keyboard hook using the following calls: [code]HANDLE hDll = LoadLibrary(DLL_NAME); LPVOID procAddress = GetProcAddress(hDll, "HookProc"); HHOOK wHook; wHook = SetWindowsHookEx(WH_KEYBOARD_LL, procAddress, hDll, 0);[/code] I have built a DLL containing HookProc define below: [code]__declspec (dllexport) LRESULT CALLBACK HookProc (int nCode, WPARAM …

Member Avatar for Cheesey
0
294
Member Avatar for edenn1

i have an assignment: Write a recursive function that will compute the value of a representation of a number in given base. int base(char num[], int radix); For example, calling the function as base("1011", 2) should return 11, but calling it as base("1011", 10) should return 1011. i need to …

Member Avatar for s_sridhar
0
111
Member Avatar for srishekh

Respected Sir/Madam I need to find out the execution time of a fragment of code. For that I am using time_t structure, but it gives time in seconds. And the value of CLOCKS_PER_SEC in my comp is 1000000. Will you please me in getting the time in milliseconds Thanks & …

Member Avatar for WaltP
0
600
Member Avatar for XxGunMastaxX

Hello, I have a question to ask whoever can help me. I've have dev - c++. see I've been using C++ for a while now but i'm still sorta a newbie... i havn't had this problem before but i've been trying to do a password program just to play around …

Member Avatar for WaltP
0
152
Member Avatar for niruyadla

Take 3X12 matrix and it is represented usingsingle diemensional array. input: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 Output: 24 25 …

Member Avatar for William Hemsworth
0
168
Member Avatar for lisagk

I'm a student and wanting to know if the syntax for C++ insert/update/delete statements for adding records to a table is the same or similar to statements in SQL? I've searched and can't really find a difinitive answer for C++. ie. insert into tableName values whatever delete from tableName values …

Member Avatar for siddhant3s
0
91
Member Avatar for sdmahapatra

[quote]I've written below simple code.Actually need to do that the value which is given by an user that will use as macro and macro value will automatically initialyzed to all needed place.Not to given every time.[/quote][CODE]#include<iostream> #include "conio.h" #define AB def() int main(int argc, char* argv) { int a=3,b=2; int …

Member Avatar for sdmahapatra
0
138
Member Avatar for patrick k

Hi everyone! I'm trying to learn C from my dad's old college textbooks, and I'm doing some of the problems he had to do. This problem is meant to calculate the number of days between two dates given by the user. I made a function to account for leap years, …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for AlexRamallo

I've searched the web for hours trying to find how to delete a file from the registry but havent found anything. basically what I want to do is delete a file from a folder inside of the software folder of HKEY_CURRENT_USER for example HKEY_CURRENT_USER -> Software -> MyProgram -> MySettings …

Member Avatar for Ancient Dragon
0
230
Member Avatar for yila

i got an exercise in which i've to write a code that does: when you enter the day of the month (f.e. 21th) and the day (f.e. Sunday) and the month (f.e. august) will display if in the given month there is a 13th Friday. so i made a prog. …

Member Avatar for yila
0
793
Member Avatar for Interrupt

Hi Folks I’m just starting to learn C, I’ve downloaded VisualC++2008 Express. Can someone walk me through creating a std C application/project in VisulC++ 2008 Express or just point me to some literature on this topic Thanks

Member Avatar for athlon32
0
89
Member Avatar for book_worm

Hello World! i want to write a program that generates 100 random numbers. the program should do the following tasks: ** store these 100 random numbers in a file called totalFile.txt ** read these numbers one by one from totalFile.txt and store the even numbers in a file called evenFile.txt …

Member Avatar for kangarooblood
0
365
Member Avatar for chin2x

can some one help me how to use gotoxy in making a program that all the sentence in center !!!! thanks !!!!

Member Avatar for twomers
0
254
Member Avatar for razsadeq

the following is a simple program that fragments standardized name consisting of 3 letters and 2 numbers then prints the full word, for instance spa11 print spanish eleven. Why is it not working? [code=c] char sname[4]; char snum[3]; // void strnumCpy(char *dest, char *source) { // NOT ACCURATE void strNumCpy(char …

Member Avatar for razsadeq
0
2K
Member Avatar for sdmahapatra

[code]double F_Ite() { //Main Function Start //Locally Data_type Declaration And Initialization : int numElement =20; double *a,*b,*c,*d,*Fc,*Fd; a = new double[numElement]; b = new double[numElement]; c = new double[numElement]; d = new double[numElement]; Fc= new double[numElement]; Fd= new double[numElement]; for(int k=1;k<(NI-1);k++) { //Main 'for' Loop Start std::cout <<"\n"; system("pause"); std::cout …

Member Avatar for sdmahapatra
0
753
Member Avatar for mysong

I am a beginner I have to write a code in straight "C" the code has to read from a file from c:\temp c:\temp\numbers.txt inside that txt file are the numbers 2 4 6 8 -3 20 30 40 60 80 100 200 It reads the txt in my code …

Member Avatar for Salem
0
2K
Member Avatar for edenn1

hi all! i need to write a recursive function that checks whether a given sentence is a palindrome by using this function: int isPalindrome(char word[]); i need to define a helper recursive function with extra parameters, and write isPalindrome as a wrapper function. the helper function is : int isPalindromeHelper(char …

Member Avatar for WaltP
0
105
Member Avatar for brainbox

hi I am badly stuck with inserting and retrieving Date in SQL DB from C#. I have a C# application which needs to save date in SQL 2008 Database for various purposes. The format in DB is DateTime for my DateColumn and i am using Datetime Picker in my c# …

Member Avatar for brainbox
0
664

The End.