64,152 Solved Topics
Remove Filter ![]() | |
Hi. I'm learning C++ by myself, so I'm a noob, also i'm a mad scientist :P I'm trying to use a doubly linked list with polymorphism, and got a problem. Here is my code: #include <iostream> #include<string> #include<cstdlib> #include<cstring> #include<sstream> using namespace std; // node class template<typename T> class nodeType … | |
My program keeps crashing once I try to make my custom class use some of its own functions My custom class looks like this: Entity.h #ifndef _ENTITIES #define _ENTITIES #include "actual.h" #include "Manager.h" struct Position { float x, y, z; }; class Entity { public: Entity(); ~Entity(); bool Init(Actual*, int); … | |
I very new to C Shell. I am trying to do is read from Command line. Find the if the file is zip, .txt, symbloic link,pipe, unknow (if file is not zip, txt, sy....) here is what I what got so far. I am very stuck atm Please help me … | |
Let say I have many many buttons and i want to change all the forecolor of the buttons by clicking on one button. How to do it? I no want type like btn1.forecolor,btn2.forecolor......... because I have more than 20 buttons | |
Dim item As String = InputBox("Enter Item ordered", "Place an order") Dim quantity As Integer = InputBox("Enter Quantity odered", "Quantity ordered") Dim price As Integer = InputBox("Enter price", "Price each") Dim item As String = InputBox("Enter Item ordered", "Place an order") Dim WrapCharacter As String WrapCharacter = Chr(13) + Chr(10) … | |
Hi, I'm trying to scroll my texture using `sprite.setTextureRect(sf::IntRect(10, y_axis, 800, 600))`. In my update I increment `y_axis++`, but then the image wont show. Heres the structure so far: init(){ if (!starField.loadFromFile("image/starfield.jpg", sf::IntRect(10, 10, 800, 600))){} s_starField.setTexture(starField); y_axis = 0; } update(){ y_axis++; s_starField.setTextureRect(sf::IntRect(10, y_axis, 800, 600)); } render(){ windows->Draw(s_starField); … | |
This code works fine except for the fact that it doesn't display what I queried on posts tabs...only this part of the code with an id=pages displays my query..i checked if I have a wrong query but it works when I change the include("../includes/mainpanelpage.php") to include("../includes/mainpanelpost.php")...meaning only the code inside … | |
I have no idea how to write in Python. Please help me with this! Best answer if you write the program! Central Limit Theorem I Goal Write a python program that will use your accept / reject Monte Carlo algorithm to demonstrate the central limit theorem. Recall: The central limit … | |
Iam creating a real estate website and I needed a search box on it. I don't know how to make it, I required users can search plot details by category example below Note: all the field's are using Drop down box to show the value 1st box : Location (India) … | |
Hello I am trying to give focus to a text box on a form: Protected Sub Page_Load(ByVal sender As Object, _ ByVal e As System.EventArgs) username.Focus() End Sub I know the syntax is correct because I use it elsewhere. However, I am getting the following error (please see attached) with … | |
Hi, I know the reply with this is that there is loads of threads on here with similar problems, but I have looked at them and still can not get this to work... Could someone please help me with this problem.. I am converting a Fractal from another langauge into … | |
All, I have one question and one issue with my below php email script - the script currently has the two images side by side when displayed in the e-mail - I'd like the CSS z-index values as well as the transformation to be picked up in the HTML e-mail … | |
Hello I am attempting something like this: Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click If FileUpload1.HasFile Then Try FileUpload1.SaveAs("C:\Uploads\" & _ FileUpload1.FileName) Label1.Text = "File name: " & _ FileUpload1.PostedFile.FileName & "<br>" & _ "File Size: " & _ FileUpload1.PostedFile.ContentLength & "<br>" & _ "Content … | |
I need to get the earliest date and the latest date in the below query. Not sure if the while loop is necessary to achieve this though? I don't need min/max for every tbl_type but the lowest of them all and the highest of them all. // get min and … | |
I'm trying to list currently online users on a pet project I'm working on. I've found a few ways to do it, but I'm having difficutly getting the one I chose to work properly. The basic idea was to use an HttpSessionBindingListener on the users information to add it to … | |
Hi all, I'm not too familiar with Ajax but I believe I grasp the basics. So I'm sending an id which I retrieve from an element to a php page but I can't seem to retrieve the id being send. My javascript: function ListPart(part) { var imgdata = part; $.ajax({ … | |
HI again!!!!!!!!! so i have this button where if i press it words will be typed on my richtextbox but my problem is i want the half part to be centered and the half part would be aligned to the left. how can i achieved that. i have already done … | |
So I currently am trying to insert a row into a MEMORY table but only if the primary key doesn't already exist. I'm using INSERT IGNORE but I was reading, much to my surprise, that INSERT IGNORE is actually slower than INSERT ... ON DUPLICATE KEY, but that letting the … | |
hi. i have a page that submits data without refreshing and it does work. but i m having trouble with arrays. as it is im submitting the form data using `$.post` . if i was working with just php id just do a for loop which i actually already have … | |
I'm trying to make my button change from saying "Submit" to "Submitting" when it's clicked. But it's for a form so if something like e-mail validation fails I want it to change back to saying "Submit". Here is the code I already have if you would like to take a … | |
Hi, I use the following code from phpmyadmin to reset one of my table's auto increment value from 1. SET @count = 0; UPDATE `mytable` SET `mytable`.`id` = @count:= @count + 1; ALTER TABLE `mytable` AUTO_INCREMENT = 1; But I want to run this query from PHP file and set … | |
Hey guys, Just got a quick question ... I am implementing a client GUI, and part of the requirements are that the client is able to start, stop and restart the server. This got me a bit confused since the client connects after the server is running. What I am … | |
if a gui have 2 text fields and there are 10 buttons(0-9) to input numbers in text fields then how it will choose that which field get input. this i problem in my gui i write 2 methods but not working my code is below public void actionPerformed(ActionEvent e){ if(e.getSource()==b1){ … | |
Cannot seem to make the message box to not appear when I click cancel. Help please ! Private Sub btnEnter_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEnter.Click Dim input As String Dim total As Single Dim average As Single Dim count As Single Const msg1 As String = … | |
Hi all, my question is as follows: If I use the code as below: text = '䏿–‡' #Text is in Chinese, whereby text = 'chinese' with open('file.txt','w', encoding = 'UTF-8') as f: f.write(text) f.close() My file.txt on Windows notepad will show it as saved as UTF-8. However, if the text … | |
Hi ive been trying hard to get a img url collection from a textbox.. or how to stop loop on 3rd img url please help me. Thank You.. Heres What ive Got.. URL: https://www.facebook.com/tony.trujillo.3517 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim PageElement As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName(TextBox1.Text) … | |
Hey ya guys, it's my first topic on DaniWeb, sounds like a good place to find help with programming. :) Today I'm trying to compile a simple code made for PyQt4 using cx_Freeze, but I'm getting an error, I'll show you all the codes: [B]example.pyw[/B] [CODE]import sys from PyQt4 import … | |
//why the getters declared twice,public,and than protected at the end of this code? And how to assign the copy constructor between this 2 classes? class Person { private: string name; string address; string city; string state; string zipCode; public: Person() {} Person(const string& aName, const string& anAddress, const string& aCity, … | |
Here is a sample of the XML I need to get the <Order Header> Nodes, then loop through the <Order Detal> <Line> Nodes Using xml Reader "Using reader As XmlReader = XmlReader.Create(New StringReader(sFileContects))", i get all the header information, but cant properly parse the Line Iformation Using LINQ "Dim xd … | |
Dear friends, I have an other problem in login form...my code is below.. //********************************connect to database and check**************************************************** $username = "root"; $password = ""; $database = "mydatabase"; $server = "127.0.0.1"; $conn= new mysqli($server,$username,$password,$database); // checkintin connection if($conn->connect_error){ die("connection failed:".$conn->connect_error); } //****************fetch the information from database for match username and password … | |
Hi All, While going through my project work, I just came across a situation, where I needed to alter my table. I needed to add a column at the beginning of the table, i.e. the first column of the table. We have syntax for appending a column to a table … | |
for(int i=0;I<20; i++) { `Inline Code Example Here` messagebox.show("the values is " '"+i+"'); } else { messageBox.show("ooops vlues is greater then 20"); } | |
Can someone give me an idea on how to get started on this program? I have been having problems on this for a week and cannot get started. I understand this in visual logic but cannot get the total amound to print. Can anyone walk me through this or show … | |
Hello. I need some help to update two table.. This is my coding: $query = "UPDATE br.discharged_Date, b.book_Status SET br.patron_ID = b.patron_ID FROM borrow br INNER JOIN book b ON br.patron_ID = b.patron_ID WHERE b.patron_ID = '$patron_ID'"; | |
I have a tkinter program like the one below (for example) and want to create an executable file using module cx_freeze. I am using Python33 and Windows7. # Tk_circle2.py # draw a circle with given center (x,y) and radius # tkinter normally needs a specified square try: # Python2 import … | |
hi, i am receieving a repsonse from googles json api that has the formatted_address but i want to extract the city and county from either the formatted_address which is displayed in a label (lblAddress.text) or the JSON file Google gave me. so for example: Palgrove Road, Pennywell, Sunderland, Tyne and … | |
hi , last night I downloaded pyzo package on my ubuntu 14.04 system , I just do not know how to get it working . any help is appreciated | |
i using abstract method , and always prompt out wiv " not abstract and does not override abstract method " tis kind of error ublic abstract class Person { protected Name name; protected String address; protected String hp; protected String eadd; private static int counter; Person(Name name,String address,String hp,String eadd){ … | |
Hello everyone, I am getting NPE, and surprisingly I can't figure out why ... I am calling a method from a client using java rmi. The method on the server side is as follows : public List<String> getPrinters() throws RemoteException { List<String> listPrinters= new ArrayList<String>(); for(int i=0; i<printers.size();i++){ listPrinters.add(printers.get(i).getName()); } … | |
![]() | Greetings, I am dabbling with my little code here. Problem is mouseout event handler is getting executed thrice instead of twice. var img=document.getElementById('newImg'); img.addEventListener('mouseover',function(e){ e.target.width+=200; console.log(e.target.width); img.addEventListener('mouseout',function(e){ e.target.width-=200; console.log(e.target.width); },false); console.log(e.target.width); },false);  |
I use Delphi 7 to develop programs, but the programs that I make, UI looks outdated. I was wondering if there is an option that I can adjust how to generated UI looks like? Thanks. | |
i read adapter classes everything is write but i am confuse about Listener Interfaces and Adapter classes concept priblem is that when java create adapter classes it implements corresponding interface and privide defination with empty bodies of all methods that are present in interface this is declaration public class WindowAdapter … | |
Hello, I am supposed to modify my last inventory program. Here is the instructions. Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output should display the information one product at a time, including the item number, the name of … | |
Hey everyone, I am facing an implementaton issue here ... hopefully someone can give me a hand .. So I am implementing a client-server communication, where the server has to act as a print server. In other words, the client simulates to be next to a printer and can send … | |
I am trying to make a program that will tell how much a ticket costs and what the admission status is for a movie based on the age of the person. For ages 1-4 and 55 and up, it is $0.00 and "Free". For ages 5-12 it is $4.25 and … | |
I remember reading in Java's EULA that you acknoledge not to use it for certain things (real time applications). I did a bit of research on this matter and came to the conclusion that it is due to Java's garbage collector that makes Java slower and thus unfit / or … | |
Hello friends, Please help me to sort out my problem , actually it is strange one and don't know why it appears. Actually I was trying to make a file upload form which I got success although a bit. A bit in the sense, if I include just <form> in … | |
Hey guys, I can't understand why am I not getting anything from the server, it is supposed to return "Hello" to the client ... I have this code implemented for a game I made during the summer and it works perfectly(of course this is just part of the code), but … |
The End.