199,114 Archived Topics
Remove Filter ![]() | |
Hi friends I am a beginer in C. I want to make a simple program in which there are two balls on the screen. These two balls will Strike when the user presses any key ? Please help me with full code snippets. | |
If anyone could help this humble learner I would deeply appreciate it, Im trying to put this whole function, the couts in the middle but gotoxy() on a console application doesnt seem to work, im on windows vista and using codeblocks the latest version, Maybe I have a library wrong … | |
Hi! I am using Dev-C++ and when I am trying to compile a program in it, it is showing many errors. All the settings seems to be right. Can I compile a program including header files like conio.h and iostream.h and using namespace std in Dev-C++? If not please suggest … | |
A little program I made to try and remeber C++, first program I've written in C++ in about a year. Tested and working under windows 7 64 bit, run via command line. If you have any improvements or ideas please leave a comment. Cheers K0ns3rv | |
A couple weeks ago, Microsoft Research made available a project that had been under development for a while called Debugger Canvas. This is a visual tool for debugging applications where your functions appear as bubbles, similar to a database diagram or UML diagram. It only works on Visual Studio 2010 … | |
I have a query which generates a soccer standings table and although it works fine there I am trying to implement a couple of variations on it but everything I have tried has failed. I have searched and asked many times and for both problems and it seems as though … | |
Hello :) well... i need to do a simple thing (i guess) but it seems that this is not so simple due to all the complicating examples on the web... ok. i jast wanna to create a copy of an object! but i want the copy to be seperate from … | |
One more application of the Python Image Library (PIL). This short code creates thumbnails from all JPEG files in the current folder. The thumbnail image file is prefixed with a T_ and saved to the same directory. The program checks for existing files with this prefix, so we don't create … | |
Hello, I don't know anything about C# and want to learn it. If anyone could please tell me the quickest way to learn C# in few days, I'll really appreciate. Thanks and Regards. | |
Hi i m working with ASP.Net, C# i need to have an example of trigger how to call it from C#, and how to execute??? | |
Trying to code a shell script for a program testing. i need to check for the existence of particular word in outfile and then proceed further, which i am not able to do. I have wrote the following code. Please tell the corrections.. The control does not pass to the … | |
Just a heads-up guys. I had JRE update 26 pushed onto client machines yesterday and it broke an important client-server app. This point release changes the serialVersionUID for ImageIcon. The app in question sends images from the server to the cients via a simple writeObject/readObject, which fails at the client … | |
Hey all, I have written a small script to download certain files from an ftp site. I use the wget function.I'd like to get a progress-bar with zenity to show the advancement of the wget function. Can anyone suggest a solution? Thanx, Shreerang Patwardhan. | |
The user enters the following : " x+sin(x)-pow(x,2)+5log(x)" How can I make parsing for a statement like that . | |
Hey Guys, I have an "events" table in my DB and a "default_events" table also. Every day I display one event. I check to see if any rows in the "events" table match todays date and then display that event, if no events match by date, I check the "default_events" … | |
Hi All, Can you please help me to understand why the following code is behaving this way? I think both outputs should be 1 ( 1 means const T), but its not!! [CODE] template <typename T> struct IsConst{ enum {isConst = 0}; }; template <typename T> struct IsConst<const T>{ enum … | |
hey there, I have this java 3D home assignment I need help with. I would greatly appreciate it if someone could direct me to a solution. I need to build create a 3 D digital clock and add some key navigation to it. I managed to add the key navigation … | |
Hello all. Even though my javascript/ajax knowledge is very low, I would like to be able to do the following, for which I ask you for help: I have a python script that runs from php with exec command. It takes about 5-10 seconds to complete. While the python script … | |
Back around 2004 and 2005, I had embarked on a web project that included the ability for my users to draw on a web page—or at least, that was one of the requirements. At the time, most of my web development had been server-side, with very little JavaScript. Long story … | |
i have a problem related to the c language. [CODE]void main() { int marks; clrscr(); printf("enter the marks of the student:"); scanf("%d",marks); if(marks>=35) { printf("student is pass:"); } else { printf("student is fail:"); } getch(); }[/CODE] but when i run this program, there is no error in the program but … | |
Hello all, a lot of times I see C# code written without the use of #region and #endregion, I'm just wondering if there is any reason not to use it, and what are your thoughts on using it. I think it's an amazing feature that lets you clearly identify groups … | |
- Prove that every subtree of a binary search tree is a binary search tree. | |
I am trying to write a program in c++. I have a file that contains thousands of numeric entries sorted into four columns. The structure of the data looks something like the following: 3 0.2 0.5 6.2 4 0.1 0.6 6.2 //Track 1 2 0.8 0.5 0.6 2 0.6 0.5 … | |
help me please :sad: if you can find out what's wrong w/ my program, please do tell. thanx very much! #include <iostream> using namespace std; void get_start(int start_hour, int start_min) //Precondition: User is ready to enter the values for the hour and the minute. //Postcondition: Values in hours (24-hour notation) … | |
Hi, When I run query below I get duplicated records. Instead of 2, I get 4 records. I guess there is a problem with JOIN because when I remove [B]image JOIN[/B], it works fine but without [B]image JOIN[/B], the query is helpless for me. Please help, thanks in advance [B]QUERY[/B] … | |
[ATTACH]20944[/ATTACH] pressing save button i want to store/save all input data in one storage. attached file is the sample form i made thanks | |
According to the Python 2.7 manual this construction of the with statement should work: [code]text = "aim low and reach it" fname = "test7.txt" with open(fname, 'w') as foutp, open(fname, 'r') as finp: # write text to file foutp.write(text) # read text from file mytext = finp.read() print("to file --> … | |
There are occasionally posts asking how to remove white space from string of characters (either a C-style `char` array, or a C++ `std::string`). Using functions in standard C++ libraries, this is quite an easy thing to do: #include <string> #include <algorithm> #include <iostream> #include <cctype> int main() { /* Make … | |
Hello :D I need a good 3d game engine to crate fps games, that can be online. I dont want to do scriptiong but i want to desing evry thing my self. Do you know a good engine ? | |
All, I have been trying to debug this problem all weekend but I haven't been able to get any closer to the solution... I have just upgraded Mysql to 5.1 from 4.1 on a Red Hat 4 box. Everything is fine. I can connect to the database using the shell, … | |
hello i have a problem in reading lines from a file.i use the following code and the printf returns null. [CODE] char* x; MAXLINE =100; char line[MAXLINE]; FILE *source; source = fopen("data.txt","r"); if (source == NULL){ printf("ERROR!!!file not found!");} while(!feof(source)){ x = fgets(line,MAXLINE,source); printf("%s\n",x);} fclose(source); [/CODE] | |
![]() | [CODE]//plz run .an accrued .Processor fault error.plz help me /* Bank taransection Program.cpp : Defines the entry point for the console application. */ #include "stdafx.h" #include<iostream> #include<string.h> #include<string> #include<process.h> #include<conio.h> using namespace std; class details { public: char *name; int age; char branch[50]; char city[40]; void getdetails() { name=new char[20]; … ![]() |
anybody tell me that java is object oriented or not . some people says that java is pure object oriented or some says it is not object oriented. | |
I am wondering whether it would be useful to close [URL="http://www.daniweb.com/software-development/cpp/threads/70096"]this [/URL]thread an start a new one? This huge list, spanning 6 years and I don't know how many books cannot be useful, anymore? To be on-topic: for beginners, I'd suggest to just google "programming c++ tutorial", you'll get many … | |
OK, the eventual goal of my project is a kind of word insert/delete/replace. You read a file... "The quick brown fox jumps over the lazy dog." and you can delete all instances of "fox", replace "fox" with "cat", insert "giraffe" wherever you want, etc. Word processing stuff. So I figured … | |
Hello, I developed a website in which I added a master page,header and footer. In the header, I added a code but its not working fine because the pages that I am adding are in another folders as shown below... [CODE]<li><a href="Home.aspx">Home</a></li> <li><a href="KMApps/KMAppsHome.aspx">Applications</a></li> [/CODE] As you can see that … | |
Using the Load and Unload events of the Forms add these subs to handle a simple fade in and out effect. This is not limited to just one form. The subroutine definition can be added to any global class allowing the use on any form or sub-form. This is the … | |
Little clean up of vegaseat's code for generating pi decimals. Added number of decimals desired and string type return for easy use with ''.join() | |
Hi, I`ve just started working on my diploma thesis project which is "building a door access control system". Mainly it will work like this: there will be a java server, a database and clients(which will simulate the access cards at the doors) Since i don`t have the possibility to use … | |
I just started a new small python project on google code which goal is to easily create clickable graphs on a GKT+ goocanvas. The initial idea comes from this code snippet [url]http://www.daniweb.com/software-development/python/code/323792[/url] . I want to do about the same, but instead of simply drawing the graph, I want to … | |
[B]Hi, I would like to implement a selection tool that is used for images. It selects a part of an image to enable the user for any further usage. So, what is the simplest way to do such a thing?! Any help will be welcome :)[/B] | |
You’ve been given an assorted set of gears. Each gear has a different number of teeth – the notches on a gear that interlock with notches on another gear to transmit speed. You have a couple of belts one coupled to an input and the other for the output. You … | |
let's say we have a unsigned char pointer with allocated memory of 1 million bytes. Could you give a little code sample which shows how to eliminate first 1000 bytes? the little similar situation is like below: unsigned char array: 12,34,67,99,215,250,123,67 i want to make it: 215,250,123,67 I want to … | |
Here is function to count the number of elementary events for sum of multiple throws of n-faced dice. | |
Dear all I am totally new to visual C#. Whilst I can sort of manage console apps, I easily get lost when it comes to coding forms. I am currently making an "app launcher" which reads a text file line by line. Each line is a path to a useful … | |
This code determines if datetime object represent first workday of month, but it does not consider the special days like New Year (this year weekend but last year Friday). Reaction to Basic efforts in: [url]http://www.daniweb.com/software-development/legacy-and-other-languages/threads/362098[/url] There algorithm idea given by [URL="http://www.daniweb.com/members/jonkiparsky/775324"]jon.kiparsky[/URL] based docstring says 'workday' when it should be 'weekday': … | |
hi guys.. I got a work need to be done which being asked by one of my client. My prolem is that he want to make a video sharing site like Youtube but with the certain features. What did he want is that, any user will be only allowed to … | |
The script is used in my newest chrome app [url]https://chrome.google.com/webstore/developer/detail/bomkcodcgmbjjhogdjophonfhgpegoni/[/url] Site: [url]http://codestrix.co.cc/pixels/[/url] The above script is a good to get stated with HTML5 canvas. Much of it is named so as to be self explanatory but any doubts you are more than welcome to post it here. | |
hi, im working on a small project on access 2007, i have a form that contains multiple textboxes ,and a save button. these textboxes are related to tables, so what i need is a code for that button to save the records in the textboxes in the tables and then … | |
Hi Perl Guru's I have a requirement where i need to find out two patterns and second pattern is dependent on first pattern (i.e., if file1 have pattern1 the serach pattern2 in file1). Let me explain in detail. Forexample: I have last three days job logs (Infact logs folder have … |
The End.