43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for cppgangster

I have strange problem and I dont know where it does come from. First I list here the struct I have problem : [CODE] struct _THREADPARMS{ //global definition in one of my header file HWND h_wnd; BOOL bContinueAccept; BOOL bConnected; CProgressCtrl* pProgress; CDialog* pDialog; }; [/CODE] then I declare global …

Software Development c++
Member Avatar for cppgangster
0
715
Member Avatar for PrimePackster

Hello Guys, Well i have a problem, I coded a program to print the ascii table, then give the user a option to either convert character into ascii or ASCII to character. Well the latter is not working, and the loop to print the ascii table is having the same …

Software Development c++
Member Avatar for PrimePackster
0
250
Member Avatar for sandman64

I'm trying to change the user inputted date into a date object so that i can format it into a date format then display it in the selected format in the textarea [CODE] import java.awt.*; import java.awt.event.*; import java.awt.CheckboxGroup; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class radiobutton …

Software Development java
Member Avatar for sandman64
0
194
Member Avatar for Srinivas0

[CODE]#include <iostream> using namespace std; class Reverse { int n,num,dig,rev; public: void Rev() { cout<<"enter an integer number to check if it palindrome or not \t"; cin>>num; n=num; // rev=0; while(num>0) { dig=num%10; // 48%10=4 rev= rev*10+dig; // rev=48*10+4=484 num=num/10; //484/10 =48 cout<<num; } if (n==rev) cout<<"given number is palindrome"; …

Software Development c++
Member Avatar for Srinivas0
0
172
Member Avatar for skylinepkr

I have made a tetris game on my own and am trying to have options in the menu where when clicked, will change the frame to that size such as small, medium, large. I am trying to do this on a frame and at first I tried setting the preferred …

Software Development java
Member Avatar for skylinepkr
0
125
Member Avatar for l1nuxuser

Hello everybody i'am building a software to make lab management. So I need to save the data base. and i using SQLite. but I have problem the SQLite pramter is a const char. and the data from the software are CString. and becouse I using Unicode I can't convert them …

Software Development c++ sqlite
Member Avatar for kndubey88
0
672
Member Avatar for aldeene

can I use the try...catch statement on java to stop the execution of codes on error? just like the exit sub on vb

Software Development java
Member Avatar for stultuske
0
158
Member Avatar for babyhuyx

[CODE]int game = 3; int ckenonum; const int hkenostore = 4; int hkeno[hkenostore]; const int ckenostore = 4; int ckeno[ckenostore] = {1,2,3,4}; bool kenopass = false; for(int hkenostore = 1; hkenostore<4; hkenostore++) { do{ cout<<"Please enter a unique number between 1 and 15 (" << hkenostore << " of 3)\n"; …

Software Development c++
Member Avatar for cutenaj12
0
2K
Member Avatar for SheepGotoHeaven

I'm having issues with generating tokens for the game of nim. Currently all im trying to do is get the generation of the tokens down in the canvas. I recently figured out that you can not add an object of the same name to a children collection if that object …

Software Development c#
Member Avatar for SheepGotoHeaven
0
245
Member Avatar for Daigan

Hi. So here's my code [CODE]public class TextFileIO { static Console c; // The output console static int total; public void askData () { int line = 0; int i; c.print ("Enter the number of words you're going to input: "); total = c.readInt (); File dataInput = new File …

Software Development java
Member Avatar for Daigan
0
237
Member Avatar for sirlink99

I am trying to make a storyboard program, but I am having trouble displaying the currect amount of windows per page. my basic program looks like this [] = button to open editor [+] = add new button [>] = next page [<] = previous page Frame [] [] [] …

Software Development java java-swing
Member Avatar for sirlink99
0
143
Member Avatar for Ty88

Hello everyone, it's my first time posting here and it's an urgent matter as I need the solution to this by midnight tonight :/ I'm really struggling with the all Big-Oh notation thing and I could really use your help. I have this C++ code: [CODE]void Teste::listarMaisAfastados() { int maior …

Software Development c++
Member Avatar for Ty88
0
221
Member Avatar for sofia85

Hi, I have a large file (11 GB), that I want to extract information from. I decided that the file was to big to work with, so I ended up with splitting it into 20 smaller files. Now I don't know what the smartest thing is to do with these …

Software Development python
Member Avatar for sofia85
0
148
Member Avatar for BlZbB

hello everyone I write project, there is problem in linking of my code [CODE] Error 1 error LNK2005: _str_list already defined in file1.obj string-test\file2.obj string-test Error 2 error LNK2005: _str_list already defined in file1.obj string-test\str.obj string-test [/CODE] think this is my code, anybody have any idea [B]main.c[/B] [CODE] int main() …

Software Development c
Member Avatar for WaltP
0
258
Member Avatar for paranoidSandra

hi everyone!i'm working on a project and i'm getting two errors of the type mentioned in the title. here's the part of the code that generates the problem: [CODE] #include "Instance.h" //default constructor Instance::Instance(unsigned features) { num_of_features = features; fileName = "-"; category = true; keywords = new string[num_of_features]; featureID …

Software Development c++
Member Avatar for paranoidSandra
0
175
Member Avatar for Daigan

Hi. So my problem is that my loop doesn't stop. Here's my code. [CODE]public void askData () { String word; String stop = null; int line = 0; File dataInput = new File ("dataIn.text"); c.println ("In order to stop, just leave it blank."); c.println (); while (true) { try { …

Software Development file-system java
Member Avatar for Daigan
0
171
Member Avatar for gourav1

[CODE]#include<stdio.h> #include<conio.h> struct egde { int nodeno; struct edge*next; }; struct node { int nodeno; struct node *next; struct edge *link; }; struct node*graph=NULL; typedef struct node node; typedef struct egde edge; node*find(int); void insert_egde(); void insert_node(); void display(); int main() { int ch,i,j; do{ printf("\ninsert node"); printf("\ninsert edge"); printf("\ndisplay"); …

Software Development c
Member Avatar for mikrosfoititis
0
254
Member Avatar for jemz

Hi, Can you help me please.I want to learn cobol language i have already editor the old version of microsoft "cobol compiler version 2.20"...first thing i want to know on how can i print the "Welcome in Cobol".can you help me please in step by step...saving the code,compile and run …

Software Development cobol
Member Avatar for TrustyTony
0
133
Member Avatar for Srinivas0

[CODE]#include <iostream> using namespace std; class LoopEx { int x,y; public: void Ex; { x=3; y=x; // y=3 while(y<=1) // 3<=1 y--; // 3, 2 x=x*y; // x= 3*3=9 cout<<x; } }; int main() { LoopEx F; F.LoopEx(); return 0; } [/CODE] im trying to write a program for factorial …

Software Development c++
Member Avatar for Srinivas0
0
109
Member Avatar for awmantonio

Hi! I have a problem in Crystal Reports on VB.NET 2008. I have two GroupHeaderSection, one is grouping per Department and the other is per Section. Under the Section grouping, I have series of Summaries, i.e. EmpA, EmpB, EmpC. These summaries are the Sum of all the workOutputHrs of employees …

Software Development vb.net
0
93
Member Avatar for gourav1

can anyone explain me this concept that "static members of a class can access only static variables?" any simple code as an example to show this?

Software Development java
Member Avatar for gourav1
0
106
Member Avatar for LateNightCoder

In my program I read in a text file an decrypt the text from an array. once decrypted i then have to do through it again and search for every tenth array member and show their memory location. The code so far: [CODE] int main( ) { int* pCrypted = …

Software Development c++ motherboards-cpu-ram
Member Avatar for LateNightCoder
0
422
Member Avatar for creative_m

I am trying to implement an enrollment organizer for a university but I would ask how to implement the aggregation relationship in Java. this relationship exist for academicStaff class and the supervisor class in which the academicStaff (e.g prof.) can be a supervisor to multiple courses in a specific semester. …

Software Development java
Member Avatar for JamesCherrill
0
192
Member Avatar for carmstr4

Hey guys, Is it possible to change the color of characters in a list if they do/dont meet certain conditions? So here's my code: [CODE]def checkWord(real, guess, remReal, remGuess, wrongSpot): # Format the letters so user knows whats wrong/right fullWord= real # Create copy list of real word realWord= list(fullWord) …

Software Development gaming python
Member Avatar for carmstr4
0
1K
Member Avatar for VIPER5646

I have two arraylists. The JobArraylist gets adresses from a database table and JobIDArray Gets the ID for those addresses. I'm populating a Combobox with the JobArrayList which is working ok. When I select a an address in the combobox I use the sectectindex to get the AdressID from JobIDArray. …

Software Development vb.net
Member Avatar for VIPER5646
0
152
Member Avatar for twistercool

Just a Question on C programming basic some instructors have different ways of using either getche() or return 0; as bottom code on main function. Which is more better to use getche() or return 0;?[code]Getche() vs return 0;[/code]

Software Development c
Member Avatar for Moschops
0
277
Member Avatar for JavaPrograms

The issue with my program is that it does not calculate how many times the specific value has occurred. I believe that I have everything in place, but I'm not sure to as why it wouldn't work. Any help and/or feedback is kindly appreciated. Thanks! Ok, so basically this program …

Software Development java
Member Avatar for bibiki
0
485
Member Avatar for bRyANthen

I couldn't save the new things when i tried to pass in new value inside inner class. The error message is local variable item is accessed from within inner class; needs to declared final. Guide me please. thanks in advance [CODE] public class Broadcast{ protected String title; public Broadcast(String title){ …

Software Development java
Member Avatar for JamesCherrill
0
198
Member Avatar for cableworm

Hi. I have an array of structs problem. I am having issues with my getname getprice functions. I need to be able to enter a code and return the name and price for that item. The values I return are for all items. It looks like it should be simple …

Software Development c++
Member Avatar for cableworm
0
168
Member Avatar for JavaPrograms

The issues with this program are: 1. File: D:\Unit 3 Data Type, Objects, Assignments\CreditCardBill.java [line: 20] Error: Type mismatch: cannot convert from double to int 2. File: D:\Unit 3 Data Type, Objects, Assignments\CreditCardBill.java [line: 21] Error: Type mismatch: cannot convert from double to int EDIT: I have tried type casting, …

Software Development java
Member Avatar for zeroliken
0
4K
Member Avatar for jacob501

[code] from urllib import urlretrieve import urllib2 import re import gzip urlretrieve('http://www.locationary.com/place/en/US/Virginia/Richmond-page28/?ACTION_TOKEN=NumericAction', 'myfile') page = gzip.open('myfile', 'rb').read() findLoc = re.compile('http://www\.locationary\.com/place/en/US/Virginia/Richmond/.{1,100}\.jsp') findLocL = re.findall(findLoc,page) listIterator = [] listIterator[:] = range (0,25) for i in listIterator: urlretrieve(i, 'myfile2') page2 = gzip.open('myfile2', 'rb').read() findYP = re.compile('http://www\.yellowpages\.com.{1,100}\d{1,100}') findYPL = re.findall(findYP,page2) listIterator2 = [] listIterator2[:] …

Software Development python
Member Avatar for jacob501
0
4K
Member Avatar for jacob501

I am trying to use Beautiful Soup to scrape a website, Locationary.com, and get some information from it. I am a member and even when I'm logged in this doesn't work... OK. This first bit of code just returns the HTML of Locationary.com (the home page) in a "pretty" form. …

Software Development python
Member Avatar for Gribouillis
0
200
Member Avatar for pinkboom

Hey guys, I wrote a 'bigger' program that uses a basic algorithm to crypts a text I input from keyboard, or from another text file. I have divided the program in the 'working' part and the 'non-working' part. The keyboard input is great, it works perfectly. But when I try …

Software Development algorithm c++ encryption
Member Avatar for pinkboom
0
152
Member Avatar for IcantC

Hi there, My question is how could I output byte value (meaning zeros and ones) to screen. I just want to try some shifts and see how it works.

Software Development java
Member Avatar for IcantC
0
10K
Member Avatar for anamoblu56

Declare a seven-row, two-column int array named temperatures. The program should prompt the user to enter the highest and lowest temperatures for seven days. Store the highest temp in the first column and the lowest in the second column. The program should display the average high and average low for …

Software Development c++
Member Avatar for MandrewP
0
2K
Member Avatar for bmichelle510

Hi, I am having a problem with this program. I don't know why the counter won't work correctly. After "doctor is out" is clicked the inCounter should be zero. So when the "doctor is in" is clicked "the doctor is in" should be displayed, but "the doctor IS IN, Already!" …

Software Development java java-swing
Member Avatar for bmichelle510
0
233
Member Avatar for eceisl

I need to write a recursive Python function that takes a numeric list as its argument, finds and returns the minimum of its elements. I am not allowed to use min() function of Python. I'll be very grateful if someone can help me.

Software Development python
Member Avatar for TrustyTony
0
109
Member Avatar for anamoblu56

Have patience as I am a beginner at this.I have completeed my 2d Array and have displayed its contents successfully. At the end of my program I want to total column 1 and 2 ([0],[1]) and eventually average it, but my code is not giving me the correct math(see input …

Software Development c++ visual-studio
Member Avatar for anamoblu56
0
103
Member Avatar for ahoysailor

Ok, so basically I have a text file that contains the following: Resource3 "Actuator" Resource10 "Insert Exhaust Valve" Resource1 "6, 10, 18, 1" Resource21 "Emergency Stop" Resource2 "Cool Down in Progress" etc. etc. I want to read the file line by line and store it in a vector (this is …

Software Development c++
Member Avatar for mrnutty
0
177
Member Avatar for vaironl

Even after I set a for loop in my constructor I receive a null pointer exception any ideas why? here is a bit of the code [CODE] private String[] ingredientName,units = new String [40]; private double[] ingredientAmount = new double [40]; public Recipe() // Recipe Constructor example { for(int setVals …

Software Development java
Member Avatar for hfx642
0
146
Member Avatar for uzidon

All right, the solution for this question might be awkwardly simple, but I'm totally lost and confused on this. I have created a Windows Form Application in Visual C++ 2010 Ultimate and included some resource files (BMP Images) in Form1.resX. For example, one of them is picture1.bmp. I have a …

Software Development c++ visual-basic
Member Avatar for uzidon
0
1K
Member Avatar for merjune

c# code use for connect microsoft word..

Software Development
Member Avatar for Mirfath
-1
117
Member Avatar for VernonDozier

I've made a small program that draws black rectangles on a JPanel at random places. I would like to give the user the option to save this JPanel as a .gif file, but I'm not sure where to start. The function I need to write is SaveJPanelAsGIF below on line …

Software Development java java-swing
Member Avatar for ferwerda
0
421
Member Avatar for consc197

How can i add a menu and make it to appear on all forms within that project? I remember that 2 years ago i was able to do this with VB6 however with VB 2010 i am unable to do this currently. Right now i added a Menu Strip on …

Software Development vb.net
Member Avatar for consc197
0
167
Member Avatar for consc197

Hello everyone, I have been coding a Reset Login Details form, the user needs to enter the new Username, the new Password and the Current Password. Here is my code below - something in the form is not working as i am getting an error when i fill in the …

Software Development open-source vb.net
Member Avatar for consc197
0
220
Member Avatar for cyberwarezcp

Hello, I wanna asking How to Make a Waiting while Proccessing? I mean I want when the software proccessing login into my Online database, the Button1,TextBox1,TextBox2, LinkLabel1,LinkLabel2 will hide and the Waiting Picture is show, Here is my code : [CODE] Button1.Visible = False Button2.Visible = False TextBox1.Visible = False …

Software Development vb.net
Member Avatar for cyberwarezcp
0
145
Member Avatar for bhagyap

Hi.. I am populating treeview using XML and then trying to access the nodes of treeview into webbrowser to view the files using the following code.. Can anyone please guide me with this?? [CODE] private void treeView1_MouseDoubleClick(object sender, MouseEventArgs e) { webBrowser1.Navigate(treeView1.SelectedNode.Text); } [/CODE] The following is the function to …

Software Development asp.net c#
Member Avatar for bhagyap
0
204
Member Avatar for Arkinder

I recently had an assignment that asked us to restrict the amount of characters a user can enter for his or her name. My professor said this is useful in the event that your program is being "attacked." The simplest solution was to use C strings: [CODE]#include <iostream> const int …

Software Development c++
Member Avatar for Arkinder
0
6K
Member Avatar for Jameske

So I have written some code which reads a file line by line, breaking each line into characters and storing into a multidimensional array. However the program freezes and crashes at lines 31-34. When debugging the code runs successfully through the for loop once, then fails at 32 the second …

Software Development c c# c++ file-stream file-system
Member Avatar for Jameske
0
216
Member Avatar for wmurrow

I have to count the number of records being read in and print them to the screen. A record consists of: website name (temp.url), website revenue (temp.rev) and website hits (temp.hits). These are all read in and returned as temp. For the life of me though, I can't figure out …

Software Development c++ ios
Member Avatar for wmurrow
0
110

The End.