3,892 Posted Topics
Re: 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 … | |
Re: 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, … | |
Re: 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 … | |
Re: [quote=Ravalon;305984]Me neither, but I still end up doing it. ;)[/quote] Everything in fair in Love, War and a programming job....:D | |
Re: With the only problem being the wrong prototype of main....:D | |
Re: 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 … | |
Re: 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 … | |
Re: 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, … | |
Re: 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 … | |
Re: 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. | |
Re: Hello there friend, welcome to Daniweb.. :D And yeah Mr. Stymiee would be only glad to help you out... ;) | |
Re: 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 … | |
Re: Hey there my Kitesurfing friend, welcome to Daniweb.. :D Come to think of it, even Daniweb is very windy... ;) | |
Re: 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... ? | |
Re: [URL]http://www.codeblocks.org/downloads.shtml[/URL] [URL]http://www.bloodshed.net/devcpp.html[/URL] | |
Re: 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 … | |
Re: [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... | |
Re: 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) … | |
Re: [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 … | |
Re: Import a database file into Access Database.. ? Can you clarify by giving examples.. ? | |
Re: Hey there Reden, welcome to Daniweb. :D Hope you get to learn new things here... | |
Re: 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...? | |
Re: Hello there Sefffy, welcome to Daniweb :D And yeah, its a good thing to meet a Dr. Who addict.... ;) | |
Re: ...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: … | |
Re: 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. | |
Re: [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... ? … | |
Re: Hey there Tokyo Boy, welcome to Daniweb... :D And yeah we are in desperate need of some real good geeks ;) | |
Re: Hey there Chris, welcome to Daniweb :D Hope you get 100% success on building your first custom PC ;) | |
Re: 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. ;) | |
Re: Hello there Dan, welcome to Daniweb. :D Hope you find the answer to all your questions here. | |
Re: In the form properties of your MDI form, set the "window state" property to "2 - Maximized" and you would get a full screen application. | |
Re: 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 ? | |
Re: [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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: Hey there buddy, welcome to Daniweb :D Look around and you will get all the assistance you want. ;) | |
Re: 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 … | |
Re: [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. | |
Re: 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 … | |
Re: [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 … | |
Re: Nothing here, all smooth sailing, though it was exceptionally cold yesterday... | |
Re: [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 … | |
Re: Hey there Christopher aka Wraith, welcome to Daniweb :D Ah finally a Bleach fan on Daniweb.....;) | |
Re: 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 … | |
Re: 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] | |
Re: 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 … | |
Re: [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 … | |
![]() | Re: [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 … |
The End.