132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for achandra

hi, can anyone please tell me which is better in #include<stdio.h> and #include"stdio.h" and why? bye chandra

Software Development c c# c++
Member Avatar for jephthah
0
64
Member Avatar for HelenLF

I am new to Visual Basic so this question may be a bit simple but it has me stumped. I have written some visual basic code where I reference 3 text files in the same directory. When I reference the files as /filename.txt the program works but when I reference …

Software Development visual-basic
Member Avatar for selvaganapathy
0
308
Member Avatar for jimcc

So I have a simple dice program that lets the user make bets. If their current money pool is larger than the money pool in highscores.txt it will write the new score to the file. The program works as intended except for the high scores. When I try to write …

Software Development file-system python
Member Avatar for Fuse
0
123
Member Avatar for smithsf22

Hello, I am exporting 3 seperate Selects to a csv file. What i have is a button that when clicked I would like to have to export. The problem that I have is that I can only get one of the three to work. All three do work just not …

Software Development python
Member Avatar for smithsf22
0
114
Member Avatar for daviddoria

I have a file that contains lines like: 2/3/4 5/6/7 8/9/10 and I want to extract the 2, the 5, and the 8 So I am parsing the line by the ' ' delmiter to get 2/3/4 5/6/7 8/9/10 then I need to parse each of those to get the …

Software Development c++
Member Avatar for Duoas
0
146
Member Avatar for ff4930

Hello, I have a project that needs to implement a Safe Array which is an Array that has bounds checking. On top of that I need to create a "Matrix" class which implements 2D which is basically a Safe array within a Safe array. This is also templatized. The problem …

Software Development c++ os-x unix
Member Avatar for Radical Edward
0
807
Member Avatar for JimmyW

I'm trying to load a registry hive (C:\Users\test\NtUser.dat) but I get error 1314. This is something to do with permissions. I'm using RegLoadKey. I converted this [url]http://support.microsoft.com/kb/297060[/url] example to vb.net, but as I said I get the error 1314 on RegLoadKey part. The other apis to change the permissions all …

Software Development vb.net
Member Avatar for Maike13
0
905
Member Avatar for Latte

How to count line of code in text file or file .cpp (this .txt file or .cpp file is the input file of program) and what's function for count line of only mark code for example of this code(file input) , I want to count only "do" function that have …

Software Development c++ file-system
Member Avatar for VernonDozier
0
191
Member Avatar for FastCat

My first vb.net post...:) What I've got: On a form, I have 'Add New Tab' button, a 'Select Picture' button and a TabControl. On the first Tab I have a textbox1and a picturebox1, when the user uses the 'Select picture' button (which calls opentdialog) I load the picture into the …

Software Development vb.net
Member Avatar for FastCat
0
2K
Member Avatar for Bomma9

Hi All, I have to develop an application that needs to send a sms to any cell/mobile using a CDMA connection. This application is for an voluntary organisation, which involves in free medical service. I appreciate if any one can help me in this regard. Thanks every one for your …

Software Development visual-basic
Member Avatar for Jishnu
0
229
Member Avatar for bops

Hey, I am trying to make a little MDI control with tabs, but my problems lies in the following: I want it so that when the mouse is over a tab, a close button i.e. an X is displayed on the tab, then the user may click this button to …

Software Development java java-swing
Member Avatar for Ezzaral
0
575
Member Avatar for Jishnu

Hello, I'm using MAPI component to send email messages via VB6. Here's my code: [CODE] Option Explicit Private Sub cmdEnd_Click() Unload Me End Sub Private Sub cmdSend_Click() MAPISession1.SignOn MAPISession1.DownLoadMail = False DoEvents MAPIMessage1.SessionID = MAPISession1.SessionID MAPIMessage1.Compose MAPIMessage1.RecipAddress = txtSendTo.Text MAPIMessage1.ResolveName MAPIMessage1.MsgSubject = txtSubject.Text MAPIMessage1.MsgNoteText = txtMessage.Text MAPIMessage1.Send False MAPISession1.SignOff End …

Software Development visual-basic
0
395
Member Avatar for Black Magic

Hey, I was bored and had not made a program for a short while so decided to make one, Just have a few questions and some "How do you.." questions, well heres my code.. [CODE=C++]#include <iostream> #include <fstream> using namespace std; int main() { int registerID, ID; char name[20]; char …

Software Development c++
Member Avatar for Sky Diploma
0
110
Member Avatar for dangermini

Hi, i've been working on simple code just prototyping the system i'd like to make. This all works and is going great apart from my "quit" button, the button appears. however when you click on it, it doesn't close the interface..i think it just stops the code from running or …

Software Development python
Member Avatar for woooee
0
4K
Member Avatar for TheWhite

I'm trying to create a JButton in 1 of my 2 JFrames which exits the top or current JFrame... If I try: [code] System.exit(0); [/code] The entire, currently running Java Virtual Machine, exits... (both frames) I'm basically trying to get the same result as [code]setDefaultCloseOperation(DISPOSE_ON_CLOSE);[/code] does to the X button …

Software Development java
Member Avatar for Ezzaral
0
120
Member Avatar for Flixter

[CODE]#include <iostream> #include <vector> using namespace std; class Pair { public: Pair(int a, int b) {x=a; y=b;}; int get_x() {return x;}; int get_y() {return y;}; private: int x; int y;}; int main() {vector<Pair> set; \\input of the set of points, with 50 points Pair* a1 = new Pair(70, 64); set.push_back(*a1); …

Software Development algorithm c++
Member Avatar for Flixter
0
130
Member Avatar for xav.vijay

Hi friends I am trying to connect to a Linux machine from a Windows PC. I used to do it thru TELNET, but now I want to use SSH for better security. I tried with PYSSH, but I am going nowhere with it... Parmaiko is not working in Windows... Is …

Software Development python
Member Avatar for xav.vijay
0
579
Member Avatar for himsymcpp

Hi friends, This may a childish question but please help me out. I want to know whether there is any dfference between Heap and free Store in C++ (dynamic memory) or they are the same i.e just the synonyms used? One more thing i want to know is that where …

Software Development c++
Member Avatar for vijayan121
0
136
Member Avatar for ambarisha.kn

Container V1: 1 2 3 4 5 6 7 I want to print the elements which are greater than equal to 3 but less than 6. How to do this using Standard template library functions.. We have logical_and, greater_equal and less_equal Predefined Function Objects. But i dont know how to …

Software Development c++
Member Avatar for vijayan121
0
89
Member Avatar for MAXPAYNE88

Hey guys. I've been having this problem with a Dynamic list using pointers. I have built the class, then defined a MAX size to the list when first created. Then I thought about maybe the user wants to enter more values, so I made some changes. Here's the code: [code] …

Software Development c++
Member Avatar for MAXPAYNE88
0
101
Member Avatar for edek

I need to check if registry value exists from within .bat ('batch') file, and it seem to be quite hard to do - not many ideas on it I have found. Maybe you can help? I believe I should use the reg.exe programm to do this but what syntax should …

Software Development
Member Avatar for Keviel
0
5K
Member Avatar for chrisfrolich

I was wondering if programming a hangman game would be possible. I took a little bit of time to make something, but it doesn't seem to be working very well. Any info is appriciated! [code] #include <iostream> using namespace std; int main() { char solution[20]; //holds solution char blank[20]; //holds …

Software Development c++ puzzle
Member Avatar for chrisfrolich
0
364
Member Avatar for Aamit

I am creating client -server architecture ... 1 server and 20 clients..are attached ... when computer starts client sends abc.txt file information to server ...through socket port no 8000...server take this file and rename with that comp name... problem is -> when number of clients machine on at same time …

Software Development c++ client-server
Member Avatar for Ancient Dragon
0
138
Member Avatar for jem00

Hey guys, I need to find out the length of wav files so as to set a timer. How do I find the length of a wav file? Thanks, jem00

Software Development visual-basic
Member Avatar for selvaganapathy
0
101
Member Avatar for jem00

Hi guys, I'm pretty new to VB and am having a little bit of trouble with scroll bars. I have a text box and I want the user to input a value in there but I also want them to increase the value through a scroll bar or decrease the …

Software Development visual-basic
Member Avatar for jem00
0
249
Member Avatar for adadadad

Hi, I have an html file and I have to extract information from its table. I am new to perl but I would give my approach below so I could get some help.. In the html file the table is like for example a 1 b 2 c 3 d …

Software Development perl
Member Avatar for katharnakh
0
121
Member Avatar for abhijeet_raj

Hi, After installing jdk1.5 my program is compling but at the time of execution its giving error as Exception in thread main java.lang.NoClassDefFound error.I think it is problem of classpath.

Software Development java
Member Avatar for tsr_tvsk
0
170
Member Avatar for ambarisha.kn

Hi, I need some algorithms with syntax to work out logical operations using Standard template library(STLs). Please get me some examples of these or teach me regarding logical operations using STLs.

Software Development c++
Member Avatar for ambarisha.kn
0
99
Member Avatar for heshan

Hi, I have written a web service and have deployed it using Apache Axis2. What I want to do is to invoke this service using a python script. Can anyone point me in the direction of how to do this. I will be grateful If anyone can give me a …

Software Development apache python xml
Member Avatar for heshan
0
597
Member Avatar for wellibedamned

okay, this one's supposed to take n numbers, ints/floats, sort them, spit them out... now i have my code, and it looks fine to me, i'm doing bubblesort while checking with a bool function is the first larger than the second string... if i use two numbers, it works fine …

Software Development c++
Member Avatar for wellibedamned
0
211
Member Avatar for ganeshk

Hai All, i have just completed a course in learning VB.net and would like to do a small project using VB.net. It would be of great help if anyone could suggest a project. -Ganesh

Software Development vb.net
Member Avatar for hollystyles
0
219
Member Avatar for jainendra.shah

hi frds. i want to get path of new created folder by save file dialog box. hope you will help me

Software Development
Member Avatar for jainendra.shah
0
50
Member Avatar for SubProf

Hello, I have a textbox which I write data out to. I use "\n" to make sure that the next line of data is written on a new line. This works but I keep getting an unwanted character at the end of each line of data written. It looks like …

Software Development
Member Avatar for SubProf
0
96
Member Avatar for november_pooh

Get Specific data from datagrid. i mean when i select row on datagrid, program will return value in that row. Any Help will appreciated. thx

Software Development vb.net
Member Avatar for Jx_Man
0
123
Member Avatar for ambarisha.kn

Hi, I want to replace the numbers which are less than 5 in a container. So i write a code as follows. But it is not working. Please get me the solution for this. Destination container should be V2 itself. Where we have to specify destination container. [code] replace_if(V2.begin(),V2.end(), //range …

Software Development algorithm c++
Member Avatar for ambarisha.kn
0
107
Member Avatar for JeffN00B

I have a headache over this one. what i am trying to do is take the text from a multi-line textbox and put it into one line so i can put that into a file for another program to read one line at a time. is there some way to …

Software Development vb.net
Member Avatar for dadelsen
0
236
Member Avatar for Arijit Manna

Hi :) Iam preparing a report on VB6. I wish to have my report printed in the DOS mode using a DotMatrix printer. How will I do it, since Iam not working on the command prompt. Is there any way to solve this issue? Are there any general rules irrespective …

Software Development printer visual-basic
Member Avatar for Arijit Manna
0
301
Member Avatar for camproject

I have a file dialog.i have filtered out the type of file i need.but how could i open the file in the application after selecting it?after clicking "open" in the dialog , i need to see the file.

Software Development c++ file-system
Member Avatar for Nick Evan
0
330
Member Avatar for QuantNeeds

Hello, So my program (to calculate n factorial) works well, except for one thing, it won’t output correctly after 12. My other 2 projects working with factorials ( calculating the constant e and e^x) worked because I used data type long. I tried doing it with my program but it …

Software Development c++
Member Avatar for Salem
0
123
Member Avatar for pukebag

Hi there, I have a mixed list containing strings, integers, strings with numbers both prefix and suffix and mixed case strings as follow: mixedlist = ["cake", 12, "cakecar", "cAKe", "orange", "apple", "1cake", "cake1"] I'm trying to filter the list for any element containing "cake" so I get a new list …

Software Development apple python
Member Avatar for vegaseat
0
148
Member Avatar for caribedude

Is this supposed to play on my computer? I can't get the PMIDI module to work. I can write a code and it doesn't show and error, but I can't hear anything. I'm sure the codes are well written(mostly because I've used examples from other places) so does anyone know …

Software Development python
Member Avatar for vegaseat
0
126
Member Avatar for VernonDozier

I'm pretty new to Visual C#. I have a class called Node and a [ICODE]List[/ICODE] of Nodes called children. The goal is to make a Node tree. Each Node except the root Node has exactly one parent. Each Node has 0 or more children. To that effect, as part of …

Software Development c#
Member Avatar for VernonDozier
0
160
Member Avatar for merkuries

It's my revision question. Please help... Create a Class Employee. This class holds member variables: employee number and salary. It has an array of 4 employees and includes 4 employee number and salary. Has 2 member functions: Get() employee detail, namely number and salary Display() employee detail Create main() I'm …

Software Development c c# c++
Member Avatar for merkuries
0
172
Member Avatar for dr_kac

Hello! I would like to sort (by number) a file of data that looks like below: ABGH SDFDS 123 SDFS sDF 12 ... Can somebody help me? Thanks

Software Development python
Member Avatar for bvdet
0
139
Member Avatar for Alex Edwards

Correct me if I'm wrong but... Each time I declare an object without assigning it a value, I am instantiating it (so long as the valid constructors is called upon doing so--) like... [code=c++] Triangle tri1 (3, 4); [/code] and this object exists on the stackk but only for the …

Software Development c++
Member Avatar for Alex Edwards
0
218
Member Avatar for hazmatt

I found some open source code written in C that does most of what I want for a project and am having some trouble making the modifications I need. I am hoping the solution will help me better understand pointers and memory allocation as well. The original code takes in …

Software Development c open-source
Member Avatar for hazmatt
0
129
Member Avatar for beelzibub

[ICODE] ... am i right to think that the call in the main ( new Grid ...) sets up the board then the (new Che ...) calls to set up the men/pieces which it does (i hope) but it also encounters a setLayout(new Grid ...) which iverwrites all the (new …

Software Development java java-swing
Member Avatar for Alex Edwards
0
160
Member Avatar for dnalor

package packagePgmaLibrarySystemRolandgasparDizon; import javax.swing.SwingUtilities; import java.awt.BorderLayout; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JFrame; import java.awt.Dimension; import javax.swing.JLabel; import java.awt.Rectangle; import javax.swing.*; import java.awt.*; import javax.swing.JSlider; import java.awt.GridBagLayout; import javax.swing.border.SoftBevelBorder; import javax.swing.JScrollPane; import javax.swing.JTable; import java.awt.GridBagConstraints; import javax.swing.JButton; import javax.swing.BorderFactory; import javax.swing.border.EtchedBorder; import java.sql.*; import java.awt.event.*; import javax.swing.ImageIcon; import java.awt.SystemColor; import java.awt.Color; …

Software Development java java-swing mysql
Member Avatar for masijade
0
174
Member Avatar for cheguashwini

Hello, I am new to proogramming and I need read the elements from two csv files into a 2 vectors and display the elements of vectors. The csv file is in the following fomat: 200, New york, -23.456, 23.455 201,Chicago,-34.5434,34.546 ..... ..... After that I have to perform string matching …

Software Development c++ display
Member Avatar for VernonDozier
0
5K
Member Avatar for DustinS

I just started messing with Python, and was having a great time with entering Tkinter GUI commands into the Python shell (ActivePython 2.5). Its fun entering commands one at a time and seeing components appear real-time (instead of normal process of having to compile the whole thing first). Anyway, I …

Software Development gui python tkinter
Member Avatar for DustinS
0
7K

The End.