199,113 Archived Topics
Remove Filter ![]() | |
[Link Anchor Text](http://s7.postimage.org/wdzzqzst7/weird_error.png) I click yes, thought so, this never popup when I'm compile any file before. [Link Anchor Text](http://s14.postimage.org/6bhslq23l/weird_error2.png) can anyone explain what I'm doing wrong here, I mean, I just copied all the code given in the book (Accelerated C++), then try to compile, but fail. help? =(. | |
Hi ive made a program where it displays 10 products from a website. The customer then chooses a certain amount of those products. When the customer is finished choosing, the program will display all products the customer has chosen. Here is the full program. it works. #include <iostream> #include <fstream> … | |
Hello, I am attempting to enter two numbers via console in my test class and call a method in my main class to add the numbers and display the answer. Java doesn't like the Calculator.Calcuate(); code. It gives me an error of "cannot make a static reference to the non … | |
Hello Dani Members I Have Question About My Code <?php $id = intval($_GET["id"]); $result = mysql_query("SELECT * FROM peoples ORDER BY RAND() LIMIT 1"); while($row = mysql_fetch_array($result)) { echo "$row[name]<br/> <a href='members.php?id=$row[id]'><img class='img_shadow' src='$row[image]' width='198' height='250' alt='$row[name]' /></a>"; } ?> This Code Get Me Image Of ONe Member And His … | |
Hi Guys, I have created windows application project in framework 3.5, vs2008 with Access database when i changed target platform to x64 it will give me an error like 'The microsoft.jet.oledb.4.0 provider is not registered on the local machine'. How to solve this thread Thanks in advance. | |
Hey, I have this simple lab that I'm working on, but I keep getting an error while compiling. Here's the question: **Write a program called lab09.c that -prompts the user for a character and then a string. -REMOVES all occurrences of that character from the string, and -prints the changed … | |
never help with pointer and functions. i want to creat a function what check if "char *test" is inside "char array[1]" int main() { char array[1] = {"one", "two"}; char *test = "one"; check(test, array); } void check(char test, char array[]) { int i; for(i = 0; i <= 1; … | |
I have mentioned the code for checker board made on visual studio .I dont know whats the problem with this code .. it just draw only one row of checker board on the drawing window :( help me [code] //#include <windows.h> // use as needed for your system //#include <gl/Gl.h> … | |
Hello there guys! I need your vb6 expertise. I have a feature of my program with the quantity. What i want is i need a warning message if the quantity is lesser than the minimum quantity for example the minimum of 5 quantity. In my code it will reach to … | |
heres what i ve done ~~~ vb Private Sub cmdtimein_Click() If txtempno.Text = "" Then MsgBox "Please Input employee number!", vbExclamation + vbOKOnly, "Employee Record" Exit Sub Adotime.Recordset.MoveNext Else Adotime.Recordset.AddNew Adotime.Recordset.Fields("employeeno").Value = txtempno.Text Adotime.Recordset.Fields("timein").Value = Time Adotime.Recordset.Fields("timeout").Value = Time Adotime.Recordset.Fields("date").Value = Date Adotime.Recordset.Update MsgBox "You are time in!", vbInformation + … | |
[CODE] #include<iostream.h> #include<conio.h> #define NULL 0 class node { public: int dt; node *lt,*rt; node(int x) { dt=x; lt=rt=NULL; } }; class tree { public: node *create(); int height(node*); node *mirror(node *); }; node* tree::create() { int x; cout<<"enter data(-1 for no data)"; cin>>x; if(x==-1) return NULL; node *t=new node(x); … | |
Main form coding ;- using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace CS3DGeneratorSample { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void link_Image_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { OpenFileDialog.Title = "Open Image"; if (OpenFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) … | |
It seems like the website has some changes made on it. I can't post codes anymore and if I do they look messed up. Can someone help me please? One more thing, how do I sort items saved to disk alphabitcally? | |
I have a bit a of a problem because I have no idea what's going on in my code. Could someone guide me with this? **It has to swap the nodes themselves. ** #include <iostream> #include <iomanip> using namespace std; typedef struct node { int DATA; node *NEXT; }; node … | |
Without the name, it runs fine. I read up that adding const before new could solve my problem, but it doesn't. Any ideas? include <iostream> include <string.h> using namespace std; class Player { int Health, *Strength, *Speed, *Accuracy, *Defense; char *Name[80]; public: Player (char, int, int, int, int, int); ~Player … | |
I'm in an intro C++ class and am suppose to make a phonebook program that will show a list of commands then read in a name,number ,and notes into a file. Then be able to retrieve a name, or display the whole contact list. I'm having trouble getting the find … | |
Using an appropriate definition of ListNode, design a simple linked list class with only two member functions and a default constructor: void add(double x); boolean isMember(double x); LinkedList( ); The add function adds a new node containing x to the front (head) of the list, while the isMember function tests … | |
Code blocks are created by indenting at least 4 spaces ... and can span multiple lines class Wizard : public QDialog { Q_OBJECT public: Wizard(QWidget *parent); private slots: void what_ever(); private: QPushButton *what_ever; }; Wizard::Wizard( QWidget *parent ) : QDialog(parent) { QGridLayout *layout = new QGridLayout( this ); QScopedPointer<QTextEdit> textEdit(new … | |
basically what ive got going is some transformations using my own functions, ive got them working fine still using glMultMatrix but im not allowed to use that for this. im trying to make my own matrix multiplication function and im getting stuck somewhere. the matricies are all one dimensional arrays … | |
I have recently started learning C++ and I'm having some trouble with the following problem: "Suppose a cuboid has three sides length, depth and height. Write a C++ program that reads from keyboard these 3 sides in the form of integers, with proper input prompt/s, then display the volume of … | |
Class extStrSet inherits from class strSet. The following function down-casts from the former to the latter. inline extStrSet& ss2extss (const strSet& ss) { return *(extStrSet*)&ss ; } Can someone explain how the down-casting is accomplished by explaining each part of the expression in the return statement? Also why is downcasting … | |
Hello, I have an assignment to convert some given jave code into c++. I am currently having an issue wherein when I run the program it tells me that: error C2660: 'approximateSqrt' : function does not take 1 arguments. Any suggestions for moving forward would be appreciated. I have the … | |
Hi ive made a code which does two things. First is read from a separate .dat file a product's model number, name a proce. The second bit allows the user to choose the product model. Depending on what the user chooses, only 1 of the products is displayed. So for … | |
Hello all, I hope this is the correct place to ask this question. I joined 5 minutes ago so first off Ill say im a absolute noob at programming- I have no idea how to program. I have tried to learn over the years but have never been able to … | |
Each childrow has a parentid and position. For childrows with the same position there is one row where start='1'. What i'm trying to do is return the pending rows with their start row. The results that should be shown are; start(owen) pending(dave,paul). This is because they have the same position. … | |
Hi all, I am doing some c++ exercise about operator replacing. I have successfully replaced the + (plus) operator to work on a user-defined class. I understand these operators are order-sensitive: need to replace the operator for (class+int) and for (int+class). Thus, creating **two** replacements that do exactly the same. … | |
I have a page that I wrote to upload a text file to a mysql database. The text file has thousands of lines and each line is a separate database row. An identifier at the beginning of each line tells me which table to insert the line into in the … | |
hi guys...i have this prooblem which i like to acho a window pop up...but i cannot do so...the link does not seem to work and i cannot find any error in it. I wonder if anyone can find any error here: $ancpopup = "<div id=\"anctrigger\"><a href=\"#\" onclick=\"window.open('m_ancpopup.php?page='$eid','ancpopup','width=670px,height=470px,left=0px,top=100px,screenX=0,screenY=100')\">Accident & Conviction EXIST!</a></div>"; … | |
Hello, Something really weird started happening in my web application. I have some buttons defined in a Master Page File and then I have a lot of pages that derive from this Master Page file. One of the buttons (In the master page file) closes the user session. This means … | |
Hi all, I need to utilize a Graph Data structure for an assignment. I've understood the following code (posted below) until I came to the search function. The depthFirstSearch and breadthFirstSearch both require a Visitor<T> which is an interface. I'm not much used to interfaces, so I'm not sure where … | |
Can someone who have free time willing to teach me how to overload operator on CSharp? Thanks in advance. | |
after searching on the web, i know that Me keyword is use to Refer to the Current Instance of an Object, but if i want to Refer to the others Instance of an Object, what is the keyword that i need to use? | |
Im uploading student details that are tab seperated within a text file. If a submitted ID was added sucessfully to the database i want to add the submitted details to a gridview to allow the admin to see the total of submitted students. //student details from the submitted text file … | |
Write a Java interface named Searchable with two abstract methods: one named Way2Search that returns a String and another named MaxTime that returns an Integer. Be sure your code compiles and runs as expected. Name your Java file Searchable.java. Although there is no compilitation errors, or any errors throughout the … | |
After the form is submit, it will not echo $genderRadio Any ideas? It can select the gender but I can't display in the php file `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title> Assignment 2</title> </head> <body> <h1>Please enter your information</h1> <form method= "post" action = "output_hw2.php"> … | |
I am making a online social networking site, and have messging section, i want it to make it show only 1 messge from each user, So if you have a message from for ex Username "bob" id "32" and you have 5 messages from him Then you have 20 messages … | |
Dear All, 1. How can i enter data in flex grid and then press save button to enter data in access db with out using text boxes? 2. How to bind record set with flex grid? Please give me sample code which should for add edit delete data from db … | |
I am looking for syntax I saw somewhere but can not find now. Working with the results of a find delete the files found. The syntax is something like this: for i in "${find . -name '*.ini'}"; do rm $i; done Am I dreaming or is this possible? | |
Hi all, I have a login system for the site. My problem is I am very new to php and battling to understand this. What I want to do is only accept logins from people that have emails from a certain domain. Here is the code I have at the … ![]() | |
Good Day I have some questions to ask, I made a point of sale system using vb6 my question is,. is it ok to combine dao and ado? Hoping for your quick replies thank you | |
In Python, which is more of a pythonian style of writing between these two: 1. print 'Hello' or 2. print('Hello') If u have a link on basic outlines of pythonian style and which syntax is a more pythonic way to use, it would be very useful to me. Thank You! | |
plz... I need to add images for drop down list..So how I do it?? This software deverlop in java platform using Netbeans. So this can't be use any Java Script.Can you? Because this is Desttop application .. plz help.. | |
**I am using NetBeans** i have a 'Search by employee id' button . I want when user click this button a dialogue box appear which take employee_id as input from user . then that input be used for fethcing data from the database ( desired table in DB has primary … | |
Hi, I have a problem with a nestled "for-each". I want information from every orditem. Every orderitem have one "orderitem id" and could have several "job id". The sample belove do not work,any suggestions? XML <order orderid="20"> <workflows> <workflow id="97" <items> <orderitem id="1"> <jobs> <job id="150"/> <job id="151"/> </jobs> </orderitem> … | |
Hi, I'm an amateur programmer developing a 3d asteroid/space based game in xna. In my game I have a ship with a chase camera attached to it. Attached to the camera (and here I mean its position is calculated relative to the camera) is an arrow model that always points … | |
I have been going through the motions and still cannot seem to get this right. I have textboxes in a gridview that are populated from an access database. They are all datetime values. In the backend code, I am trying to loop through all those values and then apply conditional … | |
Hey guys, I am making a simple c++ compiler with Visual Studio 2010, but I am stuck on the converting it to assembly bit(with c++ coding). What I am trying to do is convert the code they type(in a cpp file) to assembly, then translate it to machine code etc. … | |
Give a main function written in C++. Your main function is to see if it has been passed exactly one command line argument (you are to check that there is exactly one), and it has the value –verbose The function will set the local integer variable foundVerbose to 1 if … | |
I've brought up this topic before [if...else .. statement ](http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/417440/if-statement-/1#post1780532) Now my question is... i need to specified the time... where I know Java only can recognise "8" "9"... for hours ... and minutes from 1-60.... ok what if i need the action to be like this Instead of if … | |
I have a code and I want to validate it before the submitting it. When I say before submitting it I mean that the form does not submit the information filled till everything is filled correctly. I was thinking of using the if statement but I believe if I do … |
The End.