199,111 Archived Topics
Remove Filter ![]() | |
i am trying to connect to an MS Access database but i am new to C#. I have looked at, amongst others, Paladin's response to dark omen about connecting to a database and since i have connected to a database before in Visual Basic most of it makes sense to … | |
New to the forums and could use a hand. I am completely stuck, and not sure what to do at this point. I keep getting "TRACE: <at java.lang.IndexOutOfBoundsException: Empty field: 106>, Exception caught in Display class java.lang.IndexOutOfBoundsException: Empty field: 106" during run-time when the method, displayList() is called (currently on … | |
Hello, I'm very new at C++ and I have to write a code that uses a recursive function to reverse some characters within a boundary, so lets say I have A[1] == ‘A’ A[2] == ‘B’ A[3] == ‘C’ A[4] == ‘D’ A[5] == ‘E’ and I put in a … | |
im writing a program for school that needs to search through a directory and find files of a certain type. if it meets up with a folder i need to search inside it and so on for all other folders found inside. i was thinking of a function to pass … | |
I am a novice @ coding right now, and am getting it by trial and error, when i run this program after the 2nd round of input it skips some of the steps and then crashes. I threw the if (i > 0) to help bypass it on the first … | |
Hi, firstly my english is not very good so ım sory about that. ı want to parse a web source. ı got the source code with urlconnection in jTextArea but ı cant get between two html tag for ex. <p class="asd">asdasdasdas </p> <p class="asd2">bdfgfdgdfgf </p> <p class="AltBaslik">I want to this … | |
Hello Help is appreciated in the following code. I am trying to multiply the first array ,collected from random numbers, by two. When i run the code below:I get only the last number of the first array multiplied by two using System; public class Matrix { Random randomNumbers = new … | |
Good evening folks. Im a Computing student in 2nd year of Computer Science at university. My current problem is the idea of a class within a class. I have developed a .h and.cpp file for a Date class(day, moth year), and a .h and.cpp file for a patients record. I … | |
What is the function of "cin.get()" and "cin.ignore()". | |
| |
Hi Guys, Hopefully someone can answer this question for me as I'm stuck as to what to do. So the scenario goes like this. We currently use an access database at our company that contains staff information. I have been asked to design a web page that when a user … | |
Hi there, I am using some windows form controls available in the Infragistics Windows Form Controls. Everything works OK on my PC but when I save my project and try to run my form on another PC it doesn't work. I get a lot of missing references if I try … | |
I am looking for advice for using the functions of these 2 scripts on the same site. I have been using greybox and a different version of easytabs that didnt require the jquery script. I recently found a version of easytabs that allows the back button to work and for … | |
I am in a java programming class but my teacher doesn't teach anything so could someone please explain to me how to import a picture into the applet and give me an example of a simple script that just imports a picture. I have learned how to use the mouse … | |
I have written a couple applications that Work great on 32-bit but crash on open in 64-bit. They are all compiled against "any CPU" but even when I compile them for 64-bit they still crash on 64-bit windows. both of these applications rely on 3rd party Dlls, some native dlls … | |
I have a code which parses/validates all the fields present in i/p weblog file. My first field is ip_address & currently can have a value like 12.45.24.245 Now I have a change where ip_address can be a dummy value something like $10.00 or $23.123.34. or $12.233. How should I change … | |
im' confuse with this function...how do i call one function so it can be used in another function?? [ICODE]#include <iostream> #include <cmath> using namespace std; double pi=3.1416; double getinput(); double distance(double,double,double,double); double radian(double); double circumferences(double); double area(double); double diameter(double); void displayresult(double,double,double,double); int main() { double x1,x2,y1,y2; double rad,perimeter,areas,dia; cout<<"Please enter … | |
So i have an original char * s with size of n; Can someone show me how to create another char * p with twice the size of s? and then fill p with 2 copy of s? Thanks. | |
Hello, Im looking at this weird little code fragment I stumbled upon the other day and I cant figure out how it works. OK, I get the picture how the array is filled up to the fourth index, but that descending part is evil. And weird. :) [CODE] #include<stdio.h> int … | |
Java n00b here. I am putting together a little random number game and am having trouble with my loss condition test. It seems like Java does not like casting ints as a bools. Here is my code so far: [code=java] import java.util.*; public class TwoRandom { public static void main … | |
I am looking to make my code more abstract so I dont need to repeat the same code. I am storing objects two different classes in the same arraylist. When searching, I need to check ahead of time to see if the entry in question is of a certain class … | |
I was already thinking along ARKoenig's suggestion and revised my code to use arrays. It was working pretty well until I made some minor changes. Now it loops non-stop without any prompt for the player to make a play. I am sure it is a small error, but I can't … | |
welcome , plz , i want a give the result about this instruction 50^99 in textbox what the data type can be use to give all number of this result. the result in textbox : 1.97654296816219E+172 but the cal in a windows 1.97654296816219[COLOR="Green"]383545704208846[/COLOR]E+172 how can give all number in textbox. | |
Good evening guys.... i'm newbie in here and in c++... while i in the middle of pratice in making program... i try to make a stack that can check whether the string that user input is palindrome or not. i'm using visual studio 2010 and get autos error this is … | |
I have a dictionary used a string (read from file by number) as key and a list as its value (each may have different number of elements). I want to print like this: 0 4 2 3 -4 5 3 1 -2 3 4 2 3 11 0 1 When … | |
I am completly lost on this could someone point me in the right direction into where I am going wrong with this code. [CODE]#include <iostream> using namespace std ; int main() { int x ; int y ; int temp ; int remainder ; // read in the two integers … | |
i made a test program, this line " *ps.Working_Hours=10;" generates mistake. why ? [CODE]#include <cstdlib> #include <iostream> using namespace std; class Salary { public: int Working_Hours; float hour_rate; float x; }; int main(int argc, char *argv[]) { Salary s; float yy; s.Working_Hours=7; s.hour_rate=30.5; Salary* ps; ps=&s; *ps.Working_Hours=10; cout << "s.hour_rate=" … | |
Hi all! I'm new to Java, so please bear with me. I'm trying to calculate the average of grades input by the user. I keep getting a exception saying that it's dividing by 0. I can't figure out why. [CODE]import java.util.Random; import java.util.ArrayList; import java.util.Scanner; public class Average { // … | |
I am trying to print out items I have saved. Each item contains a id number (ex. 34534), description( ex. book) and a barcode representation of the id number. My problem is that the barcode does not stay right below the id number. I would like for it to be … | |
Hi, a few days ago I was trying to write a WPF application that needed to update a progress bar whilst in a loop. I searched around on the internet and finally found a solution, however, I don't actually know how it works. Here is the code: [CODE]using System; using … | |
write a pseudocode algorithm tp prompt the user to enter a number and it should tell if the number is odd or even.........i need help | |
am new to c++. i want to create a desktop application but i don't know how to create a user interface-forms like vb.ne forms using dev c++ IDE. how do i go about it. | |
I need help in using 2d arrays in c++. I want to output a table that looks like this 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 … | |
I'm trying to write a program which uses 4 class files. However, I've got some issue regarding the error I got from cygwin using g++ command, it says Calling fdopen: bad file descriptor when I try to include the files I need on top of my header files. I'll show … | |
Hello Guys, I am trying to update multiple table rows using dynamically generated radio buttons. The radio buttons are in groups of two (yes and no) which also have dynamic names. In other to give the group unique names, I have added row numbers to the group names as thus: … ![]() | |
hey all i have been trying to get the ext from a file so that i can append it back on. but it seems not to be working here is what i have tried [CODE]$tempFile = $_FILES["Filedata"]["tmp_name"]; $targetPath = $_POST["path"]; $filename = $tempFile; $filename=str_replace(" ","_",$filename);// Add _ inplace of blank … | |
This code is working perfectly in Chrome and Firefox but i am unable to work it out in IE can some help me out with this [CODE]<form name="login" method="post" id="login_form"> <div class="form_back"> <input name="text" type="text" id="username" /> <input name="text2" type="password" id="password" /> <a href="" onclick="$(this).closest('form').submit(); return false;" class="login"><div id="login_button"></div></a> </div> … | |
hi guys! it's my first post on vb.net, it's just that u can't develop on windows 7 anymore using vb6, guess we'll just have to get used-huh. i'm developing this procedure using a timer object.the thing is the procedure is not in the timer's event procedure but i want it … | |
i have a form with some hidden fields..... index.php page.... [code="php"] <form id="addReplyForm" method="post" action=""> <input type="text" id="target" name="commentreply" /> <input type="hidden" id="session_id" name="session_id" value="" /> <input type="hidden" id="page_id" name="page_id" value="" /> <input type="hidden" id="firstName" name="firstName" value="" /> <input type="hidden" id="lastName" name="lastName" value="" /> <input type="submit" id="submitReply" value="Reply" /> </form> … | |
Team - I hope you can help me here. I am converting an old ecommerce site to a newer asp.net site but I need to retain the old cart. The cart is unique in that it uses forms to post the items into the cart. So if a page listed … | |
Hi, I have a c# windows app with a formTab on one of the forms. What I'm trying to do is pass the id of one datasource into the parameter of the query for another datasource on another tab. So effectively when the row containing the id field is selected … | |
See my demo page for where I have it working on an img src but not an input which is what I really want. Here's the link to my testing / demo page: [url]http://www.myu2sig.com/stellardonations/buttontype.php[/url] As for what I want to do, how can I apply the function to the input … | |
Is there any possible way to create drop down menu in java? | |
Hi Every one in this great community ...i need help with Nokia BlockD game algorithm i really do not know how to start ,,,please could anyone here can get my feet on the stage ,just help me with some ideas to be able to get started: The rules of the … | |
hi eveyone i realy need ur jelp firstly my english is not verywell so please try to understand me i am self tought programmer , and i like web developing and i want to be a web developer in php but i dont know how and what i can do … | |
Hi Experts,I have 2 pages with the name farmmgmt.php and assigndoc.php. In farmmgmt.php I insert certain fields like cowid and then get redirected to assigndoc.php for assigning doctors. After assigning when I update the table it does not do so.. I want to update the table for the recently inserted … ![]() | |
Is it possible to have an array as a class member? It is part of my Wumpus Hunt exercise. I want to do the following: [code] class Room { blah blah; }; int main() { for (i = 0; i < 3; i++) { Room adjacent[i]; blah blah; } [/code] … | |
I am trying to implement a code to hide and show divs with a radio button. If yes is selected i want to show the divs. If no is selected i want to hide them. It sounds simple enouth but i can't figure this out. Can someone please advise. Here … | |
[code] int main() { const char* p = "Hello"; cout << sizeof(p) << endl; } [/code] Why this is 4 ? | |
Hey, I'm writing a wheel of fortune game and trying to figure out how to make the game update what players turn it is. It is assumed that there is only three players, and the variable "int players = 1" is defined globally, so if I change it in the … |
The End.