199,114 Archived Topics
Remove Filter ![]() | |
Some time ago, I was writing a small command line interpreter, with the help of [url=http://docs.python.org/library/cmd.html#module-cmd]the standard module cmd[/url] which offers minimal support for such tasks, and I had the problem that this module doesn't have a function to parse a command line to produce a list argv which can … | |
Hello guys, that's my first post around here and I have a problem with binary files. I'm writing a simple editor for my arkanoid clone game. This editor opens a binary file defined by this: 0-26 byte: Descriptor for the file. Once in each file. 27->(1141*n): Levels inside the file, … | |
Hi! I'm writing a statistical analysis program where I don't know, in advance, how many variables will be involved. I'm having the user enter data for each variable in a datagrid. First I ask for the number of variables. Based on that, I add as many new columns as needed. … | |
I've been reading sites that talk about clock() but I don't really get an answer by doing that. I mean, I still need to confirm and know some more stuff. I hope you could help me... Here's what i would like to know: 1] what does the value returned by … | |
I know they don't have standard ASCII values, but how do you check for them? I am making a command prompt-type interface for a text-based RPG a friend and I are making, and I would like to be able to use the arrow keys to navigate in menus. I am … | |
Im creating a simple program. (soon to be vastly complex) that is connecting to a server, and sending an authentication code to connect. I got the connection part, but what keeps breaking up is the method of authenticating. I have the entire authentication process in a while loop, so that … | |
Hello! My name is Page, and I am having problems figuring out how to read a name for example like; SMITH, JOHN in a string array. From there I would like to find the space and read the last name into a vector and the first name into another vector. … | |
Hi, I'm very new to web developement. I wish to develop a purchase order application wherein it has fields po_no, item, item_description, quantity, price. Out of these items po_no is common to all entries. Initially the form will have one row containing item, item_description, quantity, price. I need an option … | |
Wallpaper or tile images are small images that can be spread across a background repetitively. A common practice on web pages. The surface created with wx.PaintDC() can be used for this effect and still allows other widgets to be put on top of the wallpaper. The small tile image is … | |
Hello i am new here i liked this community: I have a c++ homework could you check it if it is correct? 1. Rewrite the following loop so it uses pointer notation (with the indirection operator) instead of the subscript notation: [code] for (int x = 0; x < 100; … | |
I had a problem at work which I solved, but that raised me another question. I wanted to export a page to excel, so I used this: [CODE] response.setContentType("application/vnd.ms-excel;charset=iso-8859-7"); [/CODE] It worked but while I was searching for an answer I found 3 possible content types for the excel: > … | |
Hey, this is my first post here, glad to be here and learn from you guys! what i'm trying to do is this: I would like to enter 2 names and then hit a number from lets say 1 to 10, and i have the array Q1,Q2... etc. these should … | |
please help me how to make on how to get txt on a file...hoping for your positive responds..... | |
Greetings from Greece, this is my first post! I'm having some minor trouble with an application I've been working on the past week. So if you could please shed some light into this. Thank you. The problem I'm having is that when the user is trying to save a file … | |
I've been looking through the site for topics on how to code your own DLL's in C++ and so far i have not come up with much, I'm hoping to create a DLL in which i will code functions for using the win32 API and kinda making a small framework … | |
Hi guys! I was wondering if anyone could provide me with useful tips or answers to the question stated below: Why is the programming language C++ is often used as the main programming language for Biometric Applications compared to Java the programming language? Your help would be really appriciated! | |
Hi all, I am working as a dba in a small bank and I got an assignment to develop an in-house tool for detecting fraud scenarios. I know the technical part of manipulating multiple data sources and mining data, but do you happen to know what tests/scenarios the banks use … | |
Small design company looking for CF tech part-time. $30 to start. MySQL data bases are used. Grow with us and get in on the ground floor. Great 2nd job or filling down time. Email us. Thank you. :cheesy: | |
Can Somebody plz tell me how to give the form ,a footer & header. I want to write in Heaer-REPORT FIRST But i m not getting how to type the text in Header & Footer, plz reply. Bydefault the user is able to resize the form,I also want that the … | |
Hi, I have a task where I programatically will open 2 Explorer Windows in a minimized mode. I have searched and the code I have come up with looks correct to me but what happens is that these 2 browser windows do open in a Normal mode. That will be … | |
Hi all, My first post here, but long time troller. I was looking for a GUI platform to develop on and couldn't decide between wxPython, PyQT and/or IronPython or Jython. I decided to go with wxPython after getting a couple of headaches elsewhere. I'd really like a quick IDE to … | |
Hi, does anyone know of a good php validator online. I used one called bermi.org and put my code in and gave me an error but i don't know what line the error is occuring. Perhaps someone could help me out. This is the code [B] tutors.php[/B] [code=php] <?php /** … | |
Hi all, I need to store some data in a txt file from a textbox.text. I have try this and works: [code] FileInfo t = new FileInfo("data.txt"); StreamWriter Txt =t.CreateText(); Txt.WriteLine(textbox1.text); Txt.Close(); [/code] But.... How can I create multiple files without delete the older one, e.g., Gives the name to … | |
[code=c] union u { union u { int i; int j; }a[10]; int b[10]; }u; main() { printf("n%d", sizeof(u)); printf(" %d", sizeof(u.a)); printf("%d", sizeof(u.a[4].i)); } [/code] Hello People. I just came across this piece of C code. I have a couple of question The third printf statement gives me the … | |
Hi all! I've been working on some school/hobby project for some time now. It's a kind of a simple statistical tool for analysis of data from psychological experiments. Not being professional programmer I encountered a couple of problems concerning data storage. Let me explain the how the data is structured … | |
hi all. from where i can download this header file ncurses.h for windows? thnx in advance | |
Hi, I'm having a problem with a motion tracing effect in an animation on a Windows Form in C#. The effect generated by painting a transparent black background over the Form each time it is redrawn. The idea is that, as an object moves, it's previous images should be gradually … | |
ok, so I have the following code. [CODE]#include <iostream> using namespace std; int main() { char name[80]; cout << "\n\nEnter your name: "; cin >> name; cout << name; return 0; }[/CODE] but here's the problem. whenever I enter a space in the name, everything after the space doesn't appear … | |
HI, I have finish my project and need to make my project into EXE(windows application) by using project setup. does anyone know how to go about doing that? i mean those EXE where when you double click on it and it will prompt you to install and those agreement statement … | |
This code should be able to get you started to design 2-D scrolling games, like Mario. I spent a few hours trying to figure this out, and firgured I'd put up my efforts. I think there might be a better way to do it, but this should help you get … | |
I have got given a homework: FileDescription program requests (as shown) and reads three lines of text. It then processes the data. For each line the first string (containing no spaces) on the line is a file name – followed by a file description. If the file name has the … | |
i am trying to convert decimals to binary ..the reason i am using function is becoz i want to include -ve numbers too .......i was sucessfull for the positive but for making it run for -ve numbers to i divided into a new function....but i am not able to figure … | |
I purchased a book that included an evaluation version of 2008 enterprise. I had downloaded SQL 2005 express and had tried to download 2008 which said it succeeded and I was left with 2005. I checked the OS list of supported ones. XP professional is on the list. XP home … | |
I have a quick question with visual studio. This is the first program I have ever tried with the 2010 version and get the following error... 1>------ Build started: Project: test, Configuration: Debug Win32 ------ 1>Build started 1/17/2010 4:53:30 PM. 1>_PrepareForBuild: 1> Touching "Debug\test.unsuccessfulbuild". 1>ClCompile: 1> All outputs are up-to-date. … | |
It is supposed to take a ceral box measurement in ounces and convert it to metric tons, as well as tell how many boxes it would take to equal a metric ton. Here it is. [CODE] #include <iostream> using namespace std; double ounces; cout << "Enter the box weight in … | |
Hello , Im trying to show an animated gif on a form while i read a file, but the animation freezes until all the file operation is finished Any idea? PS im using visual studio 2003 | |
Hi so I have the next problem (didnt write it in code yet because I dont know how i should start) I have to make a program in Visual Studio 2008 that would add words to numbers and make it a word again s ofor example: monday + 4 =friday … | |
Hello there! This is my first post so I'd like to say hello to everyone on the forums! Anyway, I am coding a hangman game. I read my words from a text file with ifstream, then I randomize a word and I set the string "sSelectedWord" to the randomized word. … | |
[CODE] while(getline(bookFile,books[count].title,';')) { bookFile>>books[count].year; bookFile.ignore(1); bookFile>>books[count].author; bookFile.ignore(1); bookFile>>books[count].price; count++; } [/CODE] the code seems to just ignore the deliminating character and enter the whole first line into the title member of the books struct. I can not figure out why, any help would be appreciated .. thanks | |
Hi all, I have a problem with winsock in c++ while developing a client program: - When I send the first, it is ok, appears in the Server, but the other "sends", in the server appear as a empty string! the send command return is Ok, the number of bytes. … | |
[code=sql] alter table pets_like_boys drop constraint pets_like; alter table boys_like_girls drop constraint boys_like; alter table girls_like_pets drop constraint girls_like; drop table pets_like_boys; drop table boys_like_girls; drop table girls_like_pets; create table pets_like_boys (pets_name varchar(32), boys_name varchar(32),primary key (pets_name)) ; create table boys_like_girls (boys_name varchar(32), girls_name varchar(32),primary key (boys_name)) ; create table … | |
I have to create a random matrix m*n where m and n are user inputs. Now i have to fill the matrix with random nos. Finally I must have a matrix where each value is either 0 , 1 , a fraction no between 0 and 1, and also sum … | |
Hi people, I am writing a code to do some matrix manipulation stuff. like replication of a matrix in a bigger matrix vertically and horizontally, or putting some elements on a specific diagonal. The problem is that when the size of 2-D array goes to 290, the program crashes. The … | |
Hi, This will show you how to create a login form using swing. Please be aware that this form does not connect to anything. ( eg. A URL or a database) This is just a little advanced example of one of the many things you can do in swing. A … | |
I'm just wondering if it is possible to import a module as an object attribute. The basic description of what I want to accomplish is that I'm creating a software agent object. This agent will have a set of abilities (functions), but I don't know what these are ahead of … | |
how can i create a magic square using jcreator.. help me please.. | |
This code defines a new operator new in C++ such that the memory returned is in the shared memory segment rather on the heap. This code exists to prove a point. "Objectifying" shared memory. One can not overload the new operator but one can overload operator new. Reference the C++ … | |
This one is a messaging system! Made it myself, works great! Hopes you like :) | |
Hey, I've been going insane with a question I've been doing all day. Creating an application that prompts a user to enter a date. I have to use arrays to store the number of days in each month i.e 31 for January, 28 for February etc.. I have created a … | |
I need a help to upload mp3 and flv uploading codes can any one help me on this |
The End.