132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vegaseat

This is an application of the Python Image Library (PIL) and shows you how simple it is to do pixel math on an image.

Software Development image python
Member Avatar for vegaseat
2
9K
Member Avatar for vegaseat

This code gets the local time from your computer, formats the date and the time and displays the result. Does not include the bavarian time measurement of how many steins you have finished since you got up in the morning.

Software Development c++ display
2
180
Member Avatar for vegaseat

You can have fun and learn something too. Not too much fun though! Here we take a lighthearted look at C++ string, various ways to assign a string and substring, spell forward and reverse, find characters and substrings, append, insert, replace, remove characters, separate a sentence into words and more.

Software Development c++
2
199
Member Avatar for vegaseat

Let's say you worked in the White House and had to keep two lists, one for the friends and one for the enemies. The boss came to you and said: "The Almighty talked to me out of a burning bush last night, telling me that I shall make my enemies …

Software Development c++
2
192
Member Avatar for vegaseat

Using the C++ Standard Template Libraries (STL) can be easy, once you know how to do it. No need to putz around with doubly linked lists anymore! Here is code showing how a STL list allows you to add, insert, remove, sort, splice, merge, display, and clean-out-duplicate strings.

Software Development c++ linked-list
2
164
Member Avatar for vegaseat

Get simple information like serial number, bytes/sector, sectors/cluster, free and total disk space of your hard drive using Windows API calls.

Software Development api c hard-drive windows-api
Member Avatar for sytheron
2
155
Member Avatar for vegaseat

This program shows how to display a JPEG (also GIF,BMP,WMF etc.) image using some Windows Graphical User Interface C code. The program uses the uuid.lib file that comes with many C compilers.

Software Development c gui image user-interface
Member Avatar for ashutosh_singh
2
1K
Member Avatar for Narue

This code demonstrates AVL insertion and deletion. The code was originally written in C by myself a little while back for a tutorial. The translation to Java was fairly trivial, and to add a little excitement I even threw in a few generics. Yes, I'm aware of this line: tree.data …

Software Development java
Member Avatar for easternRAT
2
342
Member Avatar for vegaseat

Use a Windows API call to add some color to your text output. A rewrite of an earlier C++ snippet for the C crowd.

Software Development api c windows-api
2
569
Member Avatar for vegaseat

The continued fraction expansion gives us the answer to life's most persistent questions, like what is sin(x) or even tanh(x). This surprisingly short code allows you to estimate SIN, COS, TAN, EXP, SINH, COSH and TANH fairly accurately. Careful, this code is not for the usual TV crowd! You should …

Software Development c mathematics
Member Avatar for bumsfeld
2
193
Member Avatar for Dani

An example of method overloading. The program calls a function to get the square root of a number. The appropriate function (integer or double version) is executed.

Software Development java
2
210
Member Avatar for ihatestarch

These are my instructions: - create a class containing a 10x10 two-dimensional array of characters. - class must have a constructor that puts the '.' character in each element. - In main, I must allow the user to enter an 'X' into six different spaces in the 2D array. (we're …

Software Development c++ os-x
Member Avatar for Nico è...
2
2K
Member Avatar for newbieneedshelp

Ive been working on this poker program for a while now and ive tried several different ways to make a poker game...i have to make it using very basic c++ ...ill try to post what i already have done

Software Development c++ first-post
Member Avatar for Justin7
2
122
Member Avatar for serkan sendur

Since listview control in .net framework 2.0 does not have a datasource property, it is not bindable to neither datatable nor generic lists. i created a derived custom listview that is bindable to lists of any type. i attach the .zip to this thread. I dedicate this custom windows control …

Software Development listview
Member Avatar for serkan sendur
2
188
Member Avatar for siddhant3s

[U][B]Guidelines to OPs:[/B][/U] [U]Before you start a thread:[/U] Starting a thread is a critical task. It is so because it demands time and attention of other forum members. A thread should only be started when you have done enough drill to find your answer else where. You should always be …

Software Development python
2
471
Member Avatar for the_nice_guy

hi I am new in c++ although I am reading about ti for a while now :). recently a made a silly code that I can not compile so please some help about it. ps: befo you even star to read it the following errors ocure while compilling [B]Undefined reference …

Software Development c++
Member Avatar for the_nice_guy
2
79
Member Avatar for ogwiz

Hi all, I'm having some trouble with my program, I know my copy and my clone function is correct, basically I just need to create the functions to achieve the desired result. Here is my code so far [code=c] #include <stdio.h> #include <stdlib.h> // helpers size_t length(const char *s) { …

Software Development c++
Member Avatar for ArkM
2
106
Member Avatar for xponse

I w'd like tom Download Turbo C (window version). Can any one sugget any site, thank in advance :confused:

Software Development c
Member Avatar for ~s.o.s~
2
459
Member Avatar for Bladtman242

Heres the code, im pretty sure i missed something really stupid, No matter what number i type i get "The number oyu type must be a positive number" so i guess the problem is either in my if statements in main or in the checkuserinput function, most likely in my …

Software Development c++
Member Avatar for Bladtman242
2
221
Member Avatar for tanvi-surve

Hi, I am developing an application to generated Jasper Report. I am using Netbeans 6.5, jasperReport 3.1.3. I am developing it using Visual web JSF. My JSP file is [CODE] D:/Programs/Java/JasperReports/EmployeeReport/web/Page1.jsp [/CODE] My report file is stored in [CODE] D:/Programs/Java/JasperReports/EmployeeReport/web/WEB-INF/reports/employeeReport.jrxml [/CODE] I have used following statement to specify my source …

Software Development java java-jsp java-netbeans pdf
Member Avatar for stephen84s
2
538
Member Avatar for mattwaab

Hey, i am working on a project in which i am making a minesweeper game. The game part was written by my prof. all i had to do was make the class and header to run the background of the game. I have done so successfully, but i am having …

Software Development c++
Member Avatar for mattwaab
2
255
Member Avatar for vvim

Hi Group, for a project[1] I am trying to find an OS independant way to measure the amount of cpu usage and memory consumption of the program. It would be nice if I could do that in my C++ code, so I can show the results at runtime or even …

Software Development c++ first-post google
Member Avatar for William Hemsworth
2
285
Member Avatar for Neji

help for this... want to set an attribute of file. 4 status Hidden, archive, system, read only. thank you all... Best Regards Neji

Software Development visual-basic
Member Avatar for RockyRhodes
2
198
Member Avatar for freesoft_2000

Hi everyone, I was wondering if anyone can recommend a good java ide. I have tried netbeans but i find it very confusing to use. I am looking for a very simple but free java ide to use. Can anyone recommend. Thank You Richard West

Software Development ide java java-netbeans
Member Avatar for sciwizeh
2
355
Member Avatar for harsh2327

I want to read files and folder names from directories. I have used the following code. But the problem is that in the output the file name gets truncated.[I](See the output below)[/I] [code=C++] #include <dirent.h> #include <stdio.h> #include<conio.h> void main(void) { clrscr(); DIR *d; struct dirent *dir; d = opendir("."); …

Software Development c
Member Avatar for harsh2327
2
297
Member Avatar for Jx_Man

Hi all... I m working for my graduated project. and my method in using is Genetic K-means Algorithm. i m using vb.net 2003 and sql server 2000. Does Anyone know a sample code for this?or a website / link for this topic??? please help me... any reply really appreciated... Thx.Best …

Software Development algorithm vb.net
Member Avatar for Jx_Man
2
165
Member Avatar for Sawamura

i want to search data from access database and display it in datagrid. please help me.. thanks in advanced....:)

Software Development visual-basic
Member Avatar for Jx_Man
2
153
Member Avatar for Vega_Knight

i make push procedure but its not working, there something wrong with my code?? please see my following push procedure : [CODE=pascal] procedure PUSH (var T: Stack; var Full: boolean; X: integer); begin if T.Top = MaxElemen then Full := true else begin T.Top := inc(T.Top); T.Contain[T.Top] := X end …

Software Development pascal
Member Avatar for Jx_Man
2
151
Member Avatar for Narue

Post your tips for making life easier in C and C++. I'll start: [SIZE=3][B]Standard vector object initialization[/B][/SIZE] The biggest problem with the standard vector class is that one can't use an array initializer. This forces us to do something like this: [code] #include <iostream> #include <vector> using namespace std; int …

Software Development c c# c++ first-post
Member Avatar for bector
2
8K
Member Avatar for Jade_me

hi masters.... does any one know how to flash window form ?? i don't have idea to do this problem.. please help me.. best regards

Software Development flash visual-basic
Member Avatar for debasisdas
2
103
Member Avatar for zandiago

Good day to all of you who assisted me. I never thought I'd pass this class, but with all your help, I made it. This is the only C++ course that I needed...so I really wont have any c++ questions to post around here to bug anyone...but i'll still hang …

Software Development c++
Member Avatar for zandiago
2
95
Member Avatar for tech2chill

wap to print following pattern?? [code] ABCDEFGFEDCBA ABCDEF FEDCBA ABCDE EDCBA ABCD DCBA ABC CBA AB BA A A [/code] the pattern is not showin up proper,,but hope u guys get it.. its kinda /\ shape formation b/w those letters this is wat i tried out..... int i,j....; int m=65; …

Software Development c
Member Avatar for tech2chill
2
480
Member Avatar for Narue

I've been writing my own implementation of stdio.h whenever I get a few spare minutes recently. Nothing fancy or thorough, and without wide character support, it's hardly conforming. But I was looking at one of my intermediate versions of printf and could only marvel at how ugly it was. So …

Software Development c
Member Avatar for Duoas
2
178
Member Avatar for gaowei

[code=c] /***头文件(.h)****/ #include "stdio.h" /*I/O函数*/ #include "stdlib.h" /*其它说明*/ #include "string.h" /*字符串函数*/ #include "conio.h" /*屏幕操作函数*/ #include "mem.h" /*内存操作函数*/ #include "ctype.h" /*字符操作函数*/ #include "alloc.h" /*动态地址分配函数*/ #define N 10 typedef struct nw /*定义数据结构*/ { char word; /*生词*/ char acceptation; /*词义*/ char aspirate; /*音标*/ int no[N]; /*序号*/ char note; /*注释(包括词性,例句等)*/ struct nw *next; }NEWWORD; …

Software Development c
Member Avatar for Aia
2
177
Member Avatar for ShawnCplus

For those of you who haven't heard of or used AutoHotKey check it out here [URL="http://www.autohotkey.com/"]http://www.autohotkey.com[/URL] for the rest of you I made a really simple script for Dev-C++ to add some speed to it. (I had more in the script but they were things only I would remember and …

Software Development c++
Member Avatar for ShawnCplus
2
167
Member Avatar for peter brown

One large chemical company pays its salespeople on a commision basis. The sales people receive $200 per week plus 9 percent of their gross sales for the week. For example a sells person who sells $5000 worth of chemicals in a week receive $200 plus 9 percent of $5000, or …

Software Development c++ display
Member Avatar for ~s.o.s~
2
1K
Member Avatar for rati

hi can anyone tell me please what is segmented error , i have made a program in c on linux and when i am running it after compiling , after a few inputs it shows segmwntwd erroe. what is this??:?:

Software Development c
Member Avatar for rati
2
91
Member Avatar for ssowmya

Hi, Hi friends i am new to this site.Am happy to tell you guys out there that i liked this site and all the effort that everyone has put to keep this site going. Now coming to the point,i need to decide on a project possibly in c/c++/java which is …

Software Development c++ operating-system
Member Avatar for Grunt
2
966
Member Avatar for the.future.zone

Hello guys. Thanks for the help in the previous posts. This one is regarding pointers in C language. Does 1) c = *a and 2) *a = c mean the same thing? I think they are. Are they? Thanks for the reply.

Software Development c
Member Avatar for ~s.o.s~
2
119
Member Avatar for hygy486

[COLOR=#000000]Write the following functions[/COLOR] [COLOR=#000000][B] [/B]draw_circle – draws a circle[/COLOR] [COLOR=#000000] draw_intersect – draws intersecting lines[/COLOR] [COLOR=#000000] draw_base – draws a base line[/COLOR] [COLOR=#000000] draw_triangle – draws triangle using intersecting lines and base line[/COLOR] [COLOR=#000000] draw_rectangle – using baseline and parallel lines[/COLOR] [COLOR=#000000] skip_5_lines – skips five lines between each …

Software Development c++
Member Avatar for Ancient Dragon
2
204
Member Avatar for comp_sci11

can somone help me! where can i find a turbo C compiler that has a BGI! Coz i have a program that have some graphics but i can't run it through my compiler coz it doesn't have a BGI! is there someone who knows where i can find a complete …

Software Development c++
Member Avatar for ~s.o.s~
2
169
Member Avatar for kimw

i have a string that i want to convert to double. i know atof is a standard library function for that, however, the input argument to atof is (const char*), not string type that i have. does anyone know how i might convert my string num to double ? thanks …

Software Development c++
Member Avatar for Dave Sinkula
2
303
Member Avatar for bumsfeld

I know that lambda is some kind of function in Python. What does it do? Why would one use it?

Software Development python
Member Avatar for vegaseat
2
412
Member Avatar for ajeshantony1

hai , i am doing my final year project work. It is about buliding an Interactive voice response system. I have chosen VB and Oracle 8i as my tools. i want to know whether i can develop an implement an IVR using Vb 6.0 or not. If so how to …

Software Development oracle visual-basic
Member Avatar for Comatose
2
548
Member Avatar for f_escobar82

I am writing a Win32 Console application and I need to change the font size to 18x10 pixels. I think this can be done with a function in windows.h but Im not sure which one or how to do it.

Software Development c
Member Avatar for kc0arf
2
4K
Member Avatar for freesoft_2000

Hi everyone, I just came home from a software conference in nagoya, Japan where they had any kind of software you can think of on this planet. There was one talk i went for and i think its quite interesting to have it discussed fully here. Alot of the companies …

Member Avatar for alc6379
2
2K
Member Avatar for steve-parker.or

Shameless plug: [url]http://steve-parker.org/sh/sh.shtml[/url] A bourne Shell Programming/Scripting Tutorial for learning about using the Unix shell. Centres on the Bourne shell, but mentions when bash differs. Does not cover ksh/csh (considered harmful). Applies to UNIX and Linux.

Software Development shell-scripting unix
2
497
Member Avatar for iamhe

This is giving me a headache...can someone please tell me why these statements ARE NOT equivalent? Statement 1.) if(running_result && shell[8 * (x - 1) + (y - 1)].input_val) running_result = true; else running_result = false; Statement 2.) running_result &= shell[8 * (x - 1) + (y - 1)].input_val; ------------------------- …

Software Development c++
Member Avatar for iamhe
2
167
Member Avatar for damionspencer

:mad: :mad: :( :( I've been trying to write this program that is suppose to read in a text file manipulate in and give the following out put infact here is the question Implement a program that uses a form-letter template to generate form letters. Your program should read in …

Software Development c ios
Member Avatar for Dave Sinkula
2
180
Member Avatar for big buc's fan

This might be a oversight by me but when I compile and the programs runs I get this error:park.cpp(11) : error C2065:'hours' : undeclared identifier [B]if (hours<=3)[/B] this is code from my program park.cpp(34) : error C2447: missing function header (old-style formal list?) What is this------->(old-style formal list?) Maybe I'm …

Software Development c++
Member Avatar for frrossk
2
451

The End.