15,552 Topics

Member Avatar for
Member Avatar for Eddy Dean

Hello everyone, I 've been looking for a solution for this problem for some time now but I don't seem to figure it out. I want to download the source of a web page (the HTML source). I found several API function that have to do something with internet and …

Member Avatar for ~s.o.s~
0
915
Member Avatar for joshilay

if i implement same algorithm iteratively and also with recusrion ...than which of the above methods is better in implementing ..... and what are the advantages of recursion over iterative methods ??

Member Avatar for joshilay
0
149
Member Avatar for Latentsage

I understand most basics but have hit a wall when I come to graphics. I just want to make a 2d game. Any good tutorials out there?

Member Avatar for Dave Sinkula
0
153
Member Avatar for joshilay

can anyone tell me what are pointers to function ??? and how are they implemented ??

Member Avatar for Laiq Ahmed
0
112
Member Avatar for chechenkerz

Hi. I'm new here. i'm wondering if anyone of you guys have experienced designing an inventory administration program.. the attached pdf file describes the machine problem...please have a look at it... i'm currently doing the code but it's still on the 'menu' selection part. i've been told that i may …

Member Avatar for Dave Sinkula
0
82
Member Avatar for tefflox

this is all that is given: [code] char word[10]; addS("fasten", word); cout << endl << word << endl; // will output fastens [/code] for a program that must make a word plural (add an s) here is my code, which compiles but gives a peculiar "segmentation fault" that I haven't …

Member Avatar for Eddy Dean
0
146
Member Avatar for CrazyDieter

Hie, I'm trying to get a code in a DLL runned each time a program is launched. 1) I have put this value in the registery key : [code] HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Windows="D:\myDLL.dll" [/code] 2) [code] BOOL APIENTRY DllMain (HINSTANCE hInst /* Library instance handle. */ , DWORD reason /* Reason this …

Member Avatar for Eddy Dean
0
660
Member Avatar for comp_sci11

[code]#include<stdio.h> #include<string.h> #include<conio.h> #define SIZE 21 #define MAX 10 int id[MAX]; int idn[MAX]; char fn[MAX][SIZE]; char ln[MAX][SIZE]; char mi[MAX][SIZE]; int q1; int q2; int q3; float ave; int menu() { int i,s=0; while(s<1|| s>4) { clrscr(); gotoxy(5,5); printf("menu"); gotoxy(5,7); printf("1.insert"); gotoxy(5,9); printf("2.delete"); gotoxy(5,11); printf("3.Display all"); gotoxy(5,13); printf("4.Quit"); gotoxy(5,15); printf("Select(1-4): "); …

Member Avatar for comp_sci11
0
148
Member Avatar for ~s.o.s~

Hell "o" to all programmers out there. I was just fiddling around with pointers to [inlinecode] const [/inlinecode] when i wrote this snippet. [code] [COLOR=#008000]int main (void) { int* ptr = NULL; const int i = 20; ptr = (int*) &i; *ptr = 40; printf ("\nThe addr of the const …

Member Avatar for ~s.o.s~
0
160
Member Avatar for rxgmoral

Ask a problem,about template:) i write template class <<<<<<<<<class.h>>>>>>>> #pragma once template <class T> class Tem { public: T rxg(T a); }; <<<<<<<<<class.Cpp>>>>>>>> #include "stdafx.h" #include "class.h" template<class T>T Tem<T>::rxg(T a) { return a; } <<<<<<<<<<<Dialog.Cpp>>>>>>>>> #include "Class.h" ................................ Tem<int> moral; int a=moral.rxg(10); Error: Test.obj : error LNK2019: unresolved external …

Member Avatar for Dave Sinkula
0
260
Member Avatar for mitchelltab

he is what the home work should be. [COLOR=#000000][B][I]Programming Assignment [/I][/B][/COLOR] [CENTER][CENTER][COLOR=#000000][B]CS 320 - Homework Program #1 [/B][/COLOR] [COLOR=#000000][B][I]Due: Sunday, at the end of Week #2 [/I][/B][/COLOR][/CENTER][/CENTER] [COLOR=#000000]Write a program to compute a student’s tuition for one semester, according to the following specifications. [/COLOR] [COLOR=#000000]A student may be classified as …

Member Avatar for ~s.o.s~
0
157
Member Avatar for jobahed

Hi everyone, I'm *very* new to Linux development, and my question topic is probably pretty obscure, so I thought this was the best place to ask. I need to be able to programattically attach arbitrary binary data to an executable so that the program can access it. In Windows, I …

0
81
Member Avatar for aholliker

[LIST=1] [*]I need to write a program in c that prompts the user to enter the scores for four quizzes each worth a maximum of 100 points. Your program should compute the average score and display this average together with a letter grade based on the following scale:[/LIST]90 - 100 …

Member Avatar for ShawnCplus
0
99
Member Avatar for joshilay

can anyone explain me why the values are not swapped in the below code ?? main() { int *i,*j; *i=4000; *j=9000; f(i,j); printf(" %d %d",*i,*j); //output =4000 9000 } void f( int *a, int *b) { int *temp; temp=a; a=b; b=temp; }

Member Avatar for Salem
0
254
Member Avatar for sgriffiths

mvwprintw(main_screen, row, col, "%*.*s", REC_NUM_SIZE + 2, REC_NUM_SIZE + 2, ptr2); The above mvwprintw command is part of the unix curses library but can anyone explain what the "%*.*s" is doing, and is used just for the unix library curses? Regards

Member Avatar for Narue
0
85
Member Avatar for Tlhokomelo

Thank you for reading my thread,I am new to C and I have a big problem -Naturally.I cant seem to compile thise code: [code] # define EOF =-1 main() { int c,nl; // integers nl = 0; // assignment int ln to 0 value while ((c = getchar() !=EOF) // …

Member Avatar for Salem
0
101
Member Avatar for Mr Violent

Hey there, I'm having a problem with the WAVEFORMATEX format, and setting my primary buffer's format. My code is below: [code] void ErrorBox(string strMessage) { MessageBox(NULL, strMessage.c_str(), "Error", MB_OK | MB_ICONEXCLAMATION); return; } bool DSPlayer::SetPrimaryBuffer() { if (lpDS == NULL) { ErrorBox("Direct sound not initialized."); return false; } ZeroMemory(&dsBufferDesc, sizeof(DSBUFFERDESC)); …

0
61
Member Avatar for dilip.mathews

Hi all, What is the effficient way to check whether a single linked list is looped somewhere.The number of nodes in the list is not known. In that case traversal of SLL will go into an infinite loop. One solution I have is to store each address of node in …

Member Avatar for dilip.mathews
0
94
Member Avatar for complete

What is a good place to read and grasp the fundamentals of OOP? Does anyone have any suggestions online?

Member Avatar for Dave Sinkula
0
53
Member Avatar for Sealteam56

[COLOR=#555555][COLOR=#000000]Hello all,[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]I had posted earlier for help, but the post was so deep in an older thread do not think anyone will find it.[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]so here goes,[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]I am in a class to learn C and was tasked with writing a program that …

Member Avatar for Sealteam56
0
128
Member Avatar for kraze_101

i have an assignment at school where we have to get a string entered by a user and then the program is supposed to encrypt it by adding 13 to A-M and -13 from M-Z so that if i inputted A B C i would get N O P. Basically …

Member Avatar for ~s.o.s~
0
191
Member Avatar for aeinstein

Hi All, I've converted the [URL="http://www.daniweb.com/techtalkforums/thread49412.html"]pseudocode from this thread[/URL] into a flowchart, and I'd greatly appreciate if anyone can point out any errors and/or inefficiences in the represented coding. as posted in the above referenced thread, the flowchart represents a solution for a chapter exercise, as follows: "The problem states …

Member Avatar for iamthwee
0
358
Member Avatar for -jOHn BeneDict-

[code]#include<stdio.h> #include<conio.h> main() { float x,y,z; clrscr(); printf("\nThis program calculate if you are Underweight,Healthy or Overweight"); printf("\n\n Enter your weight in kilograms:"); scanf("%f",&x); printf("\n\n Enter your weight in meters:"); scanf("%f",&y); z=((y*y)/x); if(z<20){ printf(" the Quetelet-index is: %f",z); printf("\n\n\tUnderweight"); } else{ printf("\n the quetelet-index is : %f",z); printf("\n\n\tOverweight"); } getch(); return …

Member Avatar for Zababa
0
133
Member Avatar for chillharsh

as the title suggest i like to swap two numbers but the thing is that i should not use 3rd variable that is doing the whole stuff only with 2 variables so plz any body help me out

Member Avatar for sukhi
0
476
Member Avatar for Laiq Ahmed

I've gone through several books they explain Upcasting as Base class pointer pointing to Drived class Object this definition is correct. Downcasting: [quote]Drived class pointer pointing to base class object..[/quote] i got a bit confused.....not having crystal clear image in my mind..... if the above definition is correct... whats wrong …

Member Avatar for Dave Sinkula
0
178
Member Avatar for joydeep1

My C program for making a database which stores data and from which data can be retrieved is stated later.But I am not able to write the function for editing the stored items correctly.Please suggest a method.Also suggest :[B]1.mode in which file is to be opened in case 2 of …

Member Avatar for ~s.o.s~
0
107
Member Avatar for jatinder kumar

double new_amount; printf("enter new_amount:"); scanf("%lf",&new_amount); printf("Amount entered is%lf",new_amount);

Member Avatar for server_crash
0
90
Member Avatar for sgriffiths

Hello if i have a file residing on a unix machine, how do i get the stats of the file, ie date stamp of file, and username of file. Best Regards

Member Avatar for Rashakil Fol
0
82
Member Avatar for chillharsh

i kow c up to a good level but i have question for which i am anable to find solution that is to find greatest of 2 numbers in 'c' without using 'if' condition can any one help me out

Member Avatar for dilip.mathews
0
87
Member Avatar for amitkumar2982

Hey Guys, Please help me. I have been trying to code this from the past 2 years. I wish to code the Flat real mode by switching to Protected mode and then switch back to the real mode. I want to do this on a P4 1.8GHz Machine with a …

Member Avatar for Dave Sinkula
0
232

The End.