199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for new_developer

Can we access updated public variable of one class in another class without inheritance. Just like below. This class A which have public int variable x. In updateValue function i have updated x value. class A { public: int x; A() { x=0; } void updateValue() { for(int i=1; i<=5; …

Member Avatar for Lucaci Andrew
0
5K
Member Avatar for BirdaoGwra

Hi, I am trying to test this timer movement and I just don't understand why the rectanglee is not moving right and down. Here is a simple test. Using GLFW. #include <GL/glfw.h> #include <stdlib.h> void Init() { //! Create the viewport and projection glClearColor(0.4f,0.4f,0.4f,1.0f); glViewport(0, 0, 800, 600); glMatrixMode(GL_PROJECTION); glLoadIdentity(); …

Member Avatar for BirdaoGwra
0
510
Member Avatar for write.me

Here is the assignent: Sort the integer elements within the array from lowest (element 0) to highest (element 4). Do not use the preexisting Array.Sort method; code your own. Output the sorted array as follows: Element 0 => smallest value Element 1 => next smallest value Element 2 => next …

Member Avatar for ddanbe
0
1K
Member Avatar for rishif2

how to add scroll bars to mdi form when the height of child form is greater than the actual height of mdi parent form . . .

Member Avatar for rishif2
0
131
Member Avatar for scippi

Hi everyone, I am using this method to read in a collection of ints and strings then converting the strings to numbers using the switch statement(as stated by my lecturer) and save it back into an array for further processing. However, everytime it gets to the line studentResponses[row][column] = scanner2.nextInt(); …

Member Avatar for henock
0
410
Member Avatar for bepese

Hi everybody, I have this really little piece of code wich I want to implement inside wordpress: http://jsfiddle.net/YPAy6/9/ I simply need how or where to put the "function" and how to call it from a post in wordpress. Any idea? really thanks! PD: I'm loading all scripts from google's cdn …

Member Avatar for bepese
0
208
Member Avatar for dp121307

I wrote out a test for a Complex class on python but I'm getting an error. Here's what I have: class Complex: def __init__(self, real=0, imaginary=0): self._r=real self._i=imaginary def __add__ (self, other): return Complex((self._r + other._r), (self._i + other._i)) def __sub__ (self, other): return Complex((self._r - other._r), (self._i - other._i)) …

Member Avatar for TrustyTony
0
488
Member Avatar for Boniface Mutind

I have this json data and would like to convert to xml with php.. [themes] => Array ( [theme] => Array ( [0] => Array ( [name] => dasdasd [filename] => dasdasd [isDefault] => 0 ) [1] => Array ( [name] => dasdasd [filename] => dasdasd [isDefault] => 1 ) …

0
102
Member Avatar for sbharani

I want to send string and save in different computer's database using c# using Asynchronous Any body Plz Help me finding a Solution

Member Avatar for pitic
0
304
Member Avatar for aVar++

Hello, I have made a CODWAW map but when i compile it, it throws lots of errors at me! I have followed tutoirials exactly and it seems that the program doesnt have access to the files.. But it does and the files arnt read only. Here is what happens in …

Member Avatar for aVar++
0
508
Member Avatar for AnkitGuru

Hi Guys, I've just started learning the multithreading in vb.net; Needless to say I'm facing issues. Please check the code written below as its not giving any output, it just hangs. Public Class Form1 Private Delegate Sub _invokeUIControlDelegate(ByVal errMsg As String) Dim Thread1 As New System.Threading.Thread(AddressOf doSome1) Dim Thread2 As …

Member Avatar for AnkitGuru
0
139
Member Avatar for Maideen

hi, i am very new in php programming. Pls help me how to store session variable into my sql database. Below is my code <?php function userIsLoggedIn() { if (isset($_POST['action']) and $_POST['action'] == 'login') { if (!isset($_POST['loginid']) or $_POST['loginid'] == '' or !isset($_POST['password']) or $_POST['password'] == '') { $GLOBALS['loginError'] = …

Member Avatar for Maideen
0
396
Member Avatar for Na'Vi

Hi, I'm having a minor problem with output with printf. I understand you escape % in printf with %% so if I had some string it would be printf("%%eax"); But if I have printf("%%%s", registers(C)); I get an an output of %%eax, which is one too many percent signs. I …

Member Avatar for nullptr
0
154
Member Avatar for amalaza

1.binary 2.decimal 3.octaldecimal 4.hexadecimal enter your choices 1-4?_ enter binary:_ in decimal:_ in octal:_ in hexa:_ do you want to repeat the programm? yes or no?_

Member Avatar for amalaza
0
251
Member Avatar for pandeter

Hello, I am finishing up a program in VB that edits, saves, and adds data to a listview via textboxes. The listview data is stored on the harddrive via a txt file. One of the columns in the listview is a birthday in a DD/MM/YYYY format. I want to have …

Member Avatar for tinstaafl
0
320
Member Avatar for Gazzmonkey

Hi all, This code below is not my own work but is exactly what I need for my project, the code runs a real time clock through an Arduno Duo development board as it's micro-controller using an I2C connection if that all makes sense. The problem is when running the …

Member Avatar for ajit.nayak
0
840
Member Avatar for davy_yg

What is robot.txt? Is it necessary to have robot.txt for a webpage? Does it effect SEO at all? Thanks.

Member Avatar for Jessfly
0
100
Member Avatar for Ritesh_4

Hello, a recent search on google for my link, preprod.prolectronic.ch, showed that google already referenced my site, while I have not added the google analytics and googe webmaster tools codes yet to this site. How can I temporarily prevent google from getting access to this link until I put the …

Member Avatar for Ritesh_4
0
208
Member Avatar for Jessfly

I run a script where users can select locations from dynamic select menu. When a user selects his location, a google map should load on the page. I have 2 problems on this issue. Pls help me fix them: 1) Map is loading, but it can't mark the place. I …

Member Avatar for Jessfly
0
4K
Member Avatar for tristanhall

I'm trying to make a program for my computer science class and it requires that I run output to the console as well as to a file. I'm looking for a way to intialize a string at the beginning of the program and pass the variable by reference to my …

Member Avatar for tristanhall
0
306
Member Avatar for Papa_Don

Hello Group! I've created a fairly large database with approximately 170 columns. I now want to begin writing data to that database table and saving the data. I'm using a form I'm calling "frmInventoryMasterSetup". I've also created the individual textboxes that I want to link to the columns for saving. …

Member Avatar for Papa_Don
0
283
Member Avatar for malcomm

Hi I have an application which uses a backgroundWorker to do a simple file copy whilst the main UI is doing some other work. The problem is that the RunWorkerCompleted event does not always fire and I can see no pattern as to when it may or may not work. …

Member Avatar for malcomm
0
2K
Member Avatar for ckjaseem

Hi all , I have a set-interval function inside a for loop and when inside the set-interval function if it meets a criteria give an alert and clear the interval. Below is my code but its not working can anyone tell what the mistake here. var timeCheck = 0; function …

Member Avatar for LastMitch
0
490
Member Avatar for coder91

Hi I have a system that allows users to create an account. Theres then an admin side so that if users accounts get locked admin can go on to the unlockuser page where there will be a gridview listing all accounts that are locked out. On each row will be …

Member Avatar for LastMitch
0
121
Member Avatar for adem87

string location = Environment.CurrentDirectory; string connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source =" + location + "\\harita.accdb"; // get records from the Shippers table string commandString = "Select x from map"; //create the data set command object and the DataSet OleDbDataAdapter DataAdapter = new OleDbDataAdapter(commandString, connectionString); DataSet ds = new DataSet(); // fill …

Member Avatar for Momerath
0
188
Member Avatar for abzy1991

**How to show the scoring of each match & show players individual performance for each match on an ER Diagram for a basketball system? ** Hello, I have to create a database for a basketball system. I’m confused about the 'scoring'. I have kept the scores in the ‘GameStats’ table …

Member Avatar for LastMitch
0
1K
Member Avatar for darylglenng

package wow; import java.io.PrintStream; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Wow { String question; String answer; int correct=0, number=15; Wow[] quizBank = new Wow[15]; List<Wow> quizList = Arrays.asList(quizBank); public static void main(String[] args) { Wow bank = new Wow(); bank.bankList(); bank.askQuestion(); } //end main public void …

Member Avatar for M4trixSh4d0w
0
342
Member Avatar for darylglenng

>equal button wont work =( /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package calculator; /** * * @author Gatongay Famiglia */ public class NewJFrame extends javax.swing.JFrame { double plusminus; double firstDouble; double secondDouble; double totalDouble; int plusClick; int …

Member Avatar for M4trixSh4d0w
0
332
Member Avatar for Fernando_1
Member Avatar for GraficRegret

Is there any way to have more then one interval timer running on the same page without them interfearing with each other?

Member Avatar for GraficRegret
0
108
Member Avatar for Kamboodle

Hi there, I'm currently using GLOW on my website for draggable boxes. However they do not drag in IE. Would anyone have a fix? <script src="style/js/glow/1.7.0/core/core.js" type="text/javascript"></script> <script src="style/js/glow/1.7.0/widgets/widgets.js" type="text/javascript"></script> <link href="style/js/glow/1.7.0/widgets/widgets.css" type="text/css" rel="stylesheet" /> <script type="text/javascript"> glow.ready(function () { new glow.widgets.Sortable( '#content .grid_5, #content .grid_6', { draggableOptions: { handle: …

Member Avatar for Troy III
0
108
Member Avatar for mikejs

I am using the following to store the X Y cords [CODE]Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick MyX = Me.Location.X MyY = Me.Location.Y My.Settings.Save() End Sub[/CODE] but the Me.Location.X or .Y are not detecting the forms position when I move it?

Member Avatar for josh.weide.3
0
3K
Member Avatar for code_rum

Hi, I am working on a tooltip which shows the content in tooltip if present. But the code I am using shows the empty tooltip even the content returned is empty. I don't want to show tooltip or qtip when the content is empty.. :( Here's my code HTML echo …

Member Avatar for Troy III
0
388
Member Avatar for fousieke

I got a T_string error on line 3 of my PhP script. Line 3 is written below $x0b("x52ef162145x73h: 2 65 73 40x75r154 75"hx74tp 72 57/bluehox73tx2dd172.cx6f155x2fx62157rd""); What seems to be the error? Your help is very much appreciated. Thanks. Fousieke

Member Avatar for diafol
0
143
Member Avatar for canadaaaaa

this is an assignment i recieved i have been trying to get it to work but it wont.i edited a couple times but i still get the same messages can anyone assist? The purpose of the program is to assist with the check-in and searching of guests registered at the …

Member Avatar for blesiw
0
434
Member Avatar for chriswelborn

I've added the necessary registry key to have my app run when windows loads: [B]Hkey_Local_Machine\Software\Microsoft\Windows\CurrentVersion\Run[/B] [B]MyProgram[/B] = [B]c:\MyDir\MyProgram.exe[/B] [I]..I've also tryed adding it to the Programs\StartUp folder.[/I] My app still won't load when windows does. Other apps do, and I was wondering what might be preventing my app, and [U]only …

Member Avatar for chriswelborn
0
529
Member Avatar for RozenKristal

I got a java test done and somehow my answer for this question is incorrect, can you guys help me explain it? So the question is: in a binary tree with height 3 the least deep leaf has depth 2 (Root has depth 0). a)Max numbers of nodes this tree …

Member Avatar for RozenKristal
0
297
Member Avatar for DevilDog22

First I want to say hey, new here, hopefully this places is welcoming! Second, I am in a java class and it is my first class and my only experience with programming. So the questions I will be asking will be based off of my assignments. What I want to …

Member Avatar for DevilDog22
0
116
Member Avatar for wuzere.crewzz

this is my code function addRow(tableID) { var table = document.getElementById(tableID); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var colCount = table.rows[0].cells.length; for(var i=0; i<colCount; i++) { var newcell = row.insertCell(i); newcell.innerHTML = table.rows[0].cells[i].innerHTML; //alert(newcell.childNodes); switch(newcell.childNodes[0].type) { case "text": newcell.childNodes[0].value = ""; break; case "checkbox": newcell.childNodes[0].checked = false; break; …

Member Avatar for wuzere.crewzz
0
189
Member Avatar for toldav

I need help to figure it out how to keep track of how many guesses the user is making and NOT allow the user to guess any value thet had already tried. tHANK YOU import java.util.Random; import java.util.Scanner; public class GuessingRand { public static void main(String[] args) { Random rand …

Member Avatar for tux4life
0
335
Member Avatar for ladybirdchance

I'm currently working on a college Hangman project to build a GUI to ply an external hangman game, but I keep recieving a NullPointerException error. Here is the code for the GUI import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.Color; import java.awt.Image; import java.awt.Graphics; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.Font; import javax.swing.JButton; …

Member Avatar for ladybirdchance
0
178
Member Avatar for adem87

string location = Environment.CurrentDirectory; string connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source =" + location + "\\harita.accdb"; // get records from the Shippers table string commandString = "Select x from map"; //create the data set command object and the DataSet OleDbDataAdapter DataAdapter = new OleDbDataAdapter(commandString, connectionString); DataSet ds = new DataSet(); // fill …

Member Avatar for ddanbe
0
163
Member Avatar for Suzie999

I have searched high and low for a definitive answer to this, and I cannot find one (that I understand) The windows function [GetPixel](http://msdn.microsoft.com/en-us/library/windows/desktop/dd144909(v=vs.85).aspx) takes 3 arguments (HDC, int, int). Both ints represent a coordinate in the devive context, but are measured in logical units, x = > The x-coordinate, …

Member Avatar for Suzie999
0
286
Member Avatar for VictorK19

Heres the assignment: > Write a program that will perform sorting and searching across records stored in a file. > The program should first query the user for a filename. The program should open the file and read > the first entry. It defines the number of records in the …

Member Avatar for tinstaafl
0
199
Member Avatar for JustLacksZazz

Hello everyone, I'm quite new to coding and can't seem to find an answer to this question online. So far I have created a multiple choice quiz and am now working on the nitpicky details. Right now the quiz works great but I'm just trying to add a function where …

Member Avatar for JustLacksZazz
0
692
Member Avatar for amweasel

If I make a website using Django, is there any need to use Javascript? Can Django work in place of Javascript itself?

Member Avatar for amweasel
0
296
Member Avatar for sundog1

Hi Guys, Is there a best practise when having an ADO connection to speed up the process? Currently the method I am using below works fine but it's a little slow in getting the data. Is there any hints, tips or tricks I can utilise to speed this up? //Opens …

Member Avatar for Ketsuekiame
0
379
Member Avatar for GraficRegret

I am working on a live chat function, I have everything working except the message retrieval and displaying function, I am storeing all the messages on my server in a table, I am trying to make a function now to retrieve the most recent message entered and display it in …

Member Avatar for GraficRegret
0
208
Member Avatar for fonzi

Hey guys I'm having a bit of touble assigning the toString to a string from an index of an array list, any help would be appreciated. @Override public String indentedToString(int level) { String answer = " "; answer = super.indentedToString(level); answer += "Value " + this.list.toString() + "\n"; for(int i …

Member Avatar for fonzi
0
267
Member Avatar for anisha.silva

Hi, I have a jaso object that i am getting from a API access. how do i deserialize the jason object in C# so that I can get the papameter values. JavaScriptSerializer js = new JavaScriptSerializer(); bookshare bs = js.Deserialize<bookshare>(response); string a = bs.version; when i do this for string …

Member Avatar for anisha.silva
0
231

The End.