132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Haxifix

Hey guys, I wrote a TicTacToe program at my friends house in like 10 minutes, so I am sure I can improve some things. Can someone please give me some idea's on either stuff to add or stuff I can improve on (make more efficient). [code]#include <iostream> using namespace std; …

Software Development c++
Member Avatar for mrnutty
0
151
Member Avatar for mkcee

I am having difficulty reading the following input file Jon 40 Chris 50 Pete 60 what is wrong with this code that I wrote to read the above file. thank you for your help. [code]//***************** #include <iostream> #include <string> #include <stdlib.h> #include <fstream> #include <iomanip> #include<cassert> using namespace std; void …

Software Development c++ file-system
Member Avatar for nutristars
0
228
Member Avatar for Don_leon

How do get the content(Text or Numbers) of a text box in a windows form and take it to the next windows form and use it there.

Software Development
Member Avatar for Geekitygeek
0
93
Member Avatar for jackabascal

It may seem like a simple answer, but how do I pass an image to a bitmaps constructor. for example: [CODE]Bitmap bmp = new Bitmap(########);[/CODE] what would I put in place of the pound signs If i wanted the default image to be C://Users/Me/Documents/Visual Studio 2010/Projects/MyProject/Image.jpg Please help.

Software Development image oop visual-studio
Member Avatar for Geekitygeek
0
187
Member Avatar for shazzy99

How can I read the contents (separate paragraphs) of a .doc /.docx file in C#

Software Development
Member Avatar for Geekitygeek
0
258
Member Avatar for 54uydf

Hey everybody! :) I decided to learn C# by myself..YAY :icon_mrgreen: So I downloaded some book, I'm not sure when it was written, the author suggest to download Microsoft Visual C# 2005 Express Edition. I think there's 2010 and 2008 also, so what would u recommend I get? I know …

Software Development microsoft
Member Avatar for Ketsuekiame
0
121
Member Avatar for Lomko

Hello everybody, i'm a beginner in programming, so I hope someone can help me. I'm programming in Visual Studio 2008 in C++ and I'd like to use the error functionor the complementary one, erf(x) and erfc(x). I've looked for a solution in the internet and I've seen that including math.h …

Software Development c++ visual-studio
Member Avatar for Lomko
0
707
Member Avatar for jackabascal

Say I have a tab control with tabs Tab1 And Tab2. How do I switch the selected tab programmatically, say on button1 click event. Sample code would be appreciated. Thanks in advance.

Software Development
Member Avatar for Ketsuekiame
0
921
Member Avatar for jack.doe77

Hi, I'm using begintransaction to update multi-tables. I need to update one of the table while retrieving some records from that same table before commit. But it seem the table become locked after I inserted a record, and timeout at last. I've looked begintransaction option and try all IsolationLevel with …

Software Development vb.net
Member Avatar for jack.doe77
0
92
Member Avatar for cintojose

I have stucked up with an issue.For my date time picker control I want the day as 1st on any value selected by the user.(day of date part should be 1 for any date).Please help me regarding this......Thank You...

Software Development vb.net
Member Avatar for Luc001
0
88
Member Avatar for SeanC

Hi all, I've got a problem relating to error reporting. In the code posted below, when the user actually presses enter after reading the error, the program does not loop back to the main menu, but merely repeats the error. If I remove the "input.nextLine();" code in line 17, then …

Software Development java
Member Avatar for SeanC
0
90
Member Avatar for prem2

Hi all, I am having a trouble in identifying Java Memory Leakage in my java program.I want to check where the memory lecakage gets occurs.Is any tools are available for the java program to analyze the memory leckage. Thank you, With Regards, Prem

Software Development java
Member Avatar for prem2
0
116
Member Avatar for Quagmire232

Here's the code i've done so far: [CODE]PROGRAM MORSE_CODE_TRANSLATOR; USES CRT; VAR Sentence : STRING[25]; {Maximum of 25 characters in sentence} MorseOut, EnglishIn, EnglishOut : STRING; Count : INTEGER; KEY : CHAR; PROCEDURE AnyKey;Forward; {~~~~~~~~~~~~~~~~~~~~~~EXTRA PROCEDURES~~~~~~~~~~~~~~~~~~~~~~~~~} PROCEDURE AnyKey; {Makes the program move on when any alphanumerical key is pressed} VAR …

Software Development pascal
Member Avatar for Quagmire232
0
543
Member Avatar for johny1980

Hi there i am working on Medical Billing project in vb.net I made Login form and it was run with user name and password. but i also made radio button selection on top for doctor , staff and for admin. so my question is how i connect the useid,password chk …

Software Development open-source vb.net
Member Avatar for finito
0
98
Member Avatar for figuer25

I just coded this implementation of a stack using a singly linked list. Its written in C++ using the STL. I believe I am complete with it but there may be functions I am forgetting or ways to improve/ optimize my code. I tried using exceptions to learn how to …

Software Development c++ linked-list
Member Avatar for figuer25
0
404
Member Avatar for zyrus001

I'm looking to write a program that should be capable of holding around 1000 records, each record will contain a varying number of fields and values. Usually, I'd create a list of dictionaries for something like this but wanted to know if that's the right way to go about it. …

Software Development data-structure python sql
Member Avatar for griswolf
0
321
Member Avatar for omGac0W

Whenever I try and run this my compiler shows a random error and a bunch of binary numbers. I have no idea what is wrong. Am I missing something? Its a program to check if a number is a palindrome. [CODE]#include <stdio.h> #include <math.h> int palindromecheck (int number) { int …

Software Development c
Member Avatar for Ancient Dragon
0
100
Member Avatar for santosh5471

can any body help me in developing a TOUCH SCREEN APPLICATION in VB6

Software Development visual-basic
Member Avatar for jhai_salvador
0
176
Member Avatar for zyaday

People, this is all my code is. I am trying to change an Integer Object to a primitive int, to use them in the getValue and Compute(Integer i) methods . Compiler Says NO.. I have tried both the solutions below ... and got the following errors i.intValue(); // no method …

Software Development java
Member Avatar for java_programmer
0
85
Member Avatar for new_programmer

I have basic idea about malloc and calloc i heard about falloc and dlmalloc, can any one explain about it?

Software Development c++
Member Avatar for new_programmer
0
179
Member Avatar for Peter_TARAS

Hi! I designed a class in Python to do stuffs related to genetic algorithms. I have a method in this class, which should provide a sort of log to keep the track of the populations during the evolution. I mean, I provide the filename as a string argument to this …

Software Development python
Member Avatar for vegaseat
0
17K
Member Avatar for apolochaves

i wrote this code for a simple life game loosely based on Conway's. I wrote an 40x40 integer matrix with random numbers and a 40x40 char matrix based on the previous one, where the numbers 0 to 3 generate an X (alive cell) and the numbers upper 4 generate an …

Software Development c gaming
Member Avatar for Adak
0
124
Member Avatar for Archenemie

Hi, id like to set values for a botton is wxpython by taking that value from a text file. For this code [CODE]button = wx.Button(parent, label = “x”)[/CODE] and for example on the 1st line of the text file id like to read x. Ive played about with this a …

Software Development python
Member Avatar for Archenemie
0
115
Member Avatar for sudoku43

hello, im newbie here and also newbie in c++. I have a problem with char data type. I try writing the code input character 'D', 'd', 'R' and 'r'. if input are correct, the output will be 'OK' but turn out, even I give input other character, still give the …

Software Development c++
Member Avatar for RogueEffect
0
168
Member Avatar for crodriguez08

Hey there, I'm having trouble getting my program to display the students and class summary using classes. What I'm unsure of is where the problem lies, whether it is a displacement of set/get functions or the content in my StoreStudent function is incorrect, or perhaps something else I might have …

Software Development app-store c++ display
Member Avatar for mike_2000_17
0
389
Member Avatar for Tcll

I need help counting the number of times a particular number is used in a text file... and to output a number of results to a text file... eg: [B](input.txt):[/B] 01 40 39 01 72 39 36 56 72 82 39 ### 56 62 38 03 03 06 38 30 …

Software Development python
Member Avatar for Tcll
0
104
Member Avatar for asad_80

Hi, I am having issues while comparing of cards.As i starts the card game and clicks on first button the card opens and when i click on the any other button if the button i have clicked matches with the image on the first button both the cards stays open …

Software Development java java-swing
Member Avatar for NormR1
0
90
Member Avatar for jackabascal

[CODE]private Bitmap _picture = new Bitmap(@"<C:\Users\Jack\Documents\Visual Studio 2010\Projects\Animotion1.0\DefaultCharPic.jpg>");[/CODE] as a datamember to a class? Can I just not assign Bitmaps as members?

Software Development file-system visual-studio
Member Avatar for Zinderin
0
220
Member Avatar for goody11

Hey, I wanted to make a program that could open up and control another program...Specifically, I wanted to write a program that could open up google chrome, open 2 extra tabs, have each of the tabs go to hotmail, and then each auto-sign me in to my 3 different e-mail …

Software Development c++
Member Avatar for goody11
0
230
Member Avatar for comSysStudent

Below is code taken from [URL="http://download.oracle.com/javase/tutorial/java/javaOO/QandE/enum-answers.html"]Sun Java Tutorial[/URL]. From my reading of the code the first time this loop executes should it not populate cards[1] with the first card skipping cards[0]? I've tested the code in eclipse and it seems to work properly first populating card[0] so I'm hoping somebody …

Software Development java oracle
Member Avatar for comSysStudent
0
102
Member Avatar for figuer25

Hi so I am just trying to figure out what is wrong with my program. I am trying to implement the node class in C++. All I want to do is learn how to implement it and get it working. I am not trying to use it to create a …

Software Development c c# c++ linked-list
Member Avatar for figuer25
0
1K
Member Avatar for tundra010

Hello all As the title suggests, I have tried to write a sorting program in C++ The code compiles right, but does print the sorted numbers, but rather prints a list of zeros. I have tried to find the cause of this error for a while, but I can't seem …

Software Development c++
Member Avatar for tundra010
0
203
Member Avatar for edoscope

Hi, I am having a very hard time understanding what I am doing wrong here. I am trying to read from a file into a struct array, however it stops working properly after a short while. my data in the file is in the following format: Last, First Name ID …

Software Development c++ data-structure
Member Avatar for blackrainbowhun
0
159
Member Avatar for anny**

me Anny here !! I want help plzz actually m going to make programmable dynamo graph .Its a weight machine with circuit and that circuit is interfaced through port to a computer Now i have to create a program that show a graph between voltage and weight but how is …

Software Development c++
Member Avatar for selfrules
0
251
Member Avatar for Grusky

I am trying to create a simple matrix class. When an object of class matrix is created it should be able to create any nxn size matrix. The problem I am finding is that there doesn't seem to be a simple way to make a class with a dynamic 2D …

Software Development c++
Member Avatar for r.evrard
0
168
Member Avatar for sudoku43

any idea how to create a loop if user input wrong characters..?? i tried to do while loop but it never works.. anyone..?? [CODE]#include <iostream> using namespace std; int main () { double input_x, number; cout << "Insert value: "; cin >> input_x; char choice ; choice = 'D', 'R', …

Software Development c++
Member Avatar for r.evrard
0
164
Member Avatar for Jollyyy100

Am working on a project using vb.net and i have connected a database to it. I have an employee table within that and now i want to create a search box in vb.net where by if i type the employee-number of the employee i can get access to his or …

Software Development vb.net visual-basic
Member Avatar for Jollyyy100
0
2K
Member Avatar for joshalb

Hello. I'm trying to store a child class into it's a pointer of it's baseClass, like this: [code=cpp]baseClass*test = new subClass;[/code] Which works and all, except I'm having trouble using 'delete' to destroy the newly created subClass. So something like this: [code=cpp]baseClass*test = new subClass; delete baseClass;[/code] Here's a more …

Software Development c++
Member Avatar for arkoenig
0
161
Member Avatar for Haranadh

Hi I am looking for the code Snipet which can validate the IPv6 address which is given as string format. IPv6 Address string validation, If any one tried code can you share? Mean while i also started writing code if i completed that i will share the same. Thanks a …

Software Development c++
Member Avatar for tundra010
0
363
Member Avatar for discovery-power

Hi All, I have written a sub routine for a Save>Menu option for a MDI Text Editor, Please see my code below [CODE] Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click Dim f As Form2 If f.Text = "Text Editor V.2 - New Document" Then SaveAsToolStripMenuItem.PerformClick() …

Software Development vb.net
Member Avatar for ÜnLoCo
0
137
Member Avatar for comSysStudent

Hi guys, Just a quick question, I'm working on a general stack class for use with my card game and rather than creating an overloaded constructor for every single object and primitive type I'm wondering is there a way to supply the data type when invoking a basic constructor? Basically …

Software Development data-structure java
Member Avatar for comSysStudent
0
140
Member Avatar for dragontruong

I have an assignment that requires me to not use an array with [] at all throughout my code, read a file in a certain way, and I need a better understanding with malloc as well with pointers. The code with the [] is pretty easy for me, but pointers …

Software Development c
Member Avatar for jihan sultana
0
165
Member Avatar for jrcagle

So I was thinking that there would be a simple Pythonic way to delete a directory structure. My app creates and deletes user accounts, which may contain any number of subdirectories and files. Hence, I wanted to do something like: [code] os.rmdir(user_directory) [/code] BUT...that throws an error when user_directory is …

Software Development python
Member Avatar for pythonista
0
141
Member Avatar for Trekker182

Hello everyone, I'm trying to connect to a access 2007 database with VB 9 and am having some problems. I went to Data and then selected add new datasource. Then I clicked on database and selected Next. I click on new connection, change the datasource to access database file and …

Software Development vb.net
Member Avatar for chirag.makwana
0
238
Member Avatar for assafey

Hey, I am trying to get the html source of a web site but getting an "Internal Server Error (500)" instead. Why is it? What can I do? This is the code: [CODE]Public Function GetHtmlDocument(ByVal URL As String) As IHTMLDocument2 Dim request As HttpWebRequest = WebRequest.Create(URL) Dim response As HttpWebResponse …

Software Development vb.net web-server
Member Avatar for discovery-power
0
192
Member Avatar for Don_leon

how do I populate a datagrid in a smart device with data from a sql database(not SQL CE)

Software Development
Member Avatar for AngelicOne
0
70
Member Avatar for chade25

Hey, I am trying to find a good C book that is dedicated to low level programming. Any suggestions? If it could skip all the beginner stuff, that would be great. Also, a side note, I am interested in making my own compiler. Are there any books that study this …

Software Development c
Member Avatar for gerard4143
0
130
Member Avatar for ganesh_IT

Hi guys is this possible to write a biggest number program( biggest among 3) in a single line

Software Development c
Member Avatar for 0x69
0
88
Member Avatar for anu john

Hi. plz tell me how I can connect to an SQL server to an microcontroller or a PC using C language.... Plz reply soon....

Software Development c sql
Member Avatar for 0x69
0
1K
Member Avatar for reza.adinata

Hi all, I am trying to make an array of folders and want to basically take all files inside the folder. However, I got an error saying "missing a $ loop variable". I have add a $, and worked around with this codes, but still did not work .. Is …

Software Development perl
Member Avatar for reza.adinata
0
117

The End.