132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for winbatch

I may not be asking this question right... Basically, I have a wrapper around an stl map. I would like to use either a map or a hash_map based on whether the user wants the items sorted or not. To achieve this, I wanted to have a pointer to the …

Software Development c++
Member Avatar for Dogtree
0
234
Member Avatar for cscotty

Are they the same? If so, which one is preferred by the more advance programmer and why? Thanks, Scott

Software Development c++
Member Avatar for Dogtree
0
105
Member Avatar for nasaiya

i'm trying to use getline to read from a file into a std::string and when i give it the normal 2 parameters (my ifstream and the string) the compiler says it wants 3 arguments , but when i give it 3 it says it wants 2 arguments. this makes absolutly …

Software Development c++
Member Avatar for nasaiya
0
634
Member Avatar for server_crash

Does anyone have a few good sites that give you some practice java questions? I'm not tallking about java certification questions, just regular old java questions about the language. I need a lot of them, so please post as many sites as you can.

Software Development first-post java
Member Avatar for server_crash
0
190
Member Avatar for Zackery

Ok hey, I have this program and i dont understand how Its not wiorking. Thx for your time. :o [CODE]#include <allegro.h> #include <stdio.h> #include <stdlib.h> #include <time.h> void main() { int x,y,bx,by,af,al,ar,ab; allegro_init(); install_keyboard(); install_timer(); set_color_depth(16); set_gfx_mode(GFX_AUTODETECT,800,600,0,0); BITMAP *buffer, *back, *a, *b, *c, *d, *e, *f, *g, *h; back=load_bitmap("back.bmp",0); a=load_bitmap("gob-front-1.bmp",0); …

Software Development c++
Member Avatar for Dogtree
0
323
Member Avatar for purplegerbil

I have a list box containing a list of field names. The user would select/hi-light a number of these so they can find out quantities. The file the fields are from is in csv format ie: List box contains- Title Initial Surname Address1 Address2 Media Code Ref Number If the …

Software Development app-store visual-basic
Member Avatar for Comatose
0
109
Member Avatar for gimmy

hi there is someone that can say me what kind of character from the COM1 when i connect eb600&eb500 to my laptop are them? i receive this kind of character ××××××××××Ö××××××××××ÖÖ××Ö××××××××××Ö×××Ö×ÖÖ××ÖÖÖÖÖÖÖÖÖÖÖÖÕÖÖÖÕÖÖÖÖÖÖÖÖÖÕÖÖÖÖÖÖÖÕÕÕÕÕÕÕÔÕÕÕÓÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÓÓÓÓÓÓÓÓÓÓÓÒÒÓÓÒÒÓÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÑÒÒÑÑÑÑÑÑÑ

Software Development c laptop
Member Avatar for gimmy
0
115
Member Avatar for w00dy

Hi All, I wrote a guitar-related program, one of the options is a guitar tuner which works fine, each note is in a separate 3second wav file. However, when I tried to write an option to play a full chord i.e. play 6 files, one after the other, only the …

Software Development api visual-basic
Member Avatar for Comatose
0
214
Member Avatar for letmec

Hello everybody, This one for those who like graphics programming with C. Can any one of you tell me how to make stand alone graphics exe through C. i have read a paragraph on this topic but its not happenning. It will very nice of you if you code simple …

Software Development c++
Member Avatar for Asif_NSU
0
123
Member Avatar for Marack

Any ideas on ways to improve it? I am new to C++, well programming in general. Thanks in advance. BJ [CODE]#include <cstdlib> #include <iostream> using namespace std; int c = 0; char p; int g =0; int n = 0; void D4(int A, int B); int main() { cout<<"Dice emulator …

Software Development c++
Member Avatar for andor
0
128
Member Avatar for classifieds100

I need to modify this script to have also an external txt file with urls instead of having only one url from the form that is created by the script. Just like the proxy.txt and agents.txt. Please help me... :confused: #!/usr/bin/perl use LWP::UserAgent; use HTTP::Request::Common; ####Proxy addresses##### $proxy="proxy.txt"; ####How many …

Software Development first-post perl
Member Avatar for classifieds100
0
187
Member Avatar for JoBe

Hello ladies and gents, Wanted to make this part of an exercise in wich I enter each time two integers into an array for wich I have to use STL container vector. Ive got this sofar, but getting an error message when I entered two numbers and the exe shuts …

Software Development c++
Member Avatar for JoBe
0
594
Member Avatar for reezin14

I was wondering if anyone knew of a good text editor for python ?

Software Development python
Member Avatar for vegaseat
0
316
Member Avatar for markymarkb1000

Hi folks...I have a Class called Model which I am using to iterate through a string, tokenize it, and then access a method in my GUI class which is supposed to change the color of the borderLayout panel. I am getting this error. I have tried to make me Model …

Software Development gui java java-swing
Member Avatar for server_crash
0
517
Member Avatar for Ghost

Hi, I wrote this program and I was wondering if there was a way to save the picture I'm creating using the graphics class. Here's my code: [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; public class paint extends JFrame implements ActionListener { private int pointCount = 0; private Point …

Software Development java java-swing
Member Avatar for server_crash
0
156
Member Avatar for mohsin

hello guyz i wana implement ftp server using linux .. c based code is required plz help me out ..

Software Development c
Member Avatar for mohsin
0
179
Member Avatar for freesoft_2000

Hi everyone, I am doing a custom document in which i am always getting an error at the point when i want to use the java HTMLReader class. The compiler says something about an enclosing instance and i really have no idea what the compiler means. Here is the code …

Software Development java java-swing
Member Avatar for server_crash
0
138
Member Avatar for amura97

Hello everyone, I recently wrote a very large program in Borland C++ (version 4) that implements a lot of linked lists. For many reasons I am now obliged to migrate to Dev C++, but when I run my software I get a "Access violation (segmentation fault)" error. This happens whenever …

Software Development c++ google linked-list
Member Avatar for typek
0
155
Member Avatar for ultimate_fusion

gl\glaux.h: No such file or directory. i get the error above when trying to compile any code with #include <gl\glaux.h> in it???

Software Development c++ opengl
Member Avatar for typek
0
286
Member Avatar for vex

How can I generate a random boolean? Is there a method for this? Thanks in advance

Software Development java
Member Avatar for vex
0
126
Member Avatar for evil_dude_01

Hi all, I'm completly useless at C++ and was wondering if anyone can tell me how to tell a program that when I have pressed Enter, if the string is empty do nothing. Its for updating details. I'm using an Input header file that my lecturer wrote. This works fine …

Software Development c++
Member Avatar for evil_dude_01
0
189
Member Avatar for xplicit

Hello, I'm new to VC++7 and openGL but have luckily gotten some basics down and am ready to show off what i know to some friends. What I tried doing, is to simply zip the .exe, but this failed. My friends and I all play quake 3, which uses opengl, …

Software Development c++ opengl
Member Avatar for xplicit
0
148
Member Avatar for Dark_Omen

Hello, Can anybody tell me how to be able to open up internet explorer, and then go to a website using a URL and then controlling the website (not control like hack, but like being able to press the enter button or adding something to a textbox). I was trying …

Software Development c#
Member Avatar for Dark_Omen
0
114
Member Avatar for nathanpacker

Hi everyone, I am new to the forum, and I'm not very knowledgable, so I'll probably do more asking than contributing, and I apologize in advance for that. My question is about a guestbook I'm using. Most people know it, it's the one from Matt's Script archive. Only, I'm trying …

Software Development first-post perl
Member Avatar for kordaff
0
248
Member Avatar for Asif_NSU

Can anyone tell me if there's any standard package for C++ to work with regular expression, or I will have to get some third-party package?

Software Development c++ regex
Member Avatar for Dogtree
0
147
Member Avatar for dragonray

<< moderator edit: split thread from [thread=8544]here[/thread] >> i've found that somehow cin has a '\n' by default and you should use cin.ignore() to clear the input stream. hope this helps. :idea:

Software Development c++
Member Avatar for Dogtree
0
150
Member Avatar for bronzefury

Hi, I was wondering if anyone has encountered this problem. I'm using Win32 API calls FirstFile() and FindNextFile() to search for files on my computer. The problem is, both function calls seem to return extra files that aren't part of my search string. Has anyone else experienced the same problem? …

Software Development api c++
Member Avatar for bronzefury
0
808
Member Avatar for fischerj

Would someone point me to some code to silent print a pdf from VB.NET or C#. I have the Adobe SDK Thank You for any help toward this end.

Software Development adobe pdf vb.net
0
348
Member Avatar for gimmy

hi could someone help me . Exist some function in c or c++ or visul c++ to do a conversion from ASCII character in decimal number??? please help me thanks in advance

Software Development c++
Member Avatar for Dave Sinkula
0
135
Member Avatar for G-Do

Hi, I am a Java programmer dabbling in Python for the first time. Mostly, the transition has been pretty smooth, but this week something stumped me. Please forgive me if the answer to this is completely obvious - I've read van Rossum's tutorial and can't figure it out. I am …

Software Development python
Member Avatar for G-Do
0
228
Member Avatar for swets_here

If your input is "abc". What would be the logic to accept the strings, bca,acb,bac,cab,cba,abc (ie. the same string with chars placed in any order) and reject all other input strings like aab, cdb, xyz etc ? Note: The reference string("abc") is not fixed, logic should work for any constant …

Software Development c
Member Avatar for winbatch
0
184
Member Avatar for C. Raghuraja

The text in the Combo box has lenthly text, but combo box has no horizondal scroll bar. I want to Add Horizondal Scroll bar to Combo Box. Advanced Thanks Raghuraja

Software Development visual-basic
Member Avatar for C. Raghuraja
0
120
Member Avatar for George2

Hello everyone, I want to run tasks with priority, i.e. among several simultaneous running tasks, the task with the higher priority will have more chances to occupy CPU time. I have the following 2 issues dealing with the implementation of such feature. - To define each task as a thread …

Software Development java open-source
Member Avatar for George2
0
198
Member Avatar for ....

Hi, I am a systems engineer/administrator and therefore new to programming and wanted some help pls... I dunno how long it would take to program, if it could be done at all, but could someone please create a small program to vnc pc’s automatically or provide me with step by …

Software Development c
Member Avatar for kc0arf
0
156
Member Avatar for CryingRaven

I have been a Delphi user for 8 years and now migrated to C++ and have found the changeover quite taxing indeed. I am using Visual Studio .NET and have before that used MSVC 3 and MSVC 6 and always had the same problem: I code my classes and methods …

Software Development c++ delphi ide linked-list visual-studio
Member Avatar for Dave Sinkula
0
329
Member Avatar for Eager Student

Hi! to everyone I'm starting out in programming,I need help to develop a class diagram for a Shape class. Include generalizations for child classes Rectangle, Circle and Triangle. Please can you help me here!? Eager Student

Software Development java
Member Avatar for Eager Student
0
118
Member Avatar for a7la_lolly

pleaaaaaaaaaaaaaaaaaaaas i want the siluotion of this qustion b coz i have an exam after two dayes in pseudo-code and algorithems * write the pseudo-code to convert an arbitrary binary number to it's two complement representation and i need more exampels in this form about write the pseudo-code of any …

Software Development c
Member Avatar for Dave Sinkula
0
124
Member Avatar for Joe Diamond

Hi, I'm working in C# Windows Forms, with an MDI system. My documents contain several different objects. I want those objects to be shown as dragable windows *inside* the document (MDI client) window, and to be part of that window (ie scroll with it, affect the scroll bars, etc). I've …

Software Development c c# c++
Member Avatar for Toulinwoek
0
126
Member Avatar for madmital

Hi. I'm a long time asp-developer, but fairly new to VB so I don't know all the trick yet. My problem: I'm writing a program that fetches file and directory information from a given drive/location and stores information in an array for further processing. During this procedure the application sometimes …

Software Development asp visual-basic
Member Avatar for madmital
0
2K
Member Avatar for ruwach

Hey there, i am trying to write an online application using the cgi module. what i want to do is have an html form display a drop-down list and have the values of that list be the lines of text written in a file. this would be updated almost every …

Software Development display python
Member Avatar for ruwach
0
208
Member Avatar for f3tpy
Member Avatar for buggytoast

Hi Everyone! THis is my final program :D Of course it's not done...but I just wanted some feedback...and any ideas on how to fix my GUI XD...Any help is appreciated ^^. BUt please don't copy lol XD I don't want to get accused of cheating here...if giving out this code …

Software Development display gui java java-swing
Member Avatar for buggytoast
0
418
Member Avatar for ramcol

I need help with a basic interface design, I also need help with the java docs. The project is a booking system which works ok but needs an interface and maybe some tweeking. I am just a beginner with Java but would imagine this project is possibly half a days …

Software Development email java
Member Avatar for ramcol
0
55
Member Avatar for amt_muk

Hi all, Can any one tell me how to delete any file from a C++ code. I can do it with the help of the function 'system()', but is there any other way? :?: :?: :?:

Software Development c++
Member Avatar for amt_muk
0
89
Member Avatar for Lunaticrr

I am new to pragramming and also Python. I was reading the intro and basics for beginners in the sticky of this forum and tired it out. It was cool and all but after saving the files, I click F5 to run it and i get the error message : …

Software Development python
Member Avatar for Lunaticrr
0
352
Member Avatar for winbatch

Hi, In my never ending quest to improve my C++, I'm trying to write a class that sets and reads shared memory. For the time being I am avoiding dealing with issues of concurrency/locking, etc. and starting small. I was successfully able to put into shared memory things like integers, …

Software Development c++
Member Avatar for Dogtree
0
511
Member Avatar for winbatch

Hi, After completing my Date class, I realize that I am suffering from the 2038 problem. (As described here-> [url="http://pw1.netcom.com/~rogermw/Y2038.html"]http://pw1.netcom.com/~rogermw/Y2038.html[/url]). Does anyone know which libraries (or which code) I need to switch to on *nix systems to overcome this? (I know windows has someting like mktime64 (instead of mktime). Google …

Software Development c++ google
Member Avatar for Dogtree
0
257
Member Avatar for Electrohead

HI! I am new to programming (*although i know some html*) and I was wondering if someone could tell me what is wrong with my C++ area calculator? Thanks! [CODE]#include <iostream> using namespace std; int main (int argc, char **argv) { int height; int width; int area = height*width; cout …

Software Development c++
Member Avatar for Electrohead
0
278
Member Avatar for madt

the values are not being passed correctly, in my constructor i copy the value of d to decimalNum and the value of b to base. when i run the program the values are 0. what am i doing wrong?: baseType::baseType(int b, int d) { base = b; decimalNum = d; …

Software Development c++
Member Avatar for madt
0
92
Member Avatar for jonnie83

With the following line I get a syntex error relating to the ifstream file [code]if ifstream file(filename.c_str()).find string1 ++counter;[/code] I have already declared the input file and do not understand why there is an error. Sorry for seeming dumb but I am new to this!!

Software Development c
Member Avatar for Dogtree
0
221

The End.