132,724 Archived Topics
Remove Filter ![]() | |
I'm practcing for my test and I couldn't solve these questions I spent hours trying to solve it but every time I get error ArrayList<objClass> li = new ArrayList<>(); public objClass RemoveAtPos(int pos){ // I'm trying to remove the object at the given pos , but first I want to … Software Development java | |
Wassup. I'm writing an application for web development. I have run into an issue and can't seem to overcome it. I have a button within the application that upon being clicked, will create a new tab that contains a rich text box. This new tab can then be used to … Software Development | |
i know use SetConsoleTextAttribute(): SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), ForgC|(BackC<<4) ); (too be honest: i don't have sure if i can avoid the '<<4') i need ask these: can i add it more data and then use it? like: Blink=128 SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), ForgC|(BackC<<4) | Blink); and then test if these value is there? Software Development c++ | |
Hey guys, I have a program similar to X's and O's. But I need to put the "CheckWin" method in another class and call it from there. Im having no luck, can anyone help? (CHECKWIN PART AT VERY BOTTOM) import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.*; public … Software Development java java-swing | |
So i have a recent python project and i'm struggling a little, if anyone could be of any assistance that would be great :). The project is to make a 'Flash Cards' type quiz within which i am required to make a random generator to import one randomly chosen keyword … Software Development python | |
Ok this may sound strange but I have an app that pulls records form a DB then puts them in a string ready for me to send out :) yay works fine but now i want to add 2 records at the top of the report every time so record … Software Development visual-basic | |
How to extract data from xml file using xml minidom with respect to tags in xml file | |
Hi, just wanted to know how to delete a record from datagrid, i tried the following code but it gave me an error in deleting records, I am using Mysql Database. Following is the code: [code] Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click 'recorddelete() Dim … Software Development vb.net | |
Hello, i need to implement priority queue using a binary search tree, i need some one to help me? | |
How can i add one record from a table to another table in vb.net? Whats the instruction ?Using the instructions of squel , how can i put in the vb.net instructions? ehsan2 Software Development vb.net | |
Hi guys, I'm a little bit confused to declare a certain variable. I defined it under a button.It's in a do-while loop and it stores calculated values while other this are being executed. And i wanted to extract that value using another button.I know i can use a function but … Software Development vb.net | |
We're looking into the Enterprise Library, to see if the security part will fit our needs. We want to use application roles/rights, so we probably need to write our own security provider. What I'm looking for are decent resources on this specific topic. I've found several books already on the … Software Development cybersecurity microsoft | |
Hello, Need some help with Pointers, please. I have base class ShapeTwoD and 3 derived classes: Cross, Rectangle and Square. Each have different x and y values input by user. Eg, Cross has 12 sets of x,y coordinates, Rectangle and Square have 4 sets each. Can I know how to … Software Development c++ | |
I have created lot of c files and i executed them,but i can run the executed files only in terminal.... can we have a direct c code,on clicking the exicuted file it should open its new window and work.... How should i create it,please help me.. | |
****Hi everyone! I have to make a pig latin translator for cs hwk. I've made my code and everything works up until i put it together. I need to debug it, but can't figure out the if statement in the main. The assignment is "Here's how to translate the English … Software Development java | |
I have this code working on VB.NET 2008 but not working in VB.NET 2010 and show no error code. When I use the query analyzer the query work good, but when I try on my code nothing happen. I can do SELECT code and that ok, it’s just the update … Software Development open-source vb.net | |
Hi All, I was assigned to code a project which to some extend simulates timetable of an airport. This has to be implemented using linkedLists. The poject should consist of Node class and SLL (singly linked list) class. The logic of the project is like this: There should be a … Software Development c++ linked-list | |
how to save ListBox in vb.net Dim files() As String files = Directory.GetFiles("C:\", "*.mp3") Dim file As String For Each file In files ListBox1.Items.Add(Path.GetFileName(file)) Next output : 00001.mp3 00003.mp3 00005.mp3 .... want to save all item wth Only filenam to another folder. Software Development vb.net | |
Hello, is this how a constructor is created and initialized. I am getting an error; VB does not like the "New" what I am trying to do is to create a constructor with one argument and initialize its attribute. Public Sub New(ByVal newProdNumber As Long) intProdNumber = newProdNumber End Sub … | |
Hi I need help in making an auto complete feature in my datagridview where if I input a certain cell it will automatically have a value or it will have a autocomplete suggestion (like a textbox link to a table) based on my other table. I don't have any clues … Software Development dataset vb.net visual-basic | |
Hi guys, 1st year cllege student here. New on C Programming. My program's main unction is that it will display products with fixed cost and a person will just enter numbers and will be multiplied to the fixed cost. The product of those should be displayed correctly but in my … Software Development c | |
I need help converting ascii to hex. This is my code so far. ASCII DB 0DH,0AH,'THE ASCII CODE OF $' HEX DB ?,' IN HEX IS $' CHAR DB ?,'$' .CODE MAIN PROC ;initialize DS MOV AX,@DATA MOV DS,AX REPEAT: LEA DX,MSG ;get message MOV AH,9 ;display string function INT … Software Development assembly | |
I have this code: private void words(string path) { List<string> text = new List<string>(); var intro = "Video File Name:"; var words = File.ReadAllLines(path) .Where(line => line.StartsWith(intro)) .Select(line => line.Substring(intro.Length).Trim()); } When i use a breakpoint and look after all on the variable words i see: System.Linq.Enumerable.WhereSelectArrayIterator<string,string> I want to … Software Development file-system video | |
Hi everyone, I need some help, I don't know where and how to begin and I'm seeking for some advice. Problem: I need to design a custom C# library to better manage a client list for internal projects. The library must be capable of importing data in a textfile(clients.txt) into … | |
Hello everyone, I have a project which i want to publish but the problem is i don't know how to add my name as the developer in the setup... can anyone tell me how to do that... thanks in advance Software Development | |
Write a payroll program that pays time and a half for anything over 40 hours. This should have 3 functions in addition to main The first function asks the user how many total hours were worked and the pay rate and returns this information to main. These values must be … Software Development python | |
Hi, Im ne to vb.net and I have a file and instead of sending it to a printer I want to converting it to a PDF from any ideas on how O can make this work? Im using vb.net 2010 Thanks all answers are appriciated Software Development file-system pdf printer vb.net | |
I need help reading a bool function from my HW assignment, I am not asking you to do complete my assignment for me. All I need help with is reading my bool function in main. Thank you for looking #include<iostream> #include<fstream> #include<string> using namespace std; struct StudentType {string studentName; int … | |
I am using VS2008 to develop web application with vb.net under .net 2.0 and Crystal Report 7.0 reportclass. I have changed some wordings in a Crystal Report template (file1.rpt) which is included in the source program of vb.net (in a .soln file) in testing environment. Now I want to apply … Software Development vb.net | |
![]() | I'm trying to do the following: 1. get username typed into the userField 2. make a SEARCH mysql_query with the username as a variable I'm having a hard time getting past phase 2 since mysql_query takes a const char* as the query string, and I can only get username as … Software Development c++ mysql windows-api |
**Why is it that when i use ctime to capture the time I am getting this error: time_t now = time(0);// convert now to string form char* dt = ctime(&now); cout << "The local date and time is: " << dt << endl; error C4996: 'ctime': This function or variable … Software Development c++ | |
ProducerConsumer_Using_ExecutorService class in a for loop initiate producer consumer threads using worker threads from ExecutorServiceThreadPool class. consumer thread takes an element from queue adding it to ArrayList consumerdata. Seems that consumerdata has no elements. why is that; Both producer - consumer threads seem to work. import java.util.ArrayList; import java.util.Iterator; public … | |
Hi, I have writen a code whit some functions and the program start by launching on of those functions. The problem is that some of the variables in the functions need too be accessed by other functions. I know that I can use global "variable name" but is there a … Software Development python | |
import time pause = time.sleep(3) print "Welcome to the Game of Choice!" pause print "You will be given multiple choices throughout this adventure. How you choose determines how you end. Please answer questions in all lowercase letters. On all questions that require a yes or a no, type out the … Software Development python | |
I am trying to generate a program using the builtin Random and generate an algorithm that determines whether the number is odd or even. I need to write a program that generates 100 random numbers, determine if its even or odd and finally count the number of even and odd. … | |
Hi all. How Can I makes login form for my vb.net project? I would like to make one that can identify the user according to their roles. Eg. Roles 1-4. Role 1 being the lowest user so this user can't use everything on the app. Role 4 as the highest … Software Development asp.net vb.net visual-basic | |
I need a code based on this attack on hill cipher http://practicalcryptography.com/cryptanalysis/stochastic-searching/cryptanalysis-hill-cipher/ in python. As I am not maths student I am so helpless in this. Also I need to specify the charecterset of my own here.. can anyone help? Software Development python | |
How would i output my vector of strings into a ".txt" file? Software Development c++ | |
Okay, so I know how to reverse the whole string of a vector, [code]for_each(newLines.begin(), newLines.end(), [](std::string& s){ reverse(s.begin(), s.end()); }); copy(newLines.begin(), newLines.end(), std::ostream_iterator<std::string> (std::cout, "\n")); [/code] But is there a way to only reverse the first 10 or so characters of a vector string? i.e. sdjkfskjd sfdsdf sdjflkjsdjklfsdlkjflksdjfkls jklda sdfioss … Software Development c++ | |
Hi (Salm).. In my java code i have to insert a table into a text area, by choosing "insert table" from the menue "Insert" so then the program will ask me to enter the number of rows & cols to create the table with the numbers i've entered.. the image … | |
So I am trying to create a text editor for php, html, css an JS. I have a tab function that creates a new tab, and inserts a new richtextbox ready to type code. My problem is this, how do I select only the text from the currently selected tab … Software Development html-css | |
Hi, am trying to for file uploading of doc, docx type. When I uploaded the file there is no space at the top of the page but when I download the file it makes an extra space at the top of the page. Is there any solution, suggestion or idea … Software Development | |
Hello! I am trying to implement a persistent data structure using a vector of linked lists, but each time I am adding the modified list to the vector, all the old entries seem to be updated... Could you please help me? Definition of the vector of linked lists (the list … Software Development c++ data-structure linked-list | |
Hello All, Just looking for code snippets to remove color from jpg image. I would like to remove red, blue, green from a picture, leaving black and white. For instance, imagine a newspaper cartoon with an "X" on the picture. I want to remove the colors leaving the "X". I'd … | |
Hi DW I'm creating a program in vb.net which is an aspx but I think the solution to my problem as I'm using vb.net can be as vb.net because most of the codes in this web application I wrote it via vb.net, I have a server it a wamp server … Software Development client-server vb.net | |
hi I have this code that will send my panel into a printer but the problem is it doesent let me choose which printer I will use any idea on how can I make the printer window appear? thanks Public Class Form1 Dim img As Bitmap Dim WithEvents pd As … | |
please can you help me to solve this problem :>>> no develop a bookstore information system. The bookstore manages a collection of books it is selling, book orders, and customers who purchased from the store. A book store also has a counter that accepts cash from book sales. Each book … Software Development c++ | |
The Question: Write a function main that prompts a user to enter the number of different items that he intends to purchase from a showroom.Your program should read for each item the quantity to purchase and the unit price then finally display total amount to be paid anyone help me … Software Development c | |
Hi i need help to retrieve data from DB. I am trying to retrieve from database the number of cars that we registered each month in 2013.Based on that i will draw a line chart.so on my x-axis will be cars, and y-axis is number. Note: i have different models … Software Development java |
The End.