3,892 Posted Topics

Member Avatar for wandie

Since the data is coming from a raw source (text file, database, user input...) wouldn't it be nice if we didn't assume that the "[" will always be the first character of "txt" and "]" is not always the last character of "txt". Given that the data can also be …

Member Avatar for ghostdog74
0
161
Member Avatar for Riya_Sen

You can write the function something along the lines of: [code=c] double average( int my_sum, int my_count ) { // write your code here } int main( void ) { // all other declarations double avg = 0.0 ; // write the code which accepts scores avg = average( sum, …

Member Avatar for ~s.o.s~
0
99
Member Avatar for Boldgamer

I don't think using there is anything wrong with using [INLINECODE]continue[/INLINECODE] and [INLINECODE]break[/INLINECODE] keywords -- though there is a lot of controversy surrounding [INLINECODE]goto[/INLINECODE] statement. (which is extremely biased since even [INLINECODE]goto[/INLINECODE] is good if used properly). Well the only thing I can think against [INLINECODE]break[/INLINECODE], [INLINECODE]continue[/INLINECODE] or [INLINECODE]goto[/INLINECODE] is …

Member Avatar for Dave Sinkula
0
123
Member Avatar for lotsofsloths

[quote=Ravalon;305984]Me neither, but I still end up doing it. ;)[/quote] Everything in fair in Love, War and a programming job....:D

Member Avatar for jwenting
0
115
Member Avatar for HS20064972
Member Avatar for ~s.o.s~
0
140
Member Avatar for kharri5

Download the executable plus the packed source code of the tutorial from [URL="http://nehe.gamedev.net/data/lessons/vc/lesson35.zip"]here[/URL] and see if the executable runs. If yes then the problem is not with codecs but with your code. Try compiling and running the code which comes in the zip file and see if it works. If …

Member Avatar for John A
0
337
Member Avatar for sosina abraha

Types of programming paradigms (note I am not saying types of Programming languages): [LIST] [*]Imperative - C, Ada, Pascal, Modula 2 [*]Functional - LISP, FP [*]Aggregate - SQL, Mathematica [*]Concurrent - SR, Lynx [*]Dataflow language - Val, Sisal, Post [*]Declarative - Prolog, Godel [*]Object Oriented - C++, Java, C#[/LIST][QUOTE=indienick]Functional languages …

Member Avatar for Infarction
0
271
Member Avatar for lotsofsloths

It is because you are reseeding the random number generator and in the attempt restarting it. You need to seed the random number generator only once for a single run. Remove the second instance of `srand( ( unsigned ) time( 0 ) )` and you should be fine. And btw, …

Member Avatar for ~s.o.s~
0
82
Member Avatar for Riya_Sen

You need to tell us exactly the errors you are getting and where. As far as your first program is considered, you need to initialize the variables at the top of your program, since without that [INLINECODE]while(score<= 100 && score >=0)[/INLINECODE] becomes meaningless. [INLINECODE]sum= 0+score[/INLINECODE] What is this statement supposed …

Member Avatar for ~s.o.s~
0
92
Member Avatar for Riff227

Welcome to Daniweb my friend.. :D And it would be better if you post your doubts in the Windows section to get the maximum help.

Member Avatar for happygeek
0
179
Member Avatar for crsuccess

Hello there friend, welcome to Daniweb.. :D And yeah Mr. Stymiee would be only glad to help you out... ;)

Member Avatar for jbennet
0
44
Member Avatar for JoBe

I don't know Mr. Jobe if you already know this but there is a book which presents the solutions to the problems posed in C++ Programming Language, you can get it [URL="http://www.amazon.com/C++-Solutions-Companion-Programming-Language/dp/0201309653"]here[/URL]. And if you think the book is too expensive or not worth it you can always download the …

Member Avatar for ~s.o.s~
0
191
Member Avatar for jev-k

Hey there my Kitesurfing friend, welcome to Daniweb.. :D Come to think of it, even Daniweb is very windy... ;)

Member Avatar for happygeek
0
9
Member Avatar for Nick Evan

Yeah I guess there is some sort of problem with the notification system. I have suscribed for weekly notification but I receive instant notification always, which ends up cluttering my mailbox. Anyone else having the same problems like me and Niek... ?

Member Avatar for jbennet
0
237
Member Avatar for lotsofsloths

[URL]http://www.codeblocks.org/downloads.shtml[/URL] [URL]http://www.bloodshed.net/devcpp.html[/URL]

Member Avatar for lotsofsloths
0
172
Member Avatar for Mushy-pea

I really am surprised that racism still is rampant in UK and such things are allowed to go through...The lawyer of the accused says that she would never make racist comments even after the masses have heard her say things like "Paki", "dog" etc.... This is something for that girl …

Member Avatar for jbennet
0
208
Member Avatar for amishosh

[url]http://www.daniweb.com/techtalkforums/thread66332.html[/url] [url]http://www.brackeen.com/home/vga/source/bc31/bitmap.c.html[/url] Though you need to have a firm understanding of some core concepts though I wouldn't call it advanced as such...

Member Avatar for ~s.o.s~
0
171
Member Avatar for batakkeren

Create a class with private members like instances of ADODB.Connection, ADODB.Recordset etc. and with functions which open the Connection, functions which open, manipuate and close the Recordset etc. Something like: [code=vb] Option Explicit Private rs As New ADODB.Recordset Private conn As New ADODB.Connection Public Property Let Connection(ByVal vData As ADODB.Connection) …

Member Avatar for batakkeren
0
202
Member Avatar for amishosh

[QUOTE=Mel]Yes he could, but that's not what he wants to do. And it would look terrible and be awfuly sloooooow if there were a lot of graphics on the screen such as you might see in games.[/QUOTE]But thats what happens in real games -- the whole screen in cleared and …

Member Avatar for John A
0
90
Member Avatar for NewVBguy

Import a database file into Access Database.. ? Can you clarify by giving examples.. ?

Member Avatar for NewVBguy
0
77
Member Avatar for exinrex

Hey there Reden, welcome to Daniweb. :D Hope you get to learn new things here...

Member Avatar for primeryder
0
39
Member Avatar for Sandaseeli

It would be better if you post a concrete code sample to get help. And btw if anyways your combo box is picking data from a column of a table which always has distinct values, where does the duplication come in...?

Member Avatar for PirateTUX
0
637
Member Avatar for seffy

Hello there Sefffy, welcome to Daniweb :D And yeah, its a good thing to meet a Dr. Who addict.... ;)

Member Avatar for seffy
0
128
Member Avatar for dstat

...And to provide the final touch about the validation part configure your table column as follow: [quote]At the time of field creation in design view... [B]Field Name:[/B] hours [B]Data Type: [/B]Number And now the field general properties (at the bottom, in design view) [B]Field Size: [/B]Decimal [B]Scale: [/B]2 [B]Decimal Places: …

Member Avatar for ~s.o.s~
0
232
Member Avatar for pasanewa

You can always create a global variable which is placed in a module to maintain the total and keep on updating it when you move from one page to another.

Member Avatar for ~s.o.s~
0
33
Member Avatar for caltiger

[quote=caltiger;302063]Hi, i would like to know if there r any native functions in C with which i can detect a keypress ( independent of the platform ). The same ofr mouse functions as well.. Any function to detect a mouse click? If not, how to detect a key press... ? …

Member Avatar for apurv
0
660
Member Avatar for james2002
Member Avatar for kanakoba84

Hey there Tokyo Boy, welcome to Daniweb... :D And yeah we are in desperate need of some real good geeks ;)

Member Avatar for mastermind_SEO
0
51
Member Avatar for aquavita

Hey there Chris, welcome to Daniweb :D Hope you get 100% success on building your first custom PC ;)

Member Avatar for mastermind_SEO
0
107
Member Avatar for jvanark

Hey there buddy, welcome to Daniweb. :D Its good to hear that you have decided to share your hard earned knowledge with other members here. ;)

Member Avatar for mastermind_SEO
0
56
Member Avatar for dstat

Hello there Dan, welcome to Daniweb. :D Hope you find the answer to all your questions here.

Member Avatar for mastermind_SEO
0
50
Member Avatar for professionalnet

In the form properties of your MDI form, set the "window state" property to "2 - Maximized" and you would get a full screen application.

Member Avatar for professionalnet
0
312
Member Avatar for Jishnu

Care to elaborate what you are trying to convey here by posting your code or with an example.... Or is it that you have declared all the global data or variables in one file and want your progams to access those ?

Member Avatar for jwenting
0
289
Member Avatar for Boldgamer

[quote=aniseed;302855][I]Write a program which will print all the pairs of prime numbers whose sum equals the number entered by the user.[/I][/quote] Wouldn't recommend this one to a complete beginner who is still figuring out how loops work...But still a good problem nonetheless. I was thinking of starting a thread which …

Member Avatar for John A
0
253
Member Avatar for Clockwork

Some points to be noted: 1. Don't use the old style of header inclusion ( [INLINECODE]#include <iostream.h>[/INLINECODE] ). Instead use [INLINECODE]#include <iostream>[/INLINECODE] followed by [INLINECODE]using namespace std ;[/INLINECODE]. The latest C++ standard has the concept of namespaces and aall the standard C++ functions in current compiler implementations are enclosed in …

Member Avatar for John A
0
110
Member Avatar for PirateTUX

I don't know what kind of expertise you hold in the programming languages you would be using (C++, Python ?) or in OpenGL or DirectX but still I wish all the best to you. Hope this project doesn't come out to be only a pipe dream due to lack of …

Member Avatar for PirateTUX
0
154
Member Avatar for fdguy3768

Create an interface which will allow the user to enter the data which has to be dumped into the database. Create a table suiting your needs. Accept data from the user through the form, open a recordset to the table, dump the data accepted by the user in the table …

Member Avatar for ~s.o.s~
0
79
Member Avatar for Aun Muhammad

Hey there buddy, welcome to Daniweb :D Look around and you will get all the assistance you want. ;)

Member Avatar for happygeek
0
28
Member Avatar for jtb19nh

VB as such is pretty easy language to learn for a beginner. So don't worry, you can easily learn VB using some good books and reading forum threads for the problems people have previously faced. No math as such is required for coding VB applications, but then again it depends …

Member Avatar for zaf
0
240
Member Avatar for VIDHYAPREM

[quote=VIDHYAPREM;302949]i think i have to do change in directories (source,output,.....)[/quote] Yep, that seems to be logical thing to do next since it says "[I]stdio.h not found' [/I]. Check the make sure the path to your header files are properly set in the Turbo C configuration options.

Member Avatar for ~s.o.s~
0
94
Member Avatar for dukiduki

Hello there my friend. I really respect your enthusiasm but you must go a bit slow. Talking about DirectX, graphics and all that when you are just learning C / C++ is too much. Please learn to crawl before you start running. Get your concepts about the things which are …

Member Avatar for dwks
0
220
Member Avatar for Lynqu2

[quote=Lynqu2;293258] I really so badly want to start C and/or C++. Anyone aware of ways in which I can go about beginning, and which should I start out with bearing in mind I am doing this on my own, Any suggestions? And thanks, I'm looking forward to really having fun …

Member Avatar for Lynqu2
0
455
Member Avatar for Nick Evan
Member Avatar for JJ___
0
114
Member Avatar for khoomy

[quote=aniseed;302862]The whole point is that there is *[B]no[/B]* point in resurrecting old threads. If nobody felt like asking or posting that since September 2004, you are posting only for the sake of posting. If you want to post, there are several threads where you could be helpful. [/quote] Not exactly …

Member Avatar for ~s.o.s~
0
233
Member Avatar for Wraithan

Hey there Christopher aka Wraith, welcome to Daniweb :D Ah finally a Bleach fan on Daniweb.....;)

Member Avatar for happygeek
0
67
Member Avatar for JohnKelly

VB deftly handles the memory mangagement on part of the programmer, you need not worry about it. The garbage collector of VB spots the variables which have gone out of scope or are not referenced anywhere in the program and takes care of them accordingly. And btw, as far as …

Member Avatar for ~s.o.s~
0
83
Member Avatar for MGadAllah

Hey there Mohamed, the one belonging to the land of Pyramids, welcome to Daniweb...:D And btw as far as your question about Forum development is considered, you can ask your questions [URL="http://www.daniweb.com/techtalkforums/forum31.html"]here.[/URL]

Member Avatar for happygeek
0
61
Member Avatar for wheelz

Actually too much documentation, I would say that a complete overkill. You just need to provide a short abstract on what your algorithm does rather than clubbing the program to death by explaining each and every statement. I don't know if you have reflected on this but almost 50% of …

Member Avatar for Ravalon
0
131
Member Avatar for vegaseat

[quote=joeprogrammer;302791]Or am I missing something here...[/quote] Yes, I guess so... The topic under consideration is that since the forum doesn't allow any compression format other than .zip , the users can upload the file of whichever format they want just by suffixing the .zip at the end. Hence the test …

Member Avatar for KevinADC
0
55
Member Avatar for dmmckelv

[quote=Lerner;302653]NEVER EVER write a full program (or at least nothing more than a simple "Hello World" program) without checking both compile and runtime errors along the way. [/quote] Bingo, good advice. Writing a code with 100+ LOC without checking for compile time errors and bugs is suicidal. The problem worsens …

Member Avatar for ~s.o.s~
0
103

The End.