199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for JPyo

Hey guys, So I have to convert my previous code into a code using pointers and dynamic storage and the problem is, I have no idea how. I have already read on another forum's examples of Pointers and watched a few tutorials (simple ones) and read from my textbook. Unfortunately, …

Member Avatar for mazzica1
0
137
Member Avatar for gorosh

Hi to all I would like to ask for help with my C# project. It is a Memory game involving pictures. First the user clicks a picture box and the image shows and remains displayed, then the user clicks another picture box to find the first's pair. I'm having problem …

Member Avatar for mazzica1
0
353
Member Avatar for vlaskiz

short story short, I've got data file which looks like this: [CODE] Prekės pavadinimas Atvežimo data Pardavimo data Kiekis Kaina --------------------------------------------------------------------------------- Juodos vilnojinės kojinės 2011 10 28 2011 10 28 5 6.79 Smulkus cukrus 2011 11 19 2011 10 28 15 3.66 Pigus Batonas 2011 11 23 2011 10 28 …

Member Avatar for vlaskiz
0
155
Member Avatar for trektrak

Hello, Is it possible to get data from another web server (not local webserver) using php and by that I can create the php connection to store into local mysql ... ? Any ideas?

Member Avatar for trektrak
0
77
Member Avatar for lordx78

auth.php [code=php] <?php // start session session_start(); // convert username and password from _POST or _SESSION if($_POST){ $_SESSION['username']=$_POST['username']; $_SESSION['password']=$_POST['password']; } // query for a user/pass match $result = mysql_query("SELECT * FROM users WHERE username='" . $_SESSION['username'] . "' and password='" . $_SESSION['password'] . "'"); // retrieve number of rows resulted …

Member Avatar for markashworth
0
4K
Member Avatar for javaNewb37

I want to modify the below code to read the Polynomial Terms from a text file (vs. hard-coded values) Furthermore, read data from text file in the format: P1 = 3 5 1 -1 0 8 P2 = 5 6 2 -1 1 7 0 -4 etc... Name the values …

Member Avatar for stultuske
0
342
Member Avatar for Mike Tyson

I am having trouble completing This hangman project. It mmost be done using model view controller pattern. Here is what i have so far //Header file declarations import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.FileInputStream; import java.io.IOException; import java.util.Scanner; //Class declaration class HangmanModel extends JFrame implements ActionListener { …

Member Avatar for stultuske
0
269
Member Avatar for Jungletoe

Ok, I found this code after searching for days, and to my delight it actually worked. It loads a TGA file into the memory... but I have no idea about how to load it into an OpenGL texture that I can use to texture a cube. I have literally spent …

Member Avatar for myk45
0
1K
Member Avatar for rimilbadal

i have a page that has a textarea (id="elm1") i post this value to the same page when a submit page is clicked to send the value of the textarea in a html mail the textarea will contain html code but when i use it only the text comes in …

Member Avatar for rimilbadal
0
931
Member Avatar for rse

Hello, I managed starting a session and store some data when a user login to the system. The user can edit his/her prifile by clicking on edit, then some of the data will show in the edit form. Now I have the form with empty fields and I need to …

Member Avatar for rse
0
139
Member Avatar for eblanco1

Write a program that counts number of words in a sentence and displays the average number of letters in each word. Your program should ask the user to type a sentence (or sentences) that are 80 characters or less. If the sentence is longer than 80 characters, truncate it and …

Member Avatar for Clinton Portis
0
234
Member Avatar for sneekula

I need a function that returns True or False if an integer n is a prime. Any 'high speed' thoughts?

Member Avatar for wallars
0
1K
Member Avatar for Kyle Willett

I'm doing a program that is supposed to reverse a string entered my the user using a recursive function, I almost have it solved except for one little elusive bug that I can not understand. [CODE] //****************************************************************************** //Programer: Kyle Willett //Course: CS-1513 //Program: 3 exercise 7 page 933. //Purpose: Reverse …

Member Avatar for Kyle Willett
0
211
Member Avatar for Zwiebi

Hello, I'm trying to write a script which is listing files based on different preferences, like filetype or permissions. All is fine, except for one: I want to list files in /home which has a different owner than the home directory it is in. Here is an example: /home/UserA is …

Member Avatar for Zwiebi
0
234
Member Avatar for theprofoundgeek

Hello! I have coded a compression technique and I am having trouble in measuring the speed of it. I tried to generate log of start time and end time, but compression time of same file varies a lot under windows. That may be happening because other processes would be consuming …

Member Avatar for ExpertsGuide
0
322
Member Avatar for BITnur

Im doing my project on number conversion. I found the coding below. can anyone help me to explain the coding. why the coding have "count"? why the "count + 1"? what function of "count"? [CODE]void Bin2Dec() { long int a[20],i,n,count=0,b[20],c[20],sum=0; printf("\n Enter a binary number to convert to decimal form:"); …

Member Avatar for BITnur
0
238
Member Avatar for mc3330418

So wrote this code all in main and it worked then tried to put it into function, per assignment, and i'm getting three errors both in the last function where I call the previous functions to print. [CODE]#include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; ifstream infile; …

Member Avatar for mc3330418
0
209
Member Avatar for engineer61

Hi friends I need urgent help. now three variables we printed to a file received from the user. This variable to another file, the user wants to take that file and the value of the variable is a variable, you need to do. And this event is the first change …

Member Avatar for zeroliken
0
139
Member Avatar for JasperX

I dont know if someone Use this Browser FrameWork , i hope so :) I would use this Browser Framework in my Winform Application c#. I have some questions to do. I'm getting Crazy :( My target is Build a Tabbed WebBrowser with this FrameWork in a WinApps Form. [B]Question …

0
162
Member Avatar for skatamatic

My boss asked me to write a PID class to control a motor today. No big deal, except that the deadline is tommorow evening. My calculus is rusty, and my vb6 is probably worse (which is the language I am to use). Anyone have a good understanding of a PID …

Member Avatar for skatamatic
0
2K
Member Avatar for Alvi89

Im currently trying to delete a record from a file The structure ive used is this: [code]struct studentRecord { char rollnumber[12]; char name[32]; int attendancePercentage; float quiz; float assignment; int classpart; float mid1; float mid2; float final; float semesterPerformance; float overallPerformance; }; [/code] Now I have 2 problems: 1.I cant …

Member Avatar for Adak
0
228
Member Avatar for tformed

[ICODE] org 0100h mov dx, msg mov ah, 09h int 21h mov ah, 4ch int 21h msg db 'Hello Wold! \nThis is my first program using Assembly', '$'[/ICODE] Hi guys, I'm learning Assembly Programming using NASM and had a question. Would it be possible to break lines in Assembly? Say …

Member Avatar for tformed
0
13K
Member Avatar for jaycastr

Hey Guys, My problem is that i want to get a random number given a specific range. But it the range is a small decimal or float it rounds up. Here is what i have so far [CODE] $xl=$row['x_lower']; $xu=$row['x_upper']; if(isset($xl) && isset($xu)) { $x = rand($xl,$xu); echo $x; } …

Member Avatar for diafol
0
111
Member Avatar for edw211

Hello everyone, I'm new to the forums and also a newbie to database design studying at university. I am attempting the apparently notorious video chain database project. Below are the project specifications: "Consider the operations of a video sales and rental chain. Such a company purchases videos from vendors and …

Member Avatar for griswolf
0
647
Member Avatar for Jack_Frost

Hello all, The program I am working on is calculation of areas (of shapes). For example, for triangle area calcuation I have: [CODE] else if (character == 't') { double b,h; cout << "Enter base: "; cin >> b; cout << "Enter height: "; cin >> h; area= h * …

Member Avatar for Narue
0
171
Member Avatar for PixelExchange

Hello everyone. I've recently written a program which draws some stuff to a DC; however, on a screen invalidation, the things drawn on the DC, dissapear (get erased.) Does anyone know how one would be able to draw to this dc, and have whatever was drawn to the dc remain …

Member Avatar for PixelExchange
0
97
Member Avatar for Biff123

I managed to get a quicksort function to sort the numbers in a dynamically allocated array of structs, [code]struct Contact { char first[maxstring]; char second[maxstring]; int number; }; //and the dynamically allocated array, Contact *person = new Contact[numberofcontacts]; //The quicksort function I used to sort numbers is: void Quicksortnumber(Contact *person, …

Member Avatar for Narue
0
122
Member Avatar for Bobonoinc

I am working on an application in which I select a color from a color selection dialog and click on a graphic shape to change its color. Everything is working fine, but now I would like to change the default arrow-shaped cursor to an eyedropper shape when I am in …

Member Avatar for Bobonoinc
0
99
Member Avatar for DarkWolffe

I have an [URL="http://pantheonarts.host22.com/xml/feed.xml"]RSS feed[/URL] set up using XML on the website I've developed for [URL="http://pantheonarts.host22.com/"]Pantheon Arts Unlimited[/URL]. I'm still fairly new to PHP and MySQL, so I find myself often jumping to various forums looking for answers for what are usually fairly obvious questions. My newest problem, however, I've …

Member Avatar for DarkWolffe
0
191
Member Avatar for jhellr13

Hey I'm in an AP Computer Science class working on classes. We have been working on a project that is a date class that does certain things like setYear, getMonth, getDay, etc. I have gotten all of those to work, except for one. The last one is a boolean method …

Member Avatar for stultuske
0
306
Member Avatar for Ravic85

So, I'm trying to write this program here are the listen instructions. 1. You are going to write a program that uses 3 input files and 3 output files 2. your program will include a function template that sorts an array of values in ascending order. the function will receive …

Member Avatar for griswolf
0
767
Member Avatar for frank33

My Java instructor yesterday gave us a sample test. One line that surprised me was something like [B] if ( m2++ < 10 ) { ………[/B] iow the first thing done is , in effect m2 = m2 + 1, an ASSIGNMENT. Whether the instructor ever actually discussed this in …

Member Avatar for stultuske
0
140
Member Avatar for AdampskiB

I'm attempting to create a number square when it's using a parameter. Whatever the user enters in the parameter it will display something like this (using 4 as an example): 4567 3456 2345 1234 I've come up this so far: [CODE]def numberedSquare(n): for a in range(n, 0, -1): print(a, end="\n") …

Member Avatar for techie1991
0
167
Member Avatar for aadebayo

Hello I have got a code below that works perfectly in generating html via PHP. However, I will like to export the results into PDF or Micorsoft word, but I am struggling. Please can anybody point me in the right direction [CODE]// Get house group details for this member //$memberRecord …

Member Avatar for aadebayo
0
121
Member Avatar for crankyslap

When I click the "Go" button I want the button event in "wxQuestionMain.cpp" to call "somefunction()" which is inside "otherFile.cpp". That works just fine. But I then want to change the text in the textbox "txtCtrl1" from inside "somefunction()" and that won't work because "somefunction()" is not part of the …

0
124
Member Avatar for phorce

Hello, I'm writing a program that compares two percentages and I need them to be rounded up or down depending on their number.. I have used this: [code] percentage[i] = Math.Round ((analysis[i] * 100) / char_count); [/code] Bit it throws an error that it's too ambiguous.. Now the "analysis" is …

Member Avatar for thines01
0
97
Member Avatar for techker

hey guys this is the structure of the Db: `Ex_ID` int(11) NOT NULL auto_increment, `N_Etudiant` varchar(25) NOT NULL, `Professeur` varchar(50) NOT NULL, `Foyer` varchar(50) NOT NULL, `Motif` varchar(50) NOT NULL, `Date` date NOT NULL, `Notes` text NOT NULL, `Autre` varchar(150) NOT NULL, so basically N_Etudiant is a student name.. so …

Member Avatar for techker
0
94
Member Avatar for evilweevil

[B]hey guys: i put a question 2 days ago after having a problem with this equation and u guys helped me alot and solved it but i want to program it in java everything went well but gave me 2 errors here is the code and all information the code …

Member Avatar for stultuske
0
2K
Member Avatar for crc0002

Here is the program assignment: [icode] Graph abstraction is important because it is used in many different areas of science, engineering, computer sciences and software engineering. For instance, the Internet makes use of graphs to represent the Internet router network configuration in order to determine the best route for forwarding …

Member Avatar for mazzica1
0
1K
Member Avatar for mikrosfoititis

Hi everyone, I seem to be experiencing some problem with the linking of header files. I'm sort of creating Date structures and I have the following files: [list] [*][b]Date.h[/b]: Class Date declaration [*][b]Date.cpp[/b]: Class Date functions definitions and auxiliary functions [*][b]DateFormat.h: Class DateFormat declaration (used to format Date objects) [*][b]DateFormat.cpp: …

Member Avatar for mikrosfoititis
0
291
Member Avatar for lameraz

GUI class with the list. What i want to do is have another class add to this list when button is clicked but im not sure how to do that. [CODE] public class LView extends MasterViewPanel{ private static final long serialVersionUID = 1L; private JButton host, join, quit, start; private …

Member Avatar for lameraz
0
170
Member Avatar for Taximus

Hello everyone. I don't know how to call a method from abstract class in protected method. I know that to call method of some class I need to create an object, then object.Method. What are the other ways to call methods? Here is the example code: [CODE] static public List<Figure> …

Member Avatar for Narue
0
154
Member Avatar for salah_saleh

Hello, I have a problem in reading p5 PGM file: [CODE] ifstream::pos_type _Start, _End, _Size; ifstream::off_type _newStart; char * memblock; vector<vector<int> > initMatrix ; std::ifstream inf; inf.open("a.pmg", ios_base::in | ios_base::binary); if (inf) { std::string line; for (int i = 0; i<3 ;i++)//skip the first 3 lines that contain the info …

Member Avatar for mazzica1
0
821
Member Avatar for kashyapchhabria

I have been running the program but it quits in the end on pressing alt+f5 it says BGI Error:- Graphics not Initialized(Use Initgraph) but i have sphecified the graphics driver properly and also egavga.bgi is also there in the folder bin

Member Avatar for Narue
0
204
Member Avatar for phorce

Hello, I have two arrays that contain different numbers that I need to compare with another array.. e.g. Array 1: 10 20 40 70 Array 2: 5 3 10 18 2 Basically, I want to write a program that calculates the highest value each array and then swops the values.. …

Member Avatar for Narue
0
170
Member Avatar for Beary21

I'm trying to login to Valve's Steam website, but without any luck my 2 different scripts aren't working. Help please!? Any script I find on the web appears to be outdated. [CODE] import urllib, urllib2, cookielib, webbrowser data = urllib.urlencode({ 'action': 'doLogin', 'goto': '', 'steamAccountName': "****", 'steamPassword': "****", }) # …

0
207
Member Avatar for roshan_iiita

Please tell me how can I master Shell Scripting or check many amazing shell script applications as wherever i search i find the same things. Now i am getting bored and want to learn something new. Isn't there any book or link which has advanced applications of shell scripts ?

Member Avatar for dbashell
0
393
Member Avatar for twinkle2011

Guys I need some help in my activity, I'm making a calculator using NetBeans but I dont know what codes to use be in 0,1,2,3,4,5,6,7,8,9,+,-,*,/,=,(. decimal) all i know is the clear button code[CODE]private void jButton1ActionPerformed(java.awt.event.ActionEvent evt){ jTextField1.setText(""); } [/CODE] My calculator lack of functionality...:(

Member Avatar for twinkle2011
0
114
Member Avatar for smata

please help me using C++ to create the following hierarchy of classes; (1). a [B]Person[/B] class with fields for name (type String) and an email address (type String). it should contain two constructors: one without input , a second one with input name of type string and email of type …

Member Avatar for tkud
0
189
Member Avatar for exidez

Im new to javascript so im sure there is a lot i am missing in its understanding. What i am trying to do it create a layer of images so that it looks like a pile of cards. have seen similar codes and have tried to follow their idea but …

Member Avatar for Airshow
0
148

The End.