199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for surender_kumar

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.

Member Avatar for pseudorandom21
1
316
Member Avatar for rayden150

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 …

Member Avatar for Frederick2
1
488
Member Avatar for confused_one

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 …

Member Avatar for Stefano Mtangoo
1
4K
Member Avatar for K0ns3rv

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

Member Avatar for mrnutty
1
323
Member Avatar for jeffcogswell

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 …

Member Avatar for pseudorandom21
1
369
Member Avatar for MargateSteve

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 …

Member Avatar for urtrivedi
1
318
Member Avatar for galhajaj

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 …

Member Avatar for galhajaj
1
117
Member Avatar for vegaseat

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 …

Member Avatar for thenate
1
2K
Member Avatar for KushMishra

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.

Member Avatar for CsharpChico
1
163
Member Avatar for u4umang2001

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???

Member Avatar for matricol
1
194
Member Avatar for Shruti4444

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 …

Member Avatar for IIM
1
134
Member Avatar for JamesCherrill

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 …

Member Avatar for Don Corley
1
572
Member Avatar for Shreerang

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.

Member Avatar for Kiwicam
1
958
Member Avatar for super.mina

The user enters the following : " x+sin(x)-pow(x,2)+5log(x)" How can I make parsing for a statement like that .

Member Avatar for WaltP
1
131
Member Avatar for drewpark88

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" …

Member Avatar for drewpark88
1
118
Member Avatar for learningcpp

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 …

Member Avatar for learningcpp
1
3K
Member Avatar for bibiki

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 …

1
103
Member Avatar for nunos

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 …

Member Avatar for twiss
1
1K
Member Avatar for jeffcogswell

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 …

Member Avatar for arnavbhatkar
1
940
Member Avatar for sharma89bunty

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 …

Member Avatar for mtatadotcom
1
86
Member Avatar for pseudorandom21

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 …

Member Avatar for ChrisHunter
1
177
Member Avatar for ifiok.idiang
Member Avatar for dilequeno

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 …

Member Avatar for Ancient Dragon
1
322
Member Avatar for curly3top

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) …

Member Avatar for pseudorandom21
1
227
Member Avatar for veledrom

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] …

Member Avatar for veledrom
1
199
Member Avatar for samreb90

[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

Member Avatar for abu taher
1
90
Member Avatar for HiHe

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 --> …

Member Avatar for vegaseat
1
170
Member Avatar for ravenous

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 …

Member Avatar for Narue
1
2K
Member Avatar for eoop.org

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 ?

Member Avatar for jamesl22
1
223
Member Avatar for nonshatter

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, …

Member Avatar for nonshatter
1
732
Member Avatar for vyrte

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]

Member Avatar for Ancient Dragon
1
96
Member Avatar for HASHMI007

[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]; …

Member Avatar for HASHMI007
1
111
Member Avatar for AnkitKumar

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.

Member Avatar for jwenting
1
326
Member Avatar for phoneybone

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 …

Member Avatar for phoneybone
1
111
Member Avatar for VernonDozier

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 …

Member Avatar for Sky Diploma
1
234
Member Avatar for KushMishra

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 …

Member Avatar for KushMishra
1
173
Member Avatar for zinnqu

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 …

Member Avatar for CsharpChico
1
2K
Member Avatar for TrustyTony

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()

Member Avatar for TrustyTony
1
618
Member Avatar for alabn22

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 …

Member Avatar for alabn22
1
130
Member Avatar for Gribouillis

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 …

Member Avatar for Gribouillis
1
170
Member Avatar for fkhaeer

[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]

Member Avatar for JerryShaw
1
192
Member Avatar for kirtics344

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 …

Member Avatar for maqsood8797
1
167
Member Avatar for asilter

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 …

Member Avatar for IcantC
1
180
Member Avatar for TrustyTony
Member Avatar for TrustyTony
1
269
Member Avatar for mklein

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 …

Member Avatar for mklein
1
126
Member Avatar for TrustyTony

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': …

Member Avatar for TrustyTony
1
4K
Member Avatar for samsons17

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 …

Member Avatar for hellojohnatan
1
196
Member Avatar for anilashanbhag

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.

Member Avatar for anilashanbhag
1
662
Member Avatar for deadelgabar

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 …

Member Avatar for deadelgabar
1
222
Member Avatar for realoneomer

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 …

Member Avatar for erezschatz
1
159

The End.