132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for redtribal23

Below is my queue code. Whenever I enter nos. 1 to 8, it will print 1-7 then replace 8 with 0. If there are any other mistakes in my code please let me know. import java.util.Arrays; import java.util.Scanner; public class Queue { private int[] elements; //integer values from scanner private …

Software Development java queue
Member Avatar for Tarek_2
0
358
Member Avatar for sbaw

I am using Python 2.7.8. I installed the following: py2exe-0.6.9.win32-py2.7.exe and pywinusb-0.3.3 I have a script that I am trying to run. When I do I get the following error: C:\Python27\MyScripts\VMS\Python_Firmware_Upgrader-4_00_02\Python_Firmware_Upgrader\python-msp430-tools\win32>python ./setup-combined-tools py2exe.py changed directory to C:\Python27\MyScripts\VMS\Python_Firmware_Upgrader-4_00_02\Python_Firmware_Upgrader\python-msp430-tools running py2exe *** searching for required modules *** Traceback (most recent call last): …

Software Development python
Member Avatar for sbaw
0
1K
Member Avatar for NightOwl19

Heya guys, i'm a newbie at java gui and trying to make a calculator using swing. Although i have made the calculator previously but this time i'm trying to add a menu bar also. The problem with the code is whenever i try to add menu bar without making the …

Software Development gui java java-swing
Member Avatar for NightOwl19
0
150
Member Avatar for Deep Modi

Hello Everyone, I am creating the maze game in vb.net I found the way of creating the maze game is easy way. But now I want this to access the auto updates. - Fine I can do this. Now the ## problem is: ## How can I set the levels? …

Software Development gaming vb.net
Member Avatar for J.C. SolvoTerra
0
1K
Member Avatar for Johnny_1

I have this shell script but not responding to command after been upload to wp-content. Anybody wanna help?

Software Development
Member Avatar for Johnny_1
0
72
Member Avatar for lithium112

I need to join 2 access databases. I have tried using dataAdapters and then filling 2 different datatables. Then I used the merge method to join the datatables. The problem I had with that is that it added extra rows when adding the 2nd datatable in. Would anybody happen to …

Software Development
Member Avatar for lithium112
0
239
Member Avatar for lilita

private void btnCancel_Click(object sender, EventArgs e) { //setDirty(); this.Close(); } private void btnOk_Click(object sender, EventArgs e) { setDirty(); //openFileDialog1.ShowDialog(); saveFileDialog1.ShowDialog(); } private void btnBrowse_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.InitialDirectory = @""; openFileDialog1.Title = "Select a File"; if (openFileDialog1.ShowDialog() != DialogResult.Cancel) txtFilePath.Text = openFileDialog1.FileName; else txtFilePath.Text …

Software Development file-system
Member Avatar for cgeier
0
330
Member Avatar for jarleking

hi there people i got a prob with my code in my problem i got a matrix and i need to find the even number or numbers on that matrix (12x30) (by the way is the even minimun or minimums), so here is my function "tempeven" part., the actual issue …

Software Development c++
Member Avatar for jarleking
0
110
Member Avatar for tapiwa.matombo

in response to an inclass exercise where the following question was possed: write a program using structures, which will capture a list of 10 movies, the data members should be title and year. the problem is the program is not capturing all the details and is printing unintelligible information. what …

Software Development c++ ide visual-basic
Member Avatar for Banfa
0
154
Member Avatar for ceelos1974

Hi I got a problem with converting from LPARAM to std::string. What I do is getting the selected object from a Listbox, the example I found on how to do this is to convert the object to LPARAM. Now I want to convert this LPARAM to std::string and I've tried …

Software Development c++
Member Avatar for ceelos1974
0
2K
Member Avatar for tarmer

I am not looking for anybody to do the work for me - I have a questions I am trying to get answered as I go thru trying to learn - I am ahead of myself but am looking to the future I am looking to create a soccer simultor …

Software Development python
Member Avatar for vegaseat
0
195
Member Avatar for COKEDUDE

I need some ideas on my array of struct implementation. This is what I have in my structs. I plan on making SHAPES an array because I will have multiple SHAPES. Each shape will have multiple x and y coordinates. Because of this I'm not sure if should make a …

Software Development c linked-list
Member Avatar for Schol-R-LEA
0
478
Member Avatar for Santanu.Das

There are no Ribbon object in toolBox but I desire to add a ribbon instead of MenuBar or ToolBar like Office. I search everywhere in vb.NET2010. How do I add it in my project. I have no idea.

Software Development vb.net
Member Avatar for oussama_1
0
165
Member Avatar for danielleCSU16

.code tetrabonacci PROC push ebp ;save previous pointer mov ebp,esp ;save current pointer sub esp, 4 ;make room for local variable ptr mov eax,[ebp+8] ; get n ;if ((n==1)|| (n==2) return 1 else do recursion cmp eax, 2 ;n>2? ja recursion ; yes: continue to recursion mov eax, 1 ; …

Software Development assembly
Member Avatar for Glen_1
0
598
Member Avatar for hui

I am creating a program that stores information of hospital patients in a sequential text file.. I want to the program to be able to search for a patient using the patient name already in the text file.. The program is giving me no errors whatsoever so please look into …

Software Development c++ ios
Member Avatar for JessiE_03
0
180
Member Avatar for OnEaglesWingsjf

What's wrong with: def project_to_distance(point_x, point_y, distance): dist_to_origin = math.square_root(point_x ** 2 + point_y ** 2) scale = distance / dist_to_origin temp1= point_x * scale temp2= point_y * scale print temp1, temp2 print project_to_distance(2, 7, 4)

Software Development python
Member Avatar for HiHe
0
127
Member Avatar for singhSP

1. Form created in VB2008 3 Textbox [Name(string), Company(string), Contact(number)] 3 Buttons [New Record, Update Record, Delete Record] 2. Database created in MS Access 2003 File Name: Contact.mbd Fields: ID [Primary key] Name [Text] Company [Text] Contact [Number] How to Create Connection? How to get data on form load from …

Software Development microsoft-access vb.net visual-basic
Member Avatar for Santanu.Das
0
10K
Member Avatar for flebber

This is a simple problem that for some reason I can't get to work. The problem I created for myself was to use call a function from a function using *args and print out the question and solution. I want the output to vary as the *args can accept any …

Software Development python
Member Avatar for flebber
0
301
Member Avatar for Genessis_1

I am currently trying to test a function with an infinite loop and im having a problem how to break. Is there anyway I can test this? Thanks in advance. void classA::process() { unsigned int return_val; proxy_class& proxy = proxy.instance(); while(1) { return_val = proxy.run(); if(0 == return_val) { //some …

Software Development c++ google
Member Avatar for Dani
0
2K
Member Avatar for vivek.vivek

Hi, My file has date in "14-oct-2014" format. I want to compare this date with current date and print result if the difference is less than or equal to 7 days. Example: Say today is 10-oct-2014 and file contains 14-oct-2014. The difference between these days is 4. So the script …

Software Development perl
Member Avatar for vivek.vivek
0
118
Member Avatar for Riya_2

**It is my humble request if I can get minior help with function definition at the end where its says--- int countvowels (string test) { ** #include <iostream> using namespace std; //function prototype bool is_vowel (char c); //is_vowel(c) returns true if character c is a vowel and false otherwise void …

Software Development c++
Member Avatar for Schol-R-LEA
0
196
Member Avatar for muskovitz

i want to make a time capturing limit of airodump-ng using the timeout command of UNIX but it just gave a empty terminal screen! Heres the simple perl script #!/usr/bin/perl use strict; use warnings; my $interface="eth1"; my $moninterface="prism0"; open(FILE, ">result.txt") or die "Failed to create a file!\n"; print FILE `iwlist …

Software Development perl unix
Member Avatar for 2teez
0
303
Member Avatar for mark103

Hi guys, I have added the list of buttons for the channels and programs in the xbmc skin. I have one yellow box on the channel and program box for both buttons. I want to know how I can move the yellow box to go to the next program when …

Software Development python
Member Avatar for Schol-R-LEA
0
181
Member Avatar for RikTelner

I'm sitting in C# for about 2 days and it's already like lifting 300KG block. I don't get it, if I Googled how to get SHA512 hash of string in C#, I get many wonderful variations on how-to. But when I copy paste this: public static string GetCrypt(string text) { …

Software Development visual-studio
Member Avatar for RikTelner
0
182
Member Avatar for Neha_11

ERROR: No such file: Permission denied collect2: ld returned 1 exit status Process terminated with status 1 (0 minute(s), 0 second(s)) 0 error(s), 0 warning(s) (0 minute(s), 0 second(s)) Earlier, I tried dev C++ also, it was also raising the same problem. I don't know how to deal with this …

Software Development c++
Member Avatar for Moschops
0
220
Member Avatar for Deep Modi

I am creating the program, But I am tired with the regular form look. I want some theme that can change the look of my program. Last I Used the Influence Theme. (Thats great) But want some new theme. (Credit will given as mentioned in the program.) ...FREE THEME... From …

Software Development seo vb.net
Member Avatar for Deep Modi
0
1K
Member Avatar for Deep Modi

Hey Everyone, I forgot this simple code and messup. I am having almost 23 Files in my resources. (extension: .Targa Files) now When the User Click Extract Files, I need this files to be extracted to "fbd.selectedpath\MyFiles\" (fbd: folderbrowserdialog) The Another Thing is Each files are big, So obviously it …

Software Development file-system vb.net
Member Avatar for Deep Modi
0
355
Member Avatar for brent.lewis.39

I'm working on a hobby project using Visual Studio Pro 2013 and Resharper. I often get warnings from Resharper like "This method contains too many statements" or "Member has cyclomatic complexity of 24 (120%)". Seeing these constantly makes me think I'm doing something wrong. What can I do? Following is …

Software Development visual-studio
Member Avatar for ddanbe
0
115
Member Avatar for myk45

Hi all, I have a problem where i need to find to what library my code links to. Here is the scenario: a) I have two executables. Both link to pthread. But pthread seems to behave differently. b) I am not sure that they are linking to the same version …

Software Development c
Member Avatar for L7Sqr
0
152
Member Avatar for Papa_Don

Hello group! I've created a short program to open an application at a specific time. It's working but is attempting to open the application multiple times. What should I be doing to control the number of times it is opening? It only needs to open one time. Here's my code: …

Software Development vb.net visual-basic visual-studio
Member Avatar for Papa_Don
0
368
Member Avatar for Mauricio_3

hi guys i have recently come to a problem where the equal sign keeps adding after getting a sum of two numbers. for example if i add 5 + 5 it would equal 10, but it will then keep adding 5 over and over again. Dim Answer As Double Amount1 …

Software Development visual-basic
Member Avatar for qumar.farooq.3
0
169
Member Avatar for Papa_Don

Hello Group, I'm writing a macro to match dates from one spreadsheet to another. Specificially, SpreadsheetA has the date listed as text. I want to match that date to a range of dates in a column to find the row the matching date is on. I have some things that …

Software Development microsoft-office visual-basic
Member Avatar for Papa_Don
0
4K
Member Avatar for Soutta

Public Class Form1 Private decLabFee As Decimal ' To hold Lab fee. Private decMeds As Decimal 'To hold Medication cost. Private decSurgical As Decimal 'To hold Surgical cost. Private intLengthOfStay As Integer 'Amount of days stayed at hospital. Private decPhycical As Decimal 'Hold Amount of Physical Cost. Private Sub btnExit_Click(sender …

Software Development vb.net
Member Avatar for Mr.M
0
153
Member Avatar for Margi_1

I am trying out friend functions in different files to see how it work. However, I am having problems compiling it with error after error. Well now I'm done to one error again, please have a look at my code: /* ---------- classOne.h ---------- */ #ifndef CLASSONE_H_ #define CLASSONE_H_ #include …

Software Development c c# c++
Member Avatar for tinstaafl
0
302
Member Avatar for chris.vargas.773

so im tasked to write a program that converts decimals to binary numbers; the only problem is that im having trouble writeing this program. Write an HLA Assembly program that prompts for an int8 value to inspect and then prints it in binary format. For example, here would be the …

Software Development assembly
0
537
Member Avatar for lewashby

In the program below I'm a little confused with these two lines -> `fbin.seekp(n * recsize);` & `fbin.write(reinterpret_cast<char*>(&age), sizeof(int));` In the first one, why would we start writing to the file at position n * recsize instead of position 0? I would think that we would start writing at 0 …

Software Development c++ ios
Member Avatar for deceptikon
0
132
Member Avatar for dce12022
Member Avatar for J.C. SolvoTerra
0
102
Member Avatar for RikTelner

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApplication3 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } void button1_Click(object sender, EventArgs e) { MessageBox.Show("Hello!", varying, MessageBoxButtons.OK); } void textBox1_TextChanged(object sender, EventArgs e) { string …

Software Development visual-studio
Member Avatar for deceptikon
0
148
Member Avatar for Michael_9

Ok so you boot up a textbox class. Getting this in, in my eyes merely cosmetic. I used a module named programFunction with a string named tboxtext. A Couple of Functions that take a string argument. They do all the checking, making sure it is what was either in file …

Software Development vb.net
Member Avatar for Michael_9
0
366
Member Avatar for PinoyDev

hi good day! I need some help here.. I have a SHAPE recordset..everything in the database has its value..Im stucked with this error: **"Error : -2147467259 - Relate, Compute By, and Sort operations cannot be performed on column(s) whose defined size is unknown or too large."** My code below: cmd.ActiveConnection …

Software Development visual-basic
Member Avatar for PinoyDev
0
270
Member Avatar for Tycellent

Is anyone familiar with "removing" an image from screen with SDL? It's just simply a toggle on/off function that i'm looking for. I don't really want to free/release the image, since i intend on using it again throughout the program. switch (e.key.keysym.sym) { case SDLK_a: drawSDL_RenderFillRect(...); break; case SDLK_b: **remove …

Software Development c++ image
0
118
Member Avatar for Saboor880

Hi to all! I want to learn Vb.net,so i want to know the scope of vb.net. Actually i have a confusion, i heard many people saying that instead of vb.net you should learn C# because there is more demand of C# than Vb.net. is it true? Should i lean vb.net? …

Software Development vb.net visual-studio
Member Avatar for cgeier
0
314
Member Avatar for kks21199

Hey guys, here is how the text file looks now, FILEBEFORE Hello:.++.:something:.++.: bl ank:'++': 2Hello:.++.:2som ething:.++.:3b lank:'++': vdvdfv:.++.:bdfadf bfad:.++.: abfdabdabadfb:'++':Line4:.++.:So fh sj:.++.:sddsds:'++': If you actually see the lines which are blank has some spaces in them. It varies for each line, i want the lines in format, FILEAFTER Hello:.++.:some thing:.++.:bl …

Software Development vb.net
Member Avatar for Oxiegen
0
1K
Member Avatar for jBat

I'm trying to understand how the function encrypt works (linux), but event with this simple example is not working. Any ideas?. Thank you. #define _XOPEN_SOURCE #include <unistd.h> #include <stdlib.h> #include <iostream> #include <string> int main() { const char key[64] = "12" ; /* bit pattern for key */ char txt[64] …

Software Development c++ encryption
Member Avatar for tinstaafl
0
158
Member Avatar for PinoyDev

Good day! I just want to ask on how to drop a table. Let say all tables starting with "DailyCashSalesRpt". That means it will drop all tables starting that word. I use this code but it will only delete one specified table name.. How to use this with like? sql …

Software Development visual-basic
Member Avatar for PinoyDev
0
471
Member Avatar for Samyx

Hi Everyone, I am playing around with some Java following some tutorial online and ran into a problem that I cant seem to figure out. In the code below, inside of the groupButton method I get the error 'JRadioButton1,JRadioButton2 and JRadioButton3 cannot be resolved to a variable'. Can you please …

Software Development java java-swing visual-basic
Member Avatar for cgeier
0
1K
Member Avatar for aluhnev

//Hi all ,can you explain why does this functon has two returns? //How to read them? Is it like if/else? int _tmain(int argc, _TCHAR* argv[]) { int x, n; int res; int power(int, int); cout << "Enter a number:"; cin >> x; cout << "Enter a power:"; cin >> n; …

Software Development c++
Member Avatar for cgeier
0
177
Member Avatar for DS9596

Can you tell me what's wrong with it because it's not running on visual studio and I need it right now??? #include <iostream> #include<vector> #include<algorithm> #include<limits> #include<fstream> #include<string> using namespace std; class PayRoll { private: vector<int> salaries; public: PayRoll(); bool searchSalary(int salary); void generateStats(); void printSalaries(); }; PayRoll::PayRoll() { ifstream …

Software Development algorithm c++ visual-studio
Member Avatar for cgeier
0
183
Member Avatar for moaz.amin.37

i write a code that coun t the number of upper case letter in a string there is a problem my code count space as capital letter code is below #include<iostream> #include<conio.h> #include<cstring> #include<string.h> using namespace std; class Letters{ private: char str[20]; int num; public: Letters(){ str[0]='\0'; num=0; } void …

Software Development c++
Member Avatar for Sarkurd
0
656
Member Avatar for Syafiq_1

I want to make a program that can display the name and marks that user put and then the name will be sorted alphabetically. According to these two example i still cant get it. I have go through many examples on the internet but i still dont know how. Someone …

Software Development c++
Member Avatar for Lerner
0
2K

The End.