18,491 Topics

Member Avatar for
Member Avatar for Aia

God Reveals DNA Secrets For many years molecular biologists have been mystified by the fact that very little of an organism's DNA seems to serve any useful function. Last night God revealed the mystery by posting the code on a warez site. I am just posting the first segment of …

Member Avatar for Aia
-1
528
Member Avatar for algo_man

[COLOR=red]What is the size of an activation record for the function [B]f([/B][B])[/B]? How did you find out?[/COLOR] [COLOR=blue][CODE] [COLOR=blue]#include <stdio.h>[/COLOR] [COLOR=blue] [/COLOR] [COLOR=blue]int[/COLOR][COLOR=blue] K = 1024;[/COLOR] [COLOR=blue] [/COLOR] [COLOR=blue]main(int argc, char *argv[])[/COLOR] [COLOR=blue]{[/COLOR] [COLOR=blue] int n;[/COLOR] [COLOR=blue] int f() ;[/COLOR] [COLOR=blue] [/COLOR] [COLOR=blue] if (argc != 2) exit(-1);[/COLOR] [COLOR=blue] n …

Member Avatar for Narue
0
113
Member Avatar for ndeniche

i've gone through some threads from people asking for help that have posts from these users saying things such as [quote]still the program doesn't do what i want it to do[/quote]This is why i would like to say to all users: [B]When we post solutions to your questions, most of …

Member Avatar for nkhosinathie
1
322
Member Avatar for ibrar_niitian

[B][COLOR=#000000]Write a program that will compute the quarter/semester grader for all the students in a class. Scenario is as follow: [/COLOR][/B] [COLOR=#000000] [/COLOR] [LIST] [*][COLOR=#000000]There are total of forty students in any given class. Each student has twelve graded items. Each student is given four tests, four programming assignments, and …

Member Avatar for Narue
0
132
Member Avatar for rajesh_vc++

Hi I want to play file in reverse(rewind) in direct show also I want to play it frame by frame . can any one help me

0
70
Member Avatar for louis7370
0
84
Member Avatar for srinath.sec

hi all, i have a question 1) how can we change the value of a macro during compilation time tell me with an example 2) what is difference between exception and memory leak. how to handle exception in c 3) where are the extern and register variables stored(text,data,BSS,heap,stack)

Member Avatar for thekashyap
0
177
Member Avatar for satyanarayanam

Hi, This is satya, how we can print a string in C that doesn't use printf in main or functions? plz help on this Thank u..

Member Avatar for Narue
0
175
Member Avatar for kavaas

i have ceated a file in C. i have to give the login security. i already gave the user name & password. but when i type the password the letters are visible how to hide the letters

Member Avatar for Member #46692
0
2K
Member Avatar for IwalkAlone

Q. WAPC to read a string into an aaray and capitalize the first character of every word in the input. Solution I tried [CODE] #include<stdio.h> int main(void) { char string[50]; char *ptr; printf("Enter string\n"); fgets(string,sizeof string,stdin); printf("string= \"%s\"\n",string); for(ptr=string;string!='\0';ptr++) { if(*ptr==' ') { ptr++; *ptr=*ptr-32; } } printf("The new string …

Member Avatar for IwalkAlone
0
1K
Member Avatar for satyanarayanam

Hi to one and all, this is satya, I few doubts in c those are, All are linux based, 1) How we can convert physical address to virtual adress and vice-versa,for this any linux system call. 2)How a float will store in binary format. 3)what the use of constant volataile.

Member Avatar for thekashyap
0
138
Member Avatar for rati

hi all, i am writing a program in which i am checking if a string contains another string(same what strstr does). i assumed intially that the string1 is a long string with spaces and string2 is a word(which might be or might not be present in string1) i have used …

Member Avatar for rati
0
129
Member Avatar for shmay

I must display the number of values that are above, equal to, and below the average, with "equal" being within a tolerance .01. [code=c] void RelToAve (double ave, int numRead, double *array) { int abo = 0, equ = 0, bel = 0, i; for (i = 0; i < …

Member Avatar for shmay
0
186
Member Avatar for EnderX

If I am somehow in error posting this, I apologize. However, I would hope that this is the best place to ask this question. I am dealing with a MSVC Compiler, version 1.52, on a system running Windows 98. I am using these rather antiquated pieces of equipment for a …

Member Avatar for EnderX
0
172
Member Avatar for mariocatch

Hey all: I've been trying to figure out how I would go about doing the following task. Basically, I have a folder with about 20,000 notepad files. My goal is to have one big word document, and append the contents of each notepad file to the word document. Each notepad …

Member Avatar for vijayan121
0
338
Member Avatar for fatboysudsy

Hi there, here is a copy of my server program. It worked this morning but has now decided to stop and i am after some help with it please. It stops half way through the authentication(), it must be before it does the stcmp function as i never get that …

Member Avatar for vijayan121
0
122
Member Avatar for sushanttambare

hi all, can anyone tell me that how can I change the functions in written for 16 bit processor in c language for 32 bit processor?

Member Avatar for Ancient Dragon
0
125
Member Avatar for cmsc_illiterate

I am so lost. I don't know what I'm doing. Can somebody help me? What I'm trying to do right now is just store ID numbers in an array to use them elsewhere in my program. I can't even do that right though. This is my first time taking computer …

Member Avatar for cmsc_illiterate
0
145
Member Avatar for jaeSun

im compiling a basic sorting algorithm that utilizies POSIX threads (pthreads) .... everything was compiling fine, until i put the thread implementation in .... all of a sudden, it gives me this: [code]-bash-2.05b$ gcc project4a.c -lpthreads project4a.c: In function `main': project4a.c:32: subscripted value is neither array nor pointer project4a.c:33: subscripted …

Member Avatar for ~s.o.s~
1
1K
Member Avatar for Lutzee
Member Avatar for Ancient Dragon
0
67
Member Avatar for donaldunca

This is my code: [code] #include<stdio.h> #include<conio.h> #include<alloc.h> #include<string.h> #include<dos.h> typedef struct node *nodeptr; typedef int infor; struct node { infor data; nodeptr left; nodeptr right; }; void insert(nodeptr p,nodeptr *T); void insert_node(infor e,nodeptr *T); void freenode(nodeptr p) { free(p); } void init(nodeptr *T) { *T=NULL; } nodeptr remove(nodeptr p) …

Member Avatar for Rashakil Fol
0
195
Member Avatar for brightmohan

Hello Geeks! I have tried real hard trying to figure out the solution for why the getchar() and fputs() arent working in my program. I have already wasted so much time thinking and debugging about it and here I am after registering wid DANIWEB for the first time. I will …

Member Avatar for brightmohan
0
422
Member Avatar for Mini_The_Great

Heres my current code: [code=cpp] #include <windows.h> #include "menu.h" int win_w=640; int win_h=480; const char* win_cap="VMake"; LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); static char gszClassName[] = "db"; static HINSTANCE ghInstance = NULL; int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { WNDCLASSEX WndClass; HWND hwnd; MSG Msg; ghInstance …

Member Avatar for Ancient Dragon
0
161
Member Avatar for bob1989

having problems on how to start doing this program as i missed the lectures and practical classes involving that.. so any help on how to start the program..do the table and plot the position of the projectile would be appreciated a lot..the file is attached . thanks a lot..

Member Avatar for Narue
0
136
Member Avatar for jenco

Hi, Is there someone out there who can help. I've written some simple functions, on the same page as the main code: [code] bool IsAVowel (char ch) { if(ch=='a')|| (ch=='e') || (ch=='i') || (ch=='o') || (ch==''u) { return true; } return false; } [/code] The compiler message gives 'linker error' …

Member Avatar for anw
0
90
Member Avatar for guy40az

I am trying to get the system date into 3 different varibles Month,Day, and Year but I cant figure out how to get the system date from the OS.

Member Avatar for guy40az
0
120
Member Avatar for iTaChi

Hello, I want to know where to start in software programming in C and C++, I know their basics, i can write programs of mathematical solutions, but, can you please help me, adjust to a higher level, like software programming, Thank You Guys!!

Member Avatar for Narue
0
161
Member Avatar for rapperhuj

Sir./mam.. Please Tell me Some GOod Instructions or method To install the applications in tHe TeRminal.. Thnks.. God Bless!! and.. currntly i've been install it on the [B][U]synaptic[/U][/B] and all wxwidgets and their libraries were installed when i run a sample wxwidgets program.. there are too many errors... :( ahmm …

Member Avatar for John A
0
189
Member Avatar for h_howee

I'm working on a breakout game and i want the paddle to follow the mouse It works from the left side of the client area to the far right of the screen but when i go over the left side of the client area, i expected it to return a …

Member Avatar for h_howee
0
190
Member Avatar for skn82

hi I'm working on TMS320F2812, a 32-bit DSP. I need to interface an a 8X1 LED with my Processor through the GPIO's of the processor. The GPIO's are connected to the LED's through a 74HC273 D-Latch. Can anyone give me pointers on how I must go about the same ?? …

0
54
Member Avatar for JC_McGeekster

How can I initialise different video modes... like SVGA 800x600 mode, EGA 640x350 mode, et cetera using interrupts... what exactly must I do? Could you demonstrate an example or two for EGA 640x350 and how I can then write to the memory? Thank you.

Member Avatar for Ancient Dragon
0
135
Member Avatar for cyberman111

at the end of this program we have to add the average of all the students* add and divide by 3* also put a ** next to student who have over 95 % both thses should be displayed at the end so ANYONE dare to try #include <stdio.h> #include <math.h> …

Member Avatar for cyberman111
0
180
Member Avatar for kained

right basicly i need to make a class. I have a file called book.cpp which needs to be modified and i have no brain at all today. help is so needed. [code] //book.cpp #include"bookheader.hpp" Book::Book(void) { title[0]='\0'; quantity = 0; deleted = false; } Book::Book(string tit) { strcpy(title, tit.c_str()); quantity …

Member Avatar for kained
0
117
Member Avatar for mutah.87

Hi, everybody, Before I ask for help I'd like to say thanks for all your help you've been really helpful. If anyone has the algorithm for the compaction technique used in fragmentation please post it in the Code snippets it would be very helpful to me please!!

Member Avatar for mutah.87
-1
108
Member Avatar for louis7370
Member Avatar for The Shadow

Basically I'm writing a program that reads in the number of words in a file and counts them based on the number of whitespaces, though I'm also considering using tokenising im just more familiar with whitespaces. It compares the ACII code of whitespace(I think) then adds one due to not …

Member Avatar for The Shadow
0
291
Member Avatar for louis7370
Member Avatar for sushanttambare

Hi all, I want to know the optimization code for following c source code: int i=0; i=p*q<<12; if(i>20) i=15; so here i should range from 0 to 15 but if i goes beyond 20 then it should remain as 15. Here I have hint as to use bitwise operator to …

Member Avatar for Infarction
0
143
Member Avatar for TAboy24

I want to write a function int Listofleaves (Tree tree,List* list) which recieve a binary tree -"tree"(the input) and a list pointer "list"(output)...the function supposed to return the trees leaves nodes(nodes with no children) from right to left as a linked list(!) in "list"...and also return at the end the …

Member Avatar for ~s.o.s~
0
120
Member Avatar for generalGOTCHA

Ok here is what I am trying to do now ! I have everything I need to take a list of computers and run the script on them. Now I need to grab the list of computers. So this will require grabbing an intranet website that contains all of our …

Member Avatar for generalGOTCHA
0
138
Member Avatar for generalGOTCHA

say I need to the below to store as a string variable. Set autoUpdateClient = CreateObject("Microsoft.Update.AutoUpdate",strComputer) notice teh quotations ? How can I store all of this as one string with the quotations included ? I need to store this so I can manipulate it, but those quotes keep throwing …

Member Avatar for generalGOTCHA
0
125
Member Avatar for PeeJay

I am suppose to create a program that counts the number of alphabets in string, words in a string and the lenght of the string and print them out! I have some code but I'm not sure how to get the string counted. Can anyone please offer some help? I …

Member Avatar for Nick Evan
0
331
Member Avatar for honeysmiles

[COLOR=#000000]Build a hash table using chaining as the collision resoultion technique. Insertions into the hash table will correspond to declarations of variables and values in a program, searches will be requests for the value of a variable. Some variables will be local and have a narrow scope while some variables …

Member Avatar for Ancient Dragon
0
189
Member Avatar for squinx22

is it possible that when I do this: g++ -c function.cpp the function.o will be generated in the other directory? say for example i have FUNC folder FUNC/function.cpp I want to generate a function.o that is outside the FUNC folder. thanx in advance....

Member Avatar for WolfPack
0
53
Member Avatar for satya.vijai

Hi, I have a text file which looks like this: 3Com 3C996B Gigabit Server NIC NEC PCI to USB Enhanced Host Controller (B1) .... .... Now, I need a 'C' Program which will copy each line into an array of strings or character array, such as char* Cards[10] . Could …

Member Avatar for WaltP
0
1K
Member Avatar for rapperhuj

i'm using a LINUX Ubuntu Operating System.. Sir/Maam. could u teach me how to install the wxWidgets. all its processess.. and how to compile the program using that application,, THnk U VeRy MuCh!!..:'(:pretty:

Member Avatar for Rashakil Fol
0
68
Member Avatar for jan1024188
Member Avatar for hellokitty

so i have to write a procedure that generates a number between two ranges. The upper Range is in ax and the loewr would be in bx. For example if ax contains 10 and bx has 10, then the procedure should generate the number between +10 and -10 i have …

Member Avatar for Salem
0
81
Member Avatar for Shark7

how can i install alloc.h in my computer?i need to compile a program and i don't know how to install it...can someone tell me? thank

Member Avatar for Salem
0
201
Member Avatar for addicted

hey, please i need help with the program tutrtle graphics, i have been trying to solve the problem but i have difficulty with turning right and left... i have been trying to solve that but oops...... i dont need a code... all i need is a hint, i will figure …

Member Avatar for John A
0
74

The End.