64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ThatBitchYeah

#include<stdio.h> #include<stdlib.h> struct complex { int real,imag; }; int main() { int choice; struct complex x, y, z; { printf("Press 1 to add two complex numbers.\n"); printf("Press 2 to subtract two complex numbers.\n"); printf("Press 3 to multiply two complex numbers.\n"); printf("Press 4 to divide two complex numbers.\n"); printf("Enter your choice\n"); …

Member Avatar for veducator
0
445
Member Avatar for techxaidz

PROBEMS: > The Library class would include data members such as ID, Date of acquisition, description, number of copies, title and **instance methods such addItem() and retrieveItem()** also accessor and mutator methods are needed to accecss data members. > User arrays to store library holdings. So here's my questions: **What …

Member Avatar for stultuske
0
530
Member Avatar for ayat abukhadra

Hello, Is there's a way to detect the browser re size on the client side using the java script ? Thanks in advance for helping =)

Member Avatar for ayat abukhadra
0
84
Member Avatar for happyHacker

Beginner question about these intents and activities... If I plan to do something with the phone hardware or file system, is it necessary to use an activity for doing so? What is the purpose behind this system?

Member Avatar for NardCake
0
106
Member Avatar for AquaNut

Hi Everyone, I am trying to read in a block of xml using the following code, but it always jumps over the foreach loop: XDocument doc = XDocument.Load(sourceFile); XElement root = XElement.Load(sourceFile); var DataRecords = doc.Elements("DATA_RECORD"); foreach (var dr in DataRecords) { //build up the values we're interested in string …

Member Avatar for nmaillet
0
358
Member Avatar for chdboy

I'm making a payroll software ,I have made two forms 1.Employer Form 2.Employees form I think now that I have confused ,because now I cannot diffrenciate between who works for who any sugesstions how can I improve on design ,or something that can solve the confusion (Problem) I also have …

Member Avatar for chdboy
0
104
Member Avatar for andika.kurniawan.121
Member Avatar for Ancient Dragon
0
356
Member Avatar for GraficRegret

I am trying to delete pictures from the server that are associated with a specific item, that way when the user clicks on the delete button it will delete the item as well as all pictures associated with it, after doing a bunch of searching and experimenting I have this …

Member Avatar for GraficRegret
0
280
Member Avatar for welshly_2010

having a little trouble trying to convert this pseudo code into python, could any help receiveFile () { lastblock := 0 newblock := 0 ; repeat repeat event := getFrameFromUDP(m) ; case event of data : newblock := getBlockNoFromFrame(m) ; transmitAckOverUDP(newblock) | timeout: transmitAckOverUDP(lastblock) esac until newblock==lastblock+1 ; lastblock = …

Member Avatar for vegaseat
0
7K
Member Avatar for krystosan

I have implemented a toolbar that has several QPushButtons inside QVBoxLayout, however I have implemented it in `toolbar_UI.py` from PySide import QtCore,QtGui class ToolBarUI(QtGui.QWidget): def __init__(self,*args,**kwargs): super(ToolBarUI,self).__init__(*args,**kwargs) self.floatingToolBar() def sizeHint(self): return QtCore.QSize(65,45) def buttons(self): self.emlSel = QtGui.QAction("Email Selected", self) self.emlScn = QtGui.QAction("Email this Scene", self) self.emlBufr = QtGui.QAction("Email Current Frame …

Member Avatar for vegaseat
0
201
Member Avatar for soapyillusion

Hello everyone, I am once agian running into a problem with something that's normally simple, yet lovely cakePHP has to make all so very hard. I'm once agian tasked with improoving the bookmarking application on our website. This time I am suppose to have the url save the date: start …

Member Avatar for soapyillusion
0
143
Member Avatar for trishtren

Hello, Iv recently just started using javafx and i am struggling finding a way to access data from a controller class, at the moment i can do it using method.invoke, however it seems like more of a hack than a legitimate clean option of accessing data from a controller class. …

0
76
Member Avatar for clouds_n_things

So, I wrote an address book and I'm nearly done, but Im having a little trouble using the picle module to back up the input data to a file for later retrieval. Here is what I have so far: (Im working on a solution while I type this) from tkinter …

Member Avatar for clouds_n_things
0
322
Member Avatar for mmcdonald

Hey all, cant get this very very simple query to work but I have been going 26 hours and my thoughts are numb. Please assist? I have error reporting on and request mysql errors but I'm getting nothing. Contents of config.php $db_host = 'localhost'; //IP of database server (most likely …

Member Avatar for JorgeM
0
141
Member Avatar for Tinnin

Hi all, Regarding a football (soccer) league: I am trying to find the top goalscorer for each team in the league in December 2012. Each time a player scores a new row is created in the table "Scored" with their name in it and their corresponding team and the date …

Member Avatar for Tinnin
0
206
Member Avatar for anjerodesu

Hi everyone, I would like to ask a question about MySQL. Say, I have a database like this: database 1: articles |- id |- title |- description database 2: tags |- id |- articleID |- tag I needed to search from articles.description and tags.tag and while doing so, the searched …

Member Avatar for anjerodesu
0
326
Member Avatar for WDrago

All, I am using lock() to try and sync threads writing to the same file, but my threads are still stepping on one another. Can anyone tell me why this doesn't work and how to fix it? Here is some sample code. In the real program the writes are very …

Member Avatar for WDrago
0
6K
Member Avatar for amrita111
Member Avatar for amrita111
0
140
Member Avatar for emmanueloladele

Hello all, I have a frameset which contains two frames called 'menu' (to place my menu) and 'content' to place my main page. when you click a link in the 'menu' frame, the url opens in the 'content' frame. In the 'content' frame I have an iframe name 'bodyText'. I …

Member Avatar for shivani3832
0
6K
Member Avatar for angel06

Hello I'm currently working with my Java program here is my code: import java.util.Scanner; public class StringAct{ public static void main(String[]args){ Scanner inp=new Scanner(System.in); System.out.print("Enter string: "); String a= inp.nextLine(); if(a=="angel"){ System.out.print("Valid"); } else{ System.out.print("Not Valid"); } } } this program asks the user to enter a string, the string …

Member Avatar for angel06
0
144
Member Avatar for fheppell

I need to build a gift voucher section of my python cash register software Here's the code I have so far elif payment == '3': print "Scan or enter gift card" cardno = raw_input('Card Number: ') try: with open(cardno, '.txt') as f: pass value = f.readline() except IOError as e: …

Member Avatar for Lucaci Andrew
0
162
Member Avatar for shermags

Hi, I am new with the WPF Browser Application in VB.Net. I would like to know if how can I execute a windows form or a page. I had tried to this code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click Dim Form As New Window1 …

Member Avatar for shermags
0
124
Member Avatar for riahc3

Hello I wish to convert the following jQuery each to fors....This way I can see it a lot clearer.... var draws = this.canvasListener.getDrawManager().getAll(); $j.each(draws, function(index, draw) { var points = draw.getPointManager().getAll(); $j.each(points, function(index, point) { }.bind(this)); } Yes, I know "each" is faster and better optimize but I dont care. …

Member Avatar for riahc3
0
145
Member Avatar for RobRTaylor

I'm trying to delete an old desktop shortcut on program startup. Only this code isn't working. ' Get rid of the updater icon on the desktop. Dim DeleteShortcut As String DeleteShortcut = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\Sample Shortcut.lnk" If System.IO.File.Exists(DeleteShortcut) = True Then System.IO.File.Delete(DeleteShortcut) End If Looks pretty straight forward- but just …

Member Avatar for RobRTaylor
0
1K
Member Avatar for barriegrant1

I need to use a <hr> tag under the date based on a condition. however its within a listview template and am haiving issues either finding it or trying to dynamically add it. below is the code that loads the first article and stores its date in a temp location, …

Member Avatar for JorgeM
0
168
Member Avatar for jim.keele.7

Hi there everyone, I am a novice at java and this one has me stumped. This is the beginning of a tax calculator but I am getting irregular output from the getIncome() method. It starts fine, letting the user enter income figures, but on the third income entry or so, …

Member Avatar for jim.keele.7
0
140
Member Avatar for GraficRegret

I got everything working on the edit information page even the delete picture and insert a new picture. However when I delete or insert a picture, every field in the details table dissapears, if it turns out to be a field that is editable then it gets replaced with a …

Member Avatar for GraficRegret
0
191
Member Avatar for alpzee

I am a newcommer to java programming. i wrote this which compiles without error. when i put an int value like "5" it runs without any problem but when i puts a double value like "5.1" i get error. What is the problem? package javaapplication1; import java.util.Scanner; // Scanner is …

Member Avatar for alpzee
0
166
Member Avatar for riahc3

Ive created a dropdown box dynamically getting datea from a database but when I try to get (or set) the first value, it always says undefined. Ive tried something like: $j("#mydiv").val(1); var somevariable = $j("#mydiv").val(); console.log ("print it out " + somevariable); And it says print it out undefined If …

Member Avatar for riahc3
0
171
Member Avatar for Fame95

I am doing a syntax highlighter (which is my first c# project) and I have some performance problems. Every time I have to color a word, I stop the repaint, color the word, enable repaint and invalidate the richtextbox. This is the richtextbox class: namespace test { class rtb:RichTextBox { …

Member Avatar for Fame95
0
2K
Member Avatar for rev_ollie

Hi, I am coding some python to work with some wireless serial devices. I have 2 devices reading temperatures and other environmental data over an Xbee which then writes the data over serial. The data looks like this when read in Hex: *7e001090007d33a200408b2e0c2db7010016005763* The important character is the 7e at …

Member Avatar for rev_ollie
0
4K
Member Avatar for AARTI SHRIVAS

is it possible in php java scrip and jquery that we give a condition and redirect page to another pages on depending on those condition like if($id==1) { header(location:page1.php); } else { header(location:page2.php); } the value of id comes from database. something like that using jc jquery enything please help …

Member Avatar for AARTI SHRIVAS
0
310
Member Avatar for AARTI SHRIVAS

<?php session_start(); include("connection.php"); $id=$_SESSION['id']; ?> <!DOCTYPE html> <html class="beautiful js " xml:lang="en" lang="en"> <head> <link href="120gb_files/index_packaged.css" media="screen" rel="stylesheet" type="text/css"> <title>mackbook_how to find</title> </head> <body> <form method="post"> <div class="box"> <div class="button"> <select id="screen_size" class="fancy" style="border:1px solid #ccc;" > <option selected="selected" value="">Screen Size</option> <?php $sql="select * from `mackbook`"; $result=mysql_query($sql); while($row=mysql_fetch_array($result)) { ?> …

Member Avatar for AARTI SHRIVAS
0
4K
Member Avatar for romz

hi everyone. I want to delay the click event in a vsFlexgrid so that the double click event will run 1st. I used a timer for the delay in the click event and managed to get the value of the double click speed in the windows library for the timer …

Member Avatar for romz
0
1K
Member Avatar for earlxph8

hello guys, how can i display the data from php mysql with text decoration for example underline or a dotted line css/html? thanks.

Member Avatar for earlxph8
0
733
Member Avatar for harinath_2007

I was working on a project on netbeans and came across a problem with netbeans. The netbeans was showing the error repeatedly as "duplicate class". eventhough there is no duplicate class in the project. After so much frustation , i realized that this is netbeans bug. After doing some search …

0
244
Member Avatar for lewashby

In the following script I can't get the variable STARTPOINT to increment by 3 each time through the loop. I con't get it because the variable NUMBEROFGROUPS is incrementing by -1 each time and both increment lines look identical to me. #!/bin/bash set -x leading_zeros() { local NUM=${1} local NUMBEROFDIGITS=${2} …

Member Avatar for rch1231
0
167
Member Avatar for Rahul47

hie people, could anyone tell me what's wrong with following code: Dim cmd As New SqlCommand("SELECT * FROM Security_Ques WHERE Username = " + txtUsername.Text + " and Ques_Index = " + cmbSecurity_Ques.SelectedIndex + " and Answer = " + txtSecurity_Answer.Text + "", con) because it is raising an exception …

Member Avatar for Rahul47
0
400
Member Avatar for Proglearner

Aside from multiple-page access, when is it a better idea to use external js files than to embed scripts in a webpage?

Member Avatar for Shadizon
0
172
Member Avatar for Rahul47

Hey people, here is a question that is troubling me from quite a long time. I want to diable the (x) button on form_load event, to prevent user from directly closing the application. How may I achieve this ?

Member Avatar for Rahul47
0
800
Member Avatar for clouds_n_things

Hello everyone! I am tring to use Tkinter from terminal (I'm on a mac) and I keep raising AttributeErrors on both Python 2.7 and Python 3. For 2.7 I input: >>> from Tkinter import * >>>win = Tk() >>>f = Frame(win) >>b1 = Button(f, "One") and I raise the AttributeError: …

Member Avatar for clouds_n_things
0
3K
Member Avatar for shermags

Hi, I'm new here!!! I just want to ask if is it possible to add a property within a property at VB.Net. Sample Public Class Form1 Private xproperties As PreferenceProperties Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load xproperties = New PreferenceProperties PropertyGrid1.SelectedObject = xproperties End …

Member Avatar for shermags
1
277
Member Avatar for hwoarang69

i just started reading how to connect ur cart to paypal. i get the main idea but when i hit paypal buy button. data doesnt tranfer. so on paypal site it alway say to have 0 items in ur cart. <?php ... $x=1; $pp_checkout_btn = ''; $pp_checkout_btn .= ' <form …

Member Avatar for hwoarang69
0
174
Member Avatar for ambageo

Hi! I am supposed to write a programm for making a window.First of all, I must make a window with some given default values. Below is the code that I have been given as a template public class Window { private String name; private int height; private int width; private …

Member Avatar for ambageo
0
214
Member Avatar for khushhappy

Sir, having a problem. I have two tables i.e directives and para_comments_sect. there is no direct connection with each other . what i want is to get the data field from directives and para_comments_sect of para_id=15 ( its a foreign key from para table). any suggestions and guidance for it …

Member Avatar for adam_k
0
168
Member Avatar for MasterHacker110

I have made this RSA encryption program but it crashes when it is finished decrypting the line. What is wrong and how can I fix it? #include <iostream> #include <string> #include <cmath> using namespace std; bool IsPrime(int p); int main() { int p, q; int n, phi; int e, d; …

Member Avatar for Moschops
0
301
Member Avatar for mehnihma

I have this code to parse XML file I need to take elements "Name" and write them all to csv header (from every product in XML) with rest of the XML data, but I need values to be as data in csv For Now I can write just header, but …

Member Avatar for LastMitch
0
262
Member Avatar for pmec

Hi there guys i've got a script that's suppose to find the average of two times as strings. The times are in minutes:seconds:milliseconds i'm doing ok in printing the right minutes and seconds my problem is with the milliseconds. **Example if i have 00:02:20 and 00:04:40 the average will be …

Member Avatar for ZZucker
0
5K
Member Avatar for barriegrant1

Im passing a long string to a method that will return the first 20 words, however when i return the value the old value is still in the string. any ideas? My code is as follows: string textContent = txtDiaryText.Text.ToString().Trim(); int NumberOfWords = 20; getLimitedWords(textContent, NumberOfWords); { //do stuff with …

Member Avatar for barriegrant1
0
119
Member Avatar for sciwizeh

Hello, In trying to port some Java code to C++ I'm disliking the std::stream's lack of copy constructors. I know exactly what the problem is, but I don't know what I can do about it. I have a dangling reference to a stream as a member variable of a class. …

Member Avatar for vijayan121
0
2K

The End.