19,876 Topics

Member Avatar for
Member Avatar for viki

hi , I am trying for partial fraction deomposition of polynomials. I have problems in solving the denominator and in applying different conditions for special cases . Is there any stright forward method for this.

Member Avatar for DavidB
1
707
Member Avatar for dsraju

1)Can you suggest me how to assign a pre-defined 2-dimensional array to a pointer.The intension here is to pass 2-D array to a funtion so that changes in the function will reflect the 2-D array . [code]void main(){ int array[40][40]; fun(array); } void fun(int **array){ ........}[/code] The above code is …

Member Avatar for ~s.o.s~
1
141
Member Avatar for nagarjuna

Hi, I m an engineering student. I wanted to know how r pointers supported in c . How is that any levels of indirection is supported.

0
66
Member Avatar for Maxxpower

Hello, I'm new to both C++ and these forums. What I'm trying to do is calculate the average of all values contained within an array. Is there a simple command that can do this for you, or does one need to set up some kind of loop? Any help or …

Member Avatar for ~s.o.s~
1
140
Member Avatar for aaholland

I am writing a program for my college class :eek: It has to record a password, but it cant display it on the screen. It is a unix based enviroment. Does this look correct to you guys? [CODE] main() { int i; char buffer[80]; initscr(); printw("Please enter a password => …

Member Avatar for ~s.o.s~
1
98
Member Avatar for promiscuoustx

Hi all!!! I have been tearing my hair out trying to figure out how to make the below program calculate and display the total sales tax for each location. If anyone can please look at my code and send me in the right direction, I am hoping I can get …

Member Avatar for WaltP
1
960
Member Avatar for smagee12

In a statement like this [code] void mousebuttonhandler(int button, int state, int x, int y) { int counter; if (button == GLUT_LEFT_BUTTON && state == 0) counter ++; printf("Mouse button event, button=%d, state=%d, x=%d, y=%d\n, ", button, state, x, y); glutPostRedisplay(); } [/code] It appears that im trying to count …

Member Avatar for ~s.o.s~
1
122
Member Avatar for jashwant kumar

[B]jassi here[/B] [B] hello friends i m currently pursuing diploma in advanced computing from pune in india could u pliese help me sending most frequently asked questions in c and c++[/B]

Member Avatar for happygeek
1
64
Member Avatar for Iqbal_h_a

[code] Please look at the following code snippets: char str[]="abcd"; // Gets stored in stack frame. char *str="abcd"; // Where does this gets stored? In case of first declaration ie char str[]="abcd"; the string "abcd" gets stored in the stack frame of the invoked funciton. I wonder where does the …

Member Avatar for ~s.o.s~
-1
200
Member Avatar for becki

hi every one, im working on a program to convert the binary number system to the decimal one. I have the code yet im wondering if it a while loop can be used instead of a for loop. i have major problems trying to work out for loops, stupid me! …

Member Avatar for WaltP
1
191
Member Avatar for pavanpalaksha

Hi All, I am using system function to decrypt an encrypted file, But it's taking too much of time, as a result of file access i want to know how to store the output of system( ) function into local variables instead of a file. Code goes like this. sprintf(syscommand,"des …

Member Avatar for Ancient Dragon
1
291
Member Avatar for hygy486

here is my code i get an error of call of non function in lines 29, 34, 39 and 44 apprecite help or an alternate code if possible here is code [CODE] int main (void) { char desiredgrade; double min_average; double currentaverage; double weight; double score; printf("Please enter your desired …

Member Avatar for ~s.o.s~
0
2K
Member Avatar for Iqbal_h_a

It is not allowed to declare a variable of same structure type but it is allowed to declare a pointer. For example, [code] struct node { int a; struct node x; //not allowed struct node *pnext; //allowed }; [/code] My question is when we can declare a pointer of same …

Member Avatar for Iqbal_h_a
1
197
Member Avatar for ashokkumarrsp
Member Avatar for Dave Sinkula
1
857
Member Avatar for beuls

I have written a program in c# for quick sort using multithreading. but the code has a problem. the array is not sorted properly. i think it is because the parent thread terminates soon before the child threads sort the array. i am attaching the code herewith. kindly help me.any …

Member Avatar for _r0ckbaer
1
273
Member Avatar for santosdas

Hi, I've c source code developed in 32-bit linux machine. Can I run it in 64-bit linux machine. Thank you. Santos

Member Avatar for Rashakil Fol
1
113
Member Avatar for bh_hensem

Hi, Actually my program will be read some input, as example :- 123 456 789 123 567 456 Then, I want to copy all the data into array and filter out any duplicate or same record..Finally the program will be print the result without duplicate records ? Could somebody guide …

Member Avatar for Salem
0
103
Member Avatar for puppy

I have an assignment that asks me to explain the "order of complexity" of an algorithm. Can anyone explain what that question means? Does that mean what happens first and so on? Thanks.

Member Avatar for Micko
1
100
Member Avatar for muhammad amir

actually i dont have complete concept about bigO notation that usually used to find time complexity my question is in bigO notation why we ignore constant for example f=100n we say that our algorithm has order of n time comlexity or order

Member Avatar for Grunt
1
151
Member Avatar for jahnavi
Member Avatar for ~s.o.s~
-2
82
Member Avatar for padmakar

how to run an audio file in C programming language as we access a textor any other kind of file........

Member Avatar for ~s.o.s~
1
104
Member Avatar for vbcielle

Please help can you help me debug my code i cant display the result and the computation for sum is error... help me please :sad: [code] #include <stdio.h> int i,counter; float sum; struct cgrade { char course[50]; float credit[50]; float grade[50]; }; struct cgrade GPA[50]; main(){ printf("Enter number of courses …

Member Avatar for vbcielle
1
127
Member Avatar for kimw

i am a little bit confused about the actual usage of the find function of map i have say a vector<string> and i want to return the relative position (or iterator) of a key (of type string) in this vector. now, the find function accepts only one input which is …

Member Avatar for Grunt
1
141
Member Avatar for saishn

Again, I don't know what I've done wrong. [code] #include <iostream> using std::cout; using std::endl; #include <cstring> using std::strcpy; using std::strcat; #include <cstdio> using std::sprintf; void destroyMultiCharArray(char * * anArray, int size) { for (int i = 0; i < size; i++) { delete [] anArray[ i ]; } delete …

Member Avatar for saishn
0
305
Member Avatar for the.future.zone

Hello, I seem to be having some C language probs. I just need insight on how I can write this program: a program that reads input , and can replace a char with another one(e.g if I type k, it should replace it with a) using getchar and switch.. case …

Member Avatar for Lerner
0
166
Member Avatar for VinC

I'm trying to use scansets to filter out out some textfiles. #include <stdio.h> int main( void) { int i; char str[ 80], str2[ 80]; scanf("%d %[abcdefg] %s", &i, str, str2); printf("%d %s %s", i, str, str2); getchar(); return 0; } When I input "123abcdtye" I expect the output to be …

Member Avatar for Bench
0
426
Member Avatar for Allisone

Hi, I was asked to go over this block of code and explain what it does. Let me know if this is correct, thank you! [COLOR=DarkGreen]It selects a random EXE file and checks if the first line has the 1234567 signature. If it does it goes to the Subroutine I-executable …

Member Avatar for ~s.o.s~
0
162
Member Avatar for kimw

i am trying to use a boost library [CODE]#include "boost/date_time/gregorian/gregorian.hpp"[/CODE] and my source file is in the same folder as boost. however, during compilation i get errors that directories that gregorian.hpp links to (boost/date_time/compiler_config.hpp) could not be found. i've checked that all the files that gregorian.hpp links to are in …

Member Avatar for Salem
0
230
Member Avatar for ravi_forum

SIr, I wanted to know the C Statement for adding two numbers without using + sign.. Anyone can help me to solve this..... ThanQ

Member Avatar for Salem
0
190
Member Avatar for suneet

Please help me in knowing from where I will be able to find "gdiplus.h". Just because of this file Program is showing an error "FATAL ERROR C:1083 : cannot include open file 'gdiplus.h' No such file or directory"

Member Avatar for WolfPack
0
53
Member Avatar for Mushy-pea

Hello everyone. I know the API of an operating system is a collection of functions within the kernel that are available for applications to use. My question is, how do you call these functions into action from within a C program, if you're compiling the source to run on Linux? …

Member Avatar for mostafadotnet
0
139
Member Avatar for himanjim

Can anybody tell me what are file descriptors in C?? I searched the net but can't clear my concepts!!!

Member Avatar for mostafadotnet
0
156
Member Avatar for insamd

Hey guys, I was wondering if anyone can help me in terms of using atoi to get my my results to add the 1's of my binary output and then join them together... eg. 110101 and 100101 is 4 and 3 = 43. I was thinking of integer dividing the …

Member Avatar for insamd
0
393
Member Avatar for ishwar

Hi, I am using windows , and I wanto know if there is any api that tells me if a directory exists in windows? Thanks , [I] Ishwar[/I]

Member Avatar for WolfPack
0
138
Member Avatar for scoobie

Hi all, I am very new to C code and was wondering if someone could please help me. i am using a program that gets run through a windows command prompt and outputs the result to the command line screen by default. i was trying to get it to output …

Member Avatar for Salem
0
125
Member Avatar for ishwar

Hi ppl, I am creating a program that will update itself through the internet. I am creating a windows app. Can I use winsock to do this , without the [I][COLOR=lime]"[/COLOR][COLOR=darkgreen]Windows Firewall has blocked this program"[/COLOR][/I] dialogue? [I]Ishwar[/I]

Member Avatar for WolfPack
0
259
Member Avatar for mmiikkee12

I tried writing a string splitter for my little operating system based on [url]http://www.daniweb.com/code/snippet318.html[/url] but it didn't quite work. Here's my code: [CODE] // BTW, this will eventually return a string containing the token_numth token. But I'm just trying to get it to work for now. void strsplit(const char *str, …

Member Avatar for mmiikkee12
0
200
Member Avatar for himanjim

[CODE]#include<stdio.h> char *str="char*str=%c%c%c;main(){printf(str,34,str,34);}"; void main() { printf(str,34,str,34); }[/CODE] gives the O/P [CODE] char *str="char*str=%c%c%c;main(){printf(str,34,str,34);}"; [/CODE] Can't say how?? No formatting string is used in printf() like %s or so.

Member Avatar for Ancient Dragon
0
246
Member Avatar for DotNetUser

In my Form_Load, I dynamically create buttons to populate a tabcontrol with 6 tabpages. For some reason, it doesn't like it when I make the buttons invisible in Form_Load. I'm wondering if there's an event that gets triggered after Form_Load so I can make the buttons invisible there. For now …

Member Avatar for GloriousEremite
0
94
Member Avatar for Gunner54

Ok Im Back I Think these Are the Last Error's Of The Lot This is My Code [CODE] #include <windows.h> void WriteMem(DWORD MemOffset, DWORD DataPtr, DWORD dataLen) { DWORD d, ds; VirtualProtect(address, bytes, PAGE_EXECUTE_READWRITE, &d); memset(address, type, bytes); VirtualProtect(address,bytes,d,&ds); } [/CODE] And These Are My Error's [CODE] error C2065: 'address' …

Member Avatar for Gunner54
0
815
Member Avatar for hay_man

Hi, Hope you can help. The following is essentially a small problem of an overall project, i have been trying to work out how to divide an inputted string, into say blocks of 4 characters and then output these separate blocks on the screen. e.g. 1234567891234567 ----> 1234 5678 9123 …

Member Avatar for Ancient Dragon
0
235
Member Avatar for l-o-s-t

Hello ... I've been trying to convert a long string of numbers into a number that can be used in calculations ( int, long, or long long ) ... but nothing worked :-| If I have a string of 1s and 0s, and this string could be up to 128 …

Member Avatar for Grunt
0
125
Member Avatar for grunge man

ok im getting angry because if i wana keep asking questions then i was told to get a book and read it but thats the problem the reason why i came to this website is besause i foud it verry usefull amd i cant bye a book and eaven if …

Member Avatar for Bench
0
290
Member Avatar for himanjim

FILE *ptr; char i; ptr=fopen("file.c","r"); while((i=fgetc(ptr))!=Null) printf("%c",i); leads to infinite loop??? but while(fgets(str,80,ptr)!=NULL) puts(str); on the similiar terms doesn't???

Member Avatar for Salem
0
166
Member Avatar for comp_sci11

[code] #include<alloc.h> #include<stdio.h> #include<string.h> #include<conio.h> #include<dos.h> #include<ctype.h> typedef struct node { int dd,mm,yy; int cus_ac_no[15]; char cus_name[25],cus_add[45],cus_ph_no[17]; double cus_bal; float cus_intrst; struct node *next; }node; node *L,*ptr; void add() { node *p,*q,*new; p=q=L; clrscr(); new=(node*)malloc(sizeof(node)); if(new==NULL) { printf("list is full"); getch(); return; } else { printf(" Enter customer account number …

Member Avatar for Salem
0
313
Member Avatar for s s paul

[quote] Friends I am making a program to seach a string from a input line of strings.There are two problems : (i)The program is giving correct search for word that is the 1st word of input line. e.g.,"hello" in hello friends how are you? but unsuccessful search for any word …

Member Avatar for Dave Sinkula
0
155
Member Avatar for DotNetUser

I need to modify the Form's Clientsize in a static function but I get a compiler error - error C2597: illegal reference to non-static member 'System::Windows::Forms::Form::ClientSize. Are there any workarounds? Thanks.

Member Avatar for DotNetUser
0
99
Member Avatar for himanjim

sizeof(3.14) GIVES 8 AS THE OUTPUT. Where sizeof(3.0f) gives 4 as output. Is it because default datatype alloted to 3.14 is double and attaching f changes it to float??

Member Avatar for Rashakil Fol
0
101
Member Avatar for the.future.zone

Hi folks. I'm just learning C language,and I always come across a statement that I have no idea what it means. What does "returning a variable" mean? Thanks.

Member Avatar for WaltP
0
46
Member Avatar for sdybc

SO i got this program date_struct.c going and it looks like everything works except the printout part. When input 2 dates to get the numbers of days between them nothing happens, the program ends. This also happens when i try inputting a date and an integer, and returns a new …

Member Avatar for WaltP
0
129

The End.