199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for SolidSora

I'm trying to write a fraction class and I want a function to reduce the fraction to lowest terms. The problem I'm having is trying to get the fractions to reduce. I need a way to find a common factor in both numbers. All other functions work the way I …

Member Avatar for vijayan121
0
4K
Member Avatar for ankit.4aug

Please tell me ..what do you mean by following line void(*fnctn)(void(*)(int *,void **),int(*)(void**,int*));

Member Avatar for vijayan121
0
148
Member Avatar for jnick12

I need help with the //Find letterGrade function. The program works perfect with the if/else statements that are commented out, but I want to convert it to a switch statement. I did it, but it keeps saying that the variable 'grade' is being used without being initialized...Please help. [CODE]#include <iostream> …

Member Avatar for alaa sam
0
5K
Member Avatar for uchiha203

Hi guys, I just want to ask some help I added a Download Button in every row of my Gridview. Its function is to download the Binary File of the corresponding row. Whenever i run it it gives me the error "Object reference not set to an instance of an …

Member Avatar for uchiha203
0
173
Member Avatar for karlosekevin

i am using floppy as ATM card.. am thinking that using the serial number of the floppy, i can check with the database and confirm it and loging the user.. but i have problem in getting the code for getting the code for getting the serial number of the media.. …

Member Avatar for sapan gupta
0
116
Member Avatar for airesh

hi again guys, i want to automatically turn on the caps lock when the cursor is focused on a certain textbox.. please help..i am doing a school project and i badly need all you help guys..thanks.

Member Avatar for airesh
0
1K
Member Avatar for joywheels

Hi everyone, I am going through a self-paced class for Python beginners and have ran into a dictionary problem that I can't figure out. I'm creating a set of words from user input. Then send those words to a dictionary that adds a key for when the word is first …

Member Avatar for TrustyTony
0
131
Member Avatar for dre-logics

I have an official version of Visual Studio 2008 Team System. I use Visual Basic 2008 from Visual Studio 2008 Team System. With Visual Basic 2008, I built several Windows application. [B][COLOR="Green"]I want to use Visual Studio 2010 Premium [/COLOR][/B] [COLOR="Red"]Upgrade scenario[/COLOR] I have three Upgrade questions: 1.Can I upgrade …

0
92
Member Avatar for airesh

hi, i have 2 combo boxes. both values are integers and i want to add the values of the two combo boxes and display the sum to a label..how is it possible? guys, please help thanks much!..:)

Member Avatar for airesh
0
178
Member Avatar for Nahiyan

I have one MySQL database field which saves comment from users. Some comments have new lines but when I try to use PHP to display the contents of the database, the new lines are ignored. I know about nl2br() but I guess it will not work as my users will …

Member Avatar for Nahiyan
0
205
Member Avatar for Korenai

hi, can u check where have i gone wrong on this code? i have 2 listviews with similar columns, whenever i click the item on listview_1, it will transfer to my listview_2. the code below adds the column_named 'UNITS' to my label box For Each TempNode In ListView1.Items If Double.TryParse(TempNode.SubItems.Item(2).Text, …

Member Avatar for codeorder
0
105
Member Avatar for LeMajestique

I am having trouble making a menu system for a text based adventure game I am creating. I don't really understand all of the concepts yet but I am trying to go to a new situation by setting a number to be a certain situation and then by picking a …

Member Avatar for vinayakgarg
0
179
Member Avatar for itisnot_me

ok so i am including a html file that has a css file within it. but when i include it, it breaks the relative css location. is there a way before i include the html file that i define the relative area. example include("admin/template"); html file <link href="css/style.css" rel="stylesheet" type="text/css" …

Member Avatar for ana10192000
0
103
Member Avatar for brainbox

Hi, I am new to web development, i need to develop a comment box, and save those comments in a file( either database or normal text pad), so that i can retrieve them later and display them on my web. My server does not support php or anyother special scriptin, …

Member Avatar for ana10192000
0
267
Member Avatar for gvarma123

Hi, I have a file from which I want to extract values under a particular column and store them in an array This is the file. Could anyone help me to get to read the values under the column k1. fitk2 Date: 2005-08-26 15:37:10 Study: temp2 Data file: k2tis.dft Plasma …

Member Avatar for MALINI JAGDALE
0
9K
Member Avatar for phouse512

Hello all, Today I received this as my error: Parse error: syntax error, unexpected T_STRING in /home/a8712935/public_html/admin_members.php on line 60 I've looked all over the internet but I can't find a solution to my problem. There is nothing wrong with that line, but I think it is a problem with …

Member Avatar for Shanti C
0
155
Member Avatar for tinker

my problem is that, i have a button that contains values and carry it to javascript here is the code below for the button that carries value 1; [CODE] <button onclick="passValue('1')">Pass Me</button> [/CODE] here is the javascriptfunction that will be called by the button above; and this script would set …

Member Avatar for tinker
0
191
Member Avatar for mespo365

I am trying to get a element of string and cast it as a integer. What I am ultimately doing is in a for loop taking an element out of the string and convering that element to an int. This is in order to get the characters ascii value. thanks

Member Avatar for jonsca
0
173
Member Avatar for alonewolf23

I would like the user to input a sentence that contains quotes around a portion of it and then my program will convert any letters in quotes to upper case. My problem is how do i write the statement to start toupper() one i == " and end the toupper() …

Member Avatar for WaltP
0
274
Member Avatar for localp

Hello I have been trying to code this for the last few days, and i am unable to come across a solution for this. Would you please mind helping me out on this? There are some records in a notepad, which are as follows [CODE]1 Paul Mac 3 1 222 …

Member Avatar for naief
0
93
Member Avatar for sirlink99

I would like to make it so that when a character (picture or shape) moves it leaves a trail behind it that keeps getting more transparent. how would i start. If you jump the trail should follow up then down. Can anyone help me? Thanks

Member Avatar for sirlink99
0
86
Member Avatar for thisischris

So I'm working with these strings and I'm stumped at this one part. Here's the instructions: "After removing leading and trailing blank characters (<SPACE> or <TAB>), the string must not be empty." .empty() will obviously be used, but how do I check for the " " or "\t" characters and …

Member Avatar for mrnutty
0
107
Member Avatar for Mapper99

I have a simple jQuery click handler that animates the change of a divs background image. I would like to create some reusable code so I would not have to copy my code for every div I would like this effect on. How would I go about this? [CODE] <style …

Member Avatar for Airshow
0
156
Member Avatar for MasterGberry

Haven't worked with classes for a while, so please excuse all these dumb questions :P Still learning. Let me know if you need more info. 1>c:\users\adam\documents\visual studio 2010\projects\help\pusoy\pusoy\pusoy.cpp(24): error C3867: 'Deck::dealCard': function call missing argument list; use '&Deck::dealCard' to create a pointer to member deck[] is a vector of Card …

Member Avatar for MasterGberry
0
190
Member Avatar for 612wharfavenue

Im trying various ways to trigger a transition, the simplest being the use of css pseudoclasses: [CODE] //leaving out default header stuff// <head> <style> .item{ opacity:1; -moz-transition: opacity 1s ease; } .item:hover { opacity:0; } </style> </head> <body> <img src="myimage.jpg" class="item" /> </body> [/CODE] If i use js to make …

Member Avatar for bvelez352
0
85
Member Avatar for abhityagi85

Hi I have seen that the download softwares download a single file in multiple threads/parts/connections. I am wondering that how a single file is downloaded like this and whats the logic behind this? We can download multiple differnt files in multipple threads but how single file in many threads to …

Member Avatar for Giridaran
0
59
Member Avatar for zizuno

Basically I have to create a website for this community project our class in school is doing. It is coded in entirely php and html because I hate writing javascript. Cut to the chase, there is a photo gallery and a semi-secret log in that you can log into for …

Member Avatar for nuttyniall
0
96
Member Avatar for plusplus
Member Avatar for MasterGberry

I took my deck of Cards (class Card) and shuffled the. But every time i ran the program it gave me the same shuffled results.... [CODE]void Deck::shuffleDeck() { std::random_shuffle(deck.begin(), deck.end()); }[/CODE]

Member Avatar for erikandr
0
131
Member Avatar for MasterGberry

I am trying to take a std::vector<Card> and organize it by one of the int values stored inside the Card class. How could I go about doing this with iterators and the sort() method? Or is it not possible? Ty :)

Member Avatar for MasterGberry
0
102
Member Avatar for weasel7711

I have a small company Database that tracks our repair orders. I have a query that I would like to execute based on criteria that the user inputs. I am new to VBA so most of my code is based on google research. I took a technique of wrapping my …

Member Avatar for weasel7711
0
253
Member Avatar for ITemplate

Hi, Looking at this xml: [CODE]<root> <nodeA /> <nodeB /> </root>[/CODE] Is it then possible to set the value of nodeB when inside nodeA? For example: [CODE]<xsl:template match="nodeA"> <!-- Here do something like nodeB.Text = "hi" --> </<xsl:template>[/CODE] So that the output of matching nodeA could be (the thing to …

Member Avatar for ITemplate
0
113
Member Avatar for blenkhn

I have been trying to no avail to load a ui file and insert it into a tabWidget as a new tab. I commented out a try that I thought would work, I was wrong. I have tried several different ways but I always seem to get the same error. …

Member Avatar for blenkhn
0
896
Member Avatar for cufisa

Hello there everyone. I am having a bit of trouble with my C programming. I do not know anything about C programming and this is my first semester and already my professor is putting pressure on me. Anyone that can help would be appreciated. So I am supposed to create …

Member Avatar for cufisa
0
1K
Member Avatar for phouse512

Hello all, I'm making a simple game in minesweeper, and I have a Mine class with a JButton and some other information, namely an x and y variable for its location. In a class called Board, a constructor creates a multi-dimensional array of Mine objects. I tried adding mouselistener to …

Member Avatar for Ezzaral
0
1K
Member Avatar for andrewliu

Hello I hope you can assist me with this :) [CODE]$(document).ready(function(){ $(".downservices").mouseenter(function() { $(this).parent().find(".servicesdropped").slideDown("fast").show(); $(this).parent().hover(function() { }, function(){ $(this).parent().find(".servicesdropped").slideUp("fast"); }); }); });[/CODE] This code allows me to make a drop down menu when the cursor hovers over a link. I have a horizontal menu, so when I hover over a …

Member Avatar for bvelez352
0
164
Member Avatar for Zvjezdan23

[CODE]#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; string reverseStr(string& x); int main() { // Array for your words vector<string> words; // Your Words words.push_back("I"); words.push_back("won"); words.push_back("ten"); words.push_back("tickets"); words.push_back("for"); words.push_back("a"); words.push_back("rock"); words.push_back("concert"); words.push_back("in"); words.push_back("the"); words.push_back("park"); words.push_back("for"); words.push_back("this"); words.push_back("Friday"); vector<string>:: iterator myIter; vector<string>:: const_iterator iter; cout << "Sentence …

Member Avatar for Zvjezdan23
0
183
Member Avatar for ddellostritto

Hi everyone! I'm dealing with an online test that has 100+ questions and I would like a way to: a) turn all $_POST into $_SESSION automatically b) clean the data c) encode it a) I found this but it makes the form fail [CODE] if(isset($_POST) { foreach ($_POST as $key …

Member Avatar for nuttyniall
0
603
Member Avatar for LianaN

Hi! Please, tell me how to make the JDialog close button working in a proper way. Now it does not work. [ICODE]System.out.println(value);[/ICODE] produces 0. But if I write [ICODE]if (value == 0)[/ICODE], then nothing happens. Any ideas? Thanks! [CODE] public static void about() { final JOptionPane optionPane = new JOptionPane( …

Member Avatar for LianaN
0
225
Member Avatar for Siege

Hi, here is my code so far: [CODE]<?php //List files in chosen directory $dir = opendir("uploads"); while ($entryName = readdir($dir)) { $dirArray[] = $entryName; } closedir($dir); $indexCount = count($dirArray); echo "$indexCount files <br />"; for($index=0; $index < $indexCount; $index++) { if ($dirArray[$index] != "." && $dirArray[$index] != "..") { $type …

Member Avatar for mschroeder
0
482
Member Avatar for tcollins412

i am writing a php code that displays text from a database. how would i make the text auto break `<br />` after a certain amount of chars? please help asap. thanks

Member Avatar for nuttyniall
0
176
Member Avatar for realproskater

here is the question: Write a program that reads names and gpa’s from a text file. The file looks like: James 3.9 Margaret 3.5 Charles 1.2 Jennifer 4.0 Your program sorts the students ascending by gpa, and prints the sorted list including names. To keep the names with the numbers …

Member Avatar for realproskater
0
247
Member Avatar for dikri100

I can code it with this account just click on a link I need one that relies on various link on the same page. codigo need cookie. <script type="text/javascript" src="file:///D|/Downloads/cookie.js"> </ script> <script type="text/javascript"> var = CookieUtil { get: function (name) { var cookieName = encodeURIComponent (name) + "=" cookieStart …

0
68
Member Avatar for joeyfm

So heres my issue... I am a student studying php and as a project am making an online php phonebook. It is database driven, and currently I am having issues with the delete page. the code for this is below and the website is online and said page can be …

Member Avatar for nuttyniall
0
115
Member Avatar for Mr.BunyRabit

Hey there. Troubled once again, and this one i cant find on the internet. I have a datagridview. I can update it perfectly, when i type in data into the datagridwiew and press the button. So that works. Now i have a form that pops up with 2 txtboxes and …

Member Avatar for Mr.BunyRabit
0
107
Member Avatar for dougancil

I have the following code: [code] Public Class Payrollfinal Private Sub Payrollfinal_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load exportfileButton.Enabled = False Dim oCmd As System.Data.SqlClient.SqlCommand Dim oDr As System.Data.SqlClient.SqlDataReader oCmd = New System.Data.SqlClient.SqlCommand Dim _CMD As SqlCommand = New SqlCommand Dim adapter As System.Data.SqlClient.SqlDataAdapter = New System.Data.SqlClient.SqlDataAdapter …

Member Avatar for dougancil
0
645
Member Avatar for rachmann

Help! I've seen some things... like [code] double AngleBetweenVector(Vector3 A, Vector3 B) { return Math.Acos(Vector3.DotProduct(A, B) / Math.Sqrt(Vector3.DotProduct(A, A) * Vector3.DotProduct(B, B))); } [/code] but...this only returns one angle... In 3d space, vectors are composed of 3 vertices... to get to another vector, you need two angles to offset the …

Member Avatar for rachmann
0
646
Member Avatar for PM312

How can i add treeview control to my project. I cannot find this in components.

Member Avatar for AndreRet
0
222
Member Avatar for novedturn

The issue I am having is the following: Table1.FieldA is unique where as the Table2.FieldA field is not. When I run the following: SELECT Table1.Numbers, Table2.Numbers FROM Table1, Table2 WHERE Table1.ID = Table2.ID I get mutiple records like so: ID Name Numbers 125 John Doe 555, 556, 557 125 John …

Member Avatar for novedturn
0
94
Member Avatar for Shinedevil

If anyone has a game project that they are working on and wouldn't mind having a helping hand with it, I would really like to be a part of the project. I wouldn't require pay or anything, just a credit if the game ever reaches the market. I'm willing to …

Member Avatar for alumini86
0
247

The End.