43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for sinatra87

I recently received an 'A' on a program I submitted for the programming course I'm currently taking. I'm on spring break and I was hoping to use my spare time to do some studying, so I took my 'A' program and tried to run it in Visual Studio Express, and …

Software Development c++ visual-studio
Member Avatar for sinatra87
0
2K
Member Avatar for Venku Tur'Mukan

print "Hello, World!" ;) Hi, everyone, Venku (a.k.a Python Newb) here. I just kind of randomly opened up Python today (I do that a lot), and I decided I would finally ask this: What does the "is" statement do in Python 2.7.1 (if the ver# matters)? I checked out the …

Software Development python
Member Avatar for Venku Tur'Mukan
0
806
Member Avatar for fibbo

I just cant get my head around it. Is there another way going through a singly linked list without using some kind of helper function? The header file wants me to implement: [CODE]size_t priority_queue::size() { /* code here */ }[/CODE] Now I just could create a helper function that has …

Software Development c++ linked-list queue
Member Avatar for fibbo
0
368
Member Avatar for zetologos

I have this homework assignment to make a calculator using a stack and converting infix to postfix. My infix to postfix method works fine. But the other method to evaluate it works for all cases except when multiples or divisors result in double digits. My calculator does not support double …

Software Development java
Member Avatar for tunlinaung
0
108
Member Avatar for ChrisHunter

Hi, i'm trying to implement a print function and i can print a single string out but i'm having trouble configuring the page setup properly, mainly moving to a new line when the margin of the page is reached and moving to a new lines for each string in a …

Software Development c#
Member Avatar for ChrisHunter
0
160
Member Avatar for GaBack

i want to make a tictactoe game. But i want all the rules are on the classes and call them to GUI. How can i send the ClickHandler public to the GUI??? here is the class code: ( public void ClickHandler ) [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; …

Software Development gui
Member Avatar for GaBack
0
252
Member Avatar for xanawa

i would like to show an image in a datagridview cell giving the path of the image.. how can i do so?

Software Development image vb.net
Member Avatar for Mitja Bonca
0
1K
Member Avatar for macca1111

HI, I have written a small program that uses a while loop to calculate how many years it takes for an investment to double given an interest rate: However, I think there is something minor wrong with the calculation for years, since when testing I put in 100% it should …

Software Development python
Member Avatar for NoddyNUIG
0
4K
Member Avatar for kirtee2209

Hi. i need to count the number of times a button has been clicked in C# windows application. for asp websites i know how to do it using viewstates but i dont know how to do it with windows form application. Any help will be greatly appreciated.

Software Development
Member Avatar for kirtee2209
0
3K
Member Avatar for WolfShield

Hello everyone, I am creating a C# application that has a Web Browser imbedded in it. I am using Microsoft Visual Studios C# Express Edition so I just dragged and dropped the web browser into the application. What I notice though, is when I run it and do a search …

Software Development web-browser
Member Avatar for WolfShield
0
128
Member Avatar for dnk

Hello all.. I'm looking for how to count words in textbox. Any help will appreciated. Thank you.

Software Development visual-basic
Member Avatar for dnk
0
3K
Member Avatar for jarograv

[CODE]#created by Jaron Graveley #April 26th, 2011 #This program completes reservations for Jon Von Poechman’s airline in an easy to use program #variable list: #i=counter used to limit the number of seats present on the diagram #n= counter to display the row number on the diagram #num_booked=counts the number of …

Software Development python
Member Avatar for jarograv
0
249
Member Avatar for xanawa

how can i send an email frm c# pls?

Software Development email
Member Avatar for xanawa
0
105
Member Avatar for wenbnet

i m using vb.net with oledb connection when retrieving data from EMP database i m getting error as syntax error(comma) in query expression 'eno='1',lname='',fname='' And FromPay=## And ToPay=##' plz help... [CODE] Private Sub PopulateNameList() Dim Connection As New OleDbConnection(ACCESS_CONNECTION_STRING) lvName.Items.Clear() lvName.Sorting = SortOrder.Ascending Dim cmdfill As New OleDbCommand("SELECT eno, lname …

Software Development vb.net
Member Avatar for wenbnet
0
333
Member Avatar for pooran.c

that is expected output is [CODE] sun mon tue wed thu fri sat 1 2 3 4 5 6 7 8 9 10 .... ... ... 29 30 31 [/CODE] my code: [CODE]static void print_31days(int a[][]){ int i=1; while(i<=31) { int some=0;//some is the startdate of the month of the …

Software Development java
Member Avatar for pooran.c
0
166
Member Avatar for girishsp

hi all, i need to develop windows applications(c#,mysql)as i have started to develop applications recently i need some examples to refer(which includes almost all controls) may be like customer maintenance or order placement form etc..so can any one help me out.. thanks a lot,

Software Development c# mysql
Member Avatar for abelLazm
0
266
Member Avatar for umesh314

Hi all , i have a string var containing info like this. [B]STRING[/B] = "Are you posting in the most appropriate place [B][COLOR="Red"]PKG0620_REL_23_Nov_2010[/COLOR][/B] to receive relevant replies" So, my program will ask only "PKG0620" info to be given by the user which i am storing in SEARCH var. SEARCH = …

Software Development regex vb.net
Member Avatar for umesh314
0
127
Member Avatar for DYP

i've a problem to split a joining multipe type of file here's my code for joining two diff type file, pict file (jpg) and audio file(mp3) an ouput is pict file contains audio file in it. a problem is how do i check this file is joining file or not? …

Software Development audio file-system python
Member Avatar for DYP
0
187
Member Avatar for Sravanthi Ch

Hi, I need code to invert the selected items in list view. Can any one help me out.. Thanks in advance for help.. Regards, Sravanthi Ch

Software Development listview
Member Avatar for Sravanthi Ch
0
386
Member Avatar for akaban

How can i create a task to run a program by coding in vb6 and 2010

Software Development visual-basic
Member Avatar for Jx_Man
0
493
Member Avatar for predator78

Hello I'm learning a bit about data structures for the first time and so far I seem to understand how they work "I think" at this stage. My questions at this point would be. 1. Are data structures essentially classes minus methods which can preform actions on the memebers that …

Software Development c++ data-structure
Member Avatar for NicAx64
0
380
Member Avatar for aprilchica3

Hello, I have spent numerous hours re-working this code and I hope someone can clear up my confusion! This program asks the user to enter a file name which will then create and display that file with a poem in all caps. The user is again prompted to enter another …

Software Development c c# c++ ios
Member Avatar for aprilchica3
0
178
Member Avatar for Krstevski

Hello friends, I searching for "Combination generator" and I found something but not this what I need me... I want to write a script who will generate all possible combination by given string and range of length. e.g. string = "daniweb" length_range (3, 5) The results should be: _____________ ddd …

Software Development python
Member Avatar for Tech B
0
116
Member Avatar for sergent

This is when I try to output uninitialized characters on the screen. I thought C++ should declare all of them to 0's (or '\0' for characters) when I declare them without initializing?

Software Development c++
Member Avatar for NathanOliver
0
113
Member Avatar for twigan1015

Im trying to make an application that collects how many items were sold and which items they were, I was thinking something like this for checking the upc number, to see if it matches the names in the “files” [CODE] Select Case TextBox1.Text ' 0921115150 “Dark Chocolate Truffles”, 2221001501 “ …

Software Development display listview vb.net
Member Avatar for Unhnd_Exception
0
190
Member Avatar for gruffy321

hi all , can i access the parallel port using c`s assembly language syntax and using windows 98 se as the os or xp if i could (dont think xp is possible though, i dunno?) AOAP Thanks for reading , gruffy bw , if is possible can i get direction …

Software Development assembly c
Member Avatar for gruffy321
0
512
Member Avatar for Kuroshi

I made a program using Sockets, pretty interesting, but I have found some "problems" that bother me, my game is threaded and in its run method it has a lot of if statements for the different behaviors when it receives a certain String from the server. Is there any other …

Software Development client-server java
Member Avatar for Kuroshi
-1
1K
Member Avatar for L0s3r

[CODE]class mymatrix{ private: int** arr; int m ,n; public: mymatrix() { std::cout<<"\nConstructor entered."; std::cout<<"\nEnter no. of rows of the matrix:"; std::cin>>m; std::cout<<"\nEnter no. of columns of the matrix:"; std::cin>>n; arr = new int*[m]; for(int i=0;i<m;i++) { arr[i]=new int[n]; } std::cout<<"\nConstructor exited."; } /****************************************************************************************/ mymatrix (mymatrix& t) { m=t.m; n=t.n; std::cout<<"\nCopy …

Software Development c++
Member Avatar for L0s3r
0
190
Member Avatar for Labdabeta

I am making a diplomacy tool, for the board game diplomacy. I need to make a map of each territory. I have a 75 #define MAP_"NAME" lines but I don't know how to set them to a mask value that can be checked since I don't know any 75-bit or …

Software Development c++
Member Avatar for Labdabeta
0
202
Member Avatar for lu2lu

Hi I wrote a script for class that took one specific file as an input. Ideally, it should be able to take any file as an input. How do I do that? Someone suggested using $@ since is a global variable but I'm kinda confused on how to implement it. …

Software Development shell-scripting
Member Avatar for lu2lu
0
166
Member Avatar for Skeldave

Hi, Could someone explain to me how to create, store and manipulate variables please? At the moment i have this but I get errors: [code] BUTTONPRESSED DEFINE 0x000000 LDR r4, =BUTTONPRESSED ;Seems to be ok ADD r4, r4, #1 ;Seems to be ok MOV BUTTONPRESSED, r4 ;'Operand Syntax Error'[/code] All …

Software Development assembly
Member Avatar for Skeldave
0
108
Member Avatar for jrp370

i have a few .c files, pro3.c is the only file that complies without a problem however when i go to compile the other ones i get a error message: warning useless storage class specifier in empty declaration, i was hoping someone could tell/show me what i am doing wrong. …

Software Development c storage
Member Avatar for Narue
0
503
Member Avatar for tikoti

Hi! I am looking for something to compact the clear and push_back in one line... [CODE] std::vector<int> v(3,100); v.clear(); v.push_back(4); [/CODE] I have thought that vector::swap may be usefull for this task but still figuring out how. Any sugestion or idea? Thank you in advance!

Software Development c++
Member Avatar for tikoti
0
172
Member Avatar for dyingatmidnight

Okay this feels like a really silly question. Values that I have set to private should be able to be used through out that class alone, yeah. Say I have this: [code] #include <iostream> using namespace std; class Telegram{ public: Telegram(); ~Telegram(); void getData(); private: int **telegram; int rows, cols; …

Software Development c++
Member Avatar for Narue
0
96
Member Avatar for xanawa

i have datagrid view which uses dataset.. i would like to filter my datagridview by idCardNumber (getting it from the textbox1) how can i do so? could u explain pls?

Software Development dataset
Member Avatar for xanawa
0
98
Member Avatar for aska07

I got a dataset which contains the following data: id code description eff_date end_date --------------------------------------------------------- 1 ADV ADVANCE 2007-12-01 2007-12-31 2 ADV ADVANCE 2008-01-01 3 BUS BUS TICKET 2005-03-09 2007-04-05 4 BUS BUS TICKET 2007-04-06 5 PET PETROL FEES 2008-01-02 2009-10-11 6 PET PETROL FEES 2009-10-12 7 BOK BOOK 2010-01-01 …

Software Development dataset listview vb.net
Member Avatar for aska07
0
159
Member Avatar for Naruse

Hi, Anyone know how to delete items from recycle bin? please help. Best regards.

Software Development visual-basic
Member Avatar for smith.mitchell7
0
182
Member Avatar for get connected

Hi Guru's I would like to be able to run code from a text file - is that possible. Ideally multiple applications will read this file and all behave according to the code inside the file. rather than having to keep rebuilding and distributing new versions./ I can't think of …

Software Development vb.net
Member Avatar for get connected
0
118
Member Avatar for xanawa

[COLOR="Red"]txtIDCardNo.Text = c.IDCardNumber.ToString();[/COLOR] why is it giving me a [COLOR="Red"]nullreferenceexception[/COLOR]?

Software Development
Member Avatar for xanawa
0
105
Member Avatar for razree

Hi all I have a simple program which calculates some values for me. Let's say I receive some money in advance, go to a trip and spend some money there (not necessary in the same currency that I received advance in. Now if I spent more money then advanced, I …

Software Development vb.net
0
120
Member Avatar for jackmaverick1

Hi! I'm learning how to make a GUI in Java. I'm wondering how to add a JThingy (JLabel, etc) without the use of the add(NameOfJThingy); Because add(); isn't static, you can't use it in a static function (like main, which must be static). I've seen that the constructor can help, …

Software Development gui java
Member Avatar for JamesCherrill
0
151
Member Avatar for geekme

while debugging my code in code blocks I always get this error "<filename> - Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! what should I do?

Software Development c++
0
62
Member Avatar for JJHT7439

I have a quick question that I'm hoping someone can help me with on here. I have 2 2d int arrays that I create for a board state and a solution that look something like this: int[][] P1 = new int[][]{{0,2,0,0,0,0},{0,0,3,0,0,0},{5,0,0,0,0,0} etc. ect. They're 6x6 arrays and I need a …

Software Development java
Member Avatar for JJHT7439
0
136
Member Avatar for wildplace

how do i move the value of %eax to the memory location of %0 [CODE] int size 10; long *list = (long*) malloc(size*sizeof(long)); asm( movl $999, %%eax movl %eax, (%0) // this is what im trying, how do i fix it? :"=r"(list) :"0"(list), "a"(strLen) );[/CODE]

Software Development c
Member Avatar for wildplace
0
123
Member Avatar for adixovi

Hi, this is a clue game in prolog. [B][U]I'm posting it to thank everyone that takes the time to post and help people, like me.[/U][/B] The program is spanish, cause in from México, but it's a clue game. Features: Write and read *.txt files, and use their content to compare …

Software Development gaming
0
160
Member Avatar for yancouto

EDIT: My problem was solved. :) But I have a doubt, what is the most effective way to wait for something to happen in java? for example, if I want to wait for a boolean b to be true, does this below work? [CODE=java]while(!b) {} //stuff to do after wait …

Software Development java
Member Avatar for yancouto
0
132
Member Avatar for Sturdy

Hi All,, Same as the title, Can we clear all textboxes in same time? this is possible? Its consume many time to code if we have to write clear code for every textbox. Best Regards

Software Development visual-basic
Member Avatar for Sturdy
0
156
Member Avatar for bLuEmEzzy

any idea how to use autocomplete in the textbox getting the records from database? i tried using the properties of textbox. But if the table is updated then autocompleteCustomSource is not updated... please guide me.. thank u.

Software Development vb.net
Member Avatar for bLuEmEzzy
0
1K
Member Avatar for Mike Bishop

i have a private sub that reads 4 lines of data from a text file, and then uses whats read and stores them in varibles. see below [CODE] Dim FileName As String = configfileV Dim TextFromTheFile As String ' Whole text Dim Lines() As String ' File splitted to lines …

Software Development dataset mssql vb.net
Member Avatar for dxider
0
259
Member Avatar for terabyte
Member Avatar for d5e5
0
355

The End.