199,114 Archived Topics
Remove Filter ![]() | |
Hi All, How i can restrict the numbers of customer from database? I use adodb with access. I know how to retrieve customers from database but i don't know how to restrict it to spesific numbers. Best Regards. Sturdy | |
It doesn't read the first line of the text file. Why? pFile = fopen(user, "r"); if(pFile == NULL) printf("File doesn't exist!\n"); if(pFile != NULL){ while(fgets(line,80,pFile) != NULL) { fgets(search,1000,pFile); printf("%s\n",line); . . . . . | |
I am teaching myself C++ and wrote a program that does the queue data structure. It runs corectly. I would like some feedback on how I can improve the program to make it run faster, use fewer lines of code, or be clearer to someone else. I haven't added my … | |
Hi im trying to create a code where it would read from a separate text file some names and grades, then display them. However i am asked to use a class to "store"(if thats the word) them as below: #include <iostream> #include <fstream> using namespace std; class student { private: … | |
I have a java program whith a mysql database. the user loggs in in the breginning of the system with a username and password. there are some functions that the normal users may not see/use. How do i know who is logged on to my system, since they only type … | |
Hi all, hey guys could you please help me in this issue: i get warning message whenever i try to run my login form Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\db.php on line 10 unable to connect to the database i am using xampp, … | |
I Got STUCK ON PART 7, would appreciate it if someone can help out. I have it due on sunday Thanks we are going to implement a slightly different version of Roulette. In our version there will be only one player and the winner is determined solely by the slot … | |
<!DOCTYPE html> <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ var ele = $('#scroll'); var speed = 25, scroll = 5, scrolling; $('#scroll-up').mouseenter(function() { // Scroll the element up scrolling = window.setInterval(function() { ele.scrollTop( ele.scrollTop() - scroll ); }, speed); }); $('#scroll-down').mouseenter(function() { // Scroll the element down scrolling = … | |
please kindly help me!!! what i wanted is when i select items in the combobox and it is already in the database it will prompt that it is already in the database..tnx Private Sub ComboBox3_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles ComboBox3.Validating If ComboBox3.Validating Then con = New … | |
i have to receive a mail when compare 2 xml files difference i have 2 xml file 1 st xml file: <?xml version="1.0" encoding="utf-8" ?> <Books> <Book bookId="100" name="Asp.Net" price = "230" /> <Book bookId="101" name="C#" price = "200" /> <Book bookId="102" name="Silverlight" price = "300" /> <Book bookId="103" name="MFC … | |
A program to solve the following problem. You can use C, C++, C#, Java or Haskell to code your solution. **The problem** You have a block of platinum that can be exchanged in your bank either for cash or for smaller blocks of platinum. If you exchange a block of … | |
Hello Everyone , I Have Made a Simple C++ Code And I Get Some Errors I Have Been Trying To Solve this For Like 2-3 Days :( I am a Beginner in C++ #include <fstream> #include <iostream> #include <cstdlib> using namespace std; int main() { for char name[100]; int age; … | |
Write a C++ program such that its execution will keep asking the user to enter a pair of integers, start and finish, and will terminate when either start>finish, or EOF or an invalid input has been encountered. Every time a new pair of integers start and finish are read, the … | |
Hello. I have some problems with recieving text from ListBoxItem. My code is below: ListBox list = (ListBox)this.FindName(e.Parameter.ToString()); ListBoxItem item = (ListBoxItem)list.Items.GetItemAt(0); //****here is exception**** T.Text = item.Content.ToString(); list.Items.RemoveAt(0); The exception throws: Unable to cast object of type 'System.String' to type 'System.Windows.Controls.ListBoxItem'. My ListBox contains numbers, but it does not … | |
help me please this is a code #include <iostream> #include <string> using namespace std; class Student { private : int StudentID ; string FirstName; string LastName; string CourseName; double FirstExamGrade; double SecondExamGrade; double AssignmentsGrades [5]; double FinalExamGrade ; double Avr_Of_Assignment; double TotalGrade; public : void SetFirstName (string S1); void SetLastName … | |
I need some help with debugging this problem. I just started learning how to store files at C but I can't seem to check if this code is correct since I can't compile it well. Might anyone help me point out the problems in my code? #include <stdio.h> #include <stdlib.h> … | |
Good Afternoon, I'm new to socket programming, and the assignment that I have to do with Server/Client socket programming which I have to write server and client programs to send text across Transport Service Access Points (TSAPs) also known as TCP ports or Sockets. Your program can select any non-privileged … | |
It's been a long while since I've last been here but I've spent the last 2 hours pulling my hair out trying to figure this out and I'm hoping for a bit of help with this one. I have a question/response check (a human verification check) on my page and … | |
I am trying to create clickable textviews in Android. I'm a complete noob when it comes to java and the Android platform, so please take it easy on me. Here's what I have right now: [code=java] public class Hypertension extends Activity { /** Called when the activity is first created. … | |
When I run my bucky.java, the background color is black and not pink. Why? Here is my bucky.java:- import javax.swing.*; import java.awt.*; /** * Created by IntelliJ IDEA. * User: Administrator * Date: 3/30/12 * Time: 3:59 PM * To change this template use File | Settings | File Templates. … | |
hi everyone! below i will be showing you the codes of my scheduling module for an enrollment system..my problem is that on how to set conflict here is the code: Option Explicit On Imports System.Data Imports System.Data.OleDb Public Class Scheduling Dim con As OleDbConnection Dim com As New OleDbCommand Dim … | |
Hello all I have a bunch of aggregate elements within my array. This array is for vertex positions in OpenGL. and I need to make a switch without having to bind more data to OpenGL. To do this I must put an if statement within the array or a booleon … | |
I'm trying to write a program that asks the users for a set of numbers which the program then sorts and counts the frequency of. I struggling with understanding arrays. I have one array in particluar called frequencyArray that I'm trying to print but it keeps returning the value 0. … | |
Hi all, I have small problem regarding my student registration form. When i enter data and submit always below message is displayed irrespective of whether the admission_id is exist or not. "Admission numberThis student has been already entered to the system" **newStudentRegistrationForm.php** <form name="form1" method="post" action="newStudentRegistrationFormvalidation.php"> <?PHP $con=mysql_connect("localhost","root",""); mysql_select_db("student_management",$con); ?> … | |
I attempted to get the records from the MySQL database and display it on a Grid View but nothing appeared. The code is below: MySqlConnection myconn = new MySqlConnection("server=localhost;user id=root;password=db;database=workers;"); // myconn.Open(); string strSQL = "select * from details"; MySqlDataAdapter mydata = new MySqlDataAdapter(strSQL, myconn); MySqlCommandBuilder cBuilder = new MySqlCommandBuilder(mydata); … | |
Hi there, I feel really stupid since I'm a beginner at OpenGL with drawing. Is there something that I'm missing in the code? The line doesn't show up on the screen. Thanks! glClearColor(1.0f, 1.0f, 1.0f, 1.0f); glBegin( GL_LINES ); glColor3f( 1.0f, 0.0f, 0.0f ); glVertex3f( 100.0f, 150.0f, 0.0f ); glVertex3f( … | |
anyone can help me. all of this overcome the segmentation fault. #include<stdio.h> int bubble(int*,int); void filewrite(); void avgmarks(); void fileprint(); void filesort(); void rollin(); int main(void) { int marks[100],rollno[100],x[100],n,i,j,roll,c,mark,roll1; char name,nam; while(c!=6) { printf("GIVE CHOICE--\n"); printf(" 1 TO ENTER STUDENT INFO.\n"); printf(" 2 TO SEE STUDENT.TXT FILE\n"); printf(" 3 TO … | |
I put a bunch of JButtons in a 2D array into a GridLayout. I want the user to be able to change the size of this grid at run time, but I tried resetting the row/cols, re-adding the buttons, remaking the panel that this grid is in - all to … | |
I am having trouble trying to figure out how to write code so the room number increases by 1 each time it asks for length and width. Here's what the assignment is about.. In this program, you are going to calculate the total square footage of a five room apartment. … | |
I'm supposed to ask the user for a grade and store that grade for future use and add curves. How do I store the grade and send it to the different methods in the switch statement? Thank you for checking out my question! import java.util.Scanner; // Used for keyboard input … | |
Hi all I have created a dynamic signatre system for my site and i would like to add the members avatar based off sig.php?username=USERNAME but when i output the file the avatar is massive how can i resize the image from say 100 x 80 to likes of 24 x … | |
Hello, I am trying to parse a string using regular expressions. This string can potentially have any number of non-alphanumeric characters acting as delimiters. These delimiters can also be grouped together. Here are some examples of the data: 00923:5342:123 --> I want to extract 00923, 5342 and 123 into an … | |
Hi guys, How can i read a specific line of the text file for example: user1 : johnson number of parts1 : 5 number of parts2 : 10 user2 : andy number of parts1 : 10 number of parts2 : 10 and i want to get the total number of … | |
Hi there everybody I am having problems with pagination using cfloop and the grouping of cfoutput in nested cfoutput tags. The code below lists my results eg: producer query results producer query results producer query results etc what i require is eg producer 1 query results 1 query results 2 … | |
i'm working on a project in ma college ....i'm in need of accessing the process information ofa system to simulate them ! i don't know how to access the pcb of the os !! please help me | |
Hi, I am facing a problem in transferring session.I am developing a website and I want to integrate a forum in the website.I need to take the session of the user from my website to the forum. Is there any way of transferring my session values to the forum. Thanks … | |
Hello All, i am new to oracle , i need to know where to start (books , videos , tutorials) where to start from scratch Thanks a lot. | |
**So i am having trouble with printing as you have noticed with the title** **i need to have 2 things print after the 2 menu choices. it is a smiley face creator** `Inline Code Example Here import time def eyes_menu(): print "These are your choices for eyes:" time.sleep(1) print " … | |
Hello, I'm trying to split a matrix (512x512) into blocks of (16x16).. Now I have managed to complete this for a small matrix (4x4) but when I try to implement it using the 512x512 it fails and doesn't produce enough blocks for the entire matrix. Here is the code on … | |
Hey, I'm doing a project and on the last little piece. It involved taking 2 matrices, splitting them into blocks and then checking whether the blocks are simular or not. If the blocks wasn't simular, then swap them /or/ create a new Matrix that holds the values of the second … | |
Hi, I'm running a script to bring down the logical ip address . But if the system doesnt have that logical ip addresss then i get the following error print on terminal - SIOCSIFFLAGS: Cannot assign requested address I just want to know whether there is a way to suppress … | |
Hello my fellow DanniWebbers, it is me againg. I have yet another question for you guys and gals. I have a parent panel with child panels that contain images. I am looping through the panels to save the images in the order the panels appear in the parent panel. I … | |
plz help me in solving this question & I need the answer quickly (Set of Integers) Create class IntegerSet. Each IntegerSet object can hold integers in the range 0100. The set is represented by an array of bools. Array element a[i] is TRue if integer i is in the set. … | |
Hi All, I am working on application with a MDI Form, i want to close all opened child forms while opening any of the child form. How can i do that?? Regards, Vidya | |
Hi guys, I am toying around with ArrayLists and objects and I created a quick program to add some objects to an ArrayList and print the list afterwards. I ran into an issue, though. I am overriding the toString method in order to display the names of the objects I … | |
This is the criteria i am required to get my program to do. I have looked on google for help but I can't find any. Enhance / modify the program you created in the previous assignment. Create a class ScanArray. This class should have two methods FindMax and FindMin. Class … | |
var arr = new Array(); arr = document.getElementsByClassName("repestyl2"); var index = 0; while(index !== arr.length){ if(arr[index].innerHTML.indexOf("Eck") >= 0){ arr[index].removeNode(true); arr[index].parentNode.removeChild(arr[index]); index++; } Is this code ok? Because I can't get it to work :) Simple question :P Thanks :) Maybe I should use for-each o.O | |
hi :D please help me with this problem. i'm a newbie in vb.net i have 6 columns in my listview that should show the data from the database.. but when i coded it like this : Public Sub showmyrecords() Dim dt As New DataTable Dim ds As New DataSet ds.Tables.Add(dt) … | |
Hi there, I'm sorry if this is a vague question, but I've just been assigned to create a color animation project with GLSL, and I've never really used it before. The criteria for the assignment is that the animation should depend on object coordinates, vary over time and should use … | |
Hi, I am trying to setup a cron job on my web hosting server. I want the php file to run every 15mins. Can some one tell me if I set it up right or not? Also, since there time is 3 hours behind me I want to use my … |
The End.