199,114 Archived Topics
Remove Filter ![]() | |
Hello, I am getting the following error on line 96, and also for every function implementation below line 96. What do I need to add? error: expected unqualified-id before 'void' [CODE] //Binary_tree class interface template <class Entry> class Binary_tree { public: Binary_tree(){} //constructor //Post: An empty binary tree has been … | |
![]() | Hey everyone, I'm new to this site. one of my classmates told me about it so I'm giving it a try. anyway, for my class I need to write a code for a payroll program. so far, this is what I've written... [CODE]//Assignment 4 //Page 218 //Question 7 #include <iostream> … |
I have made picture viewer in VB which also shows all the pics present in a folder as thumbnails using image list and listbox. The problem is whenever the user clicks refresh it takes long time for the image to load. I want to some how make a cache like … | |
I'm looking for a very simple forum script such as the forum scripts they use on Ning.com (ex: [url]http://handofwin.ning.com/forum[/url]). Where can I get a forum script such as that? | |
Hello Friends, Please help me. I am a new Web Designer.. Don't have strong Javascript Skills. I have just made a website name [url]http://www.bsroadlines.com/[/url] It contains 5 pages. This website has Images Slider Script at the header, which is working perfectly fine on 4 pages except one [B]gallery[/B] page. [url]http://bsroadlines.com/photo-gallery.php[/url] … | |
Hello, I have a problem with the atan2 function. I have 2 programs, one in C and one in Matlab. Both have an identical implementation. My problem is that I am getting occasionally different values from the atan2 function in C and Matlab. For instance: x=0.29695007709080329 y= -0.96764419257510348 Matlab atan2= … | |
hi i just wonder how to limit an input when a user types a certain number. for example: Input: 5 Input: abacd Output: dcaba here my problem is when a user inputs 5, then the allowed number for inputting characters is 5 only. and then it reverses the string. I … | |
hey i got this 3d cube that rotates and does other cool nonsense HOWEVER i cant figure out how to color it. Need to do it with out using java 3d and i DO know about the painters algorithm, i just dont know exactly how to go about implementing it … ![]() | |
public class Employee { private String Name; private String SIN; private Integer Salary; public Employee(String string, String string2, int i) { // TODO Auto-generated constructor stub } public Employee() { } public Employee(String N, String sin, Integer Sal) { Name = N; SIN = sin; Salary = Sal; } public … | |
Im having a problem with error message c4430 according to MSDN the warning is created when an int is not declared. Overlooking ,y code I can't find the problem is there something I am missing? here is the code [code=cplusplus] #include<iostream> #include<string> using namespace std; class student { public: ~student(); … | |
Hey all, I've been struggling for the past few days with a "recursive" function that was driving me crazy till this moment. So, the function takes a list of sublists, each sublist containing a number of strings. Then, the function returns a list of lists of all possible combinations that … | |
Hi, i use visual studio and i want to know how i can create c projects, there is no any option for c, only for C++ | |
printf("Input an integer"); scanf("%d",&int); i want my int to accept integer only.. how can i do that? tnx in advance :) | |
Hi everyone, I've been trying different commands that check inputs that will be entered into the tables I've got. I want to check that Amount/Ename columns can not be NULL. What's <> do in SQL? [CODE] // first command ALTER TABLE Emp ADD CONSTRAINT CK_AMOUNT CHECK ( AMOUNT NOT NULL); … ![]() | |
Hello guys, I am building a small accounting system, one of the main functions of this system is to add a new supplier. I am using Telerik, Rad controls ( trial version) to make some appearance improvements. Moreover, I have a winform to add a new supplier which contains several … | |
i need a password program in assembly language that if you put a password it displays an asterisk (*) instead of the input characters... hope you can help me. thanks | |
Hello, I have created 3 tables: trainer, course, trainerCourses. Table trainer has the following fields: trainerID(PK) , trainerName, email and a brief summary. Table course has the following fields: courseID(PK), courseDate and trainerName(FK) Table trainerCourses has the following fields: courseID(FK), trainerID(FK) and attendanceStatus (int where 0 is absent and 4 … ![]() | |
Below is part of the source code of an allocator from the sgistl(2.91.57) [CODE] void ( *set_malloc_handler( void(*f)() ) ) () { } [/CODE] The purpose of this function is mimic the behavior of set_new_handler. But i don't know what is the meaning of this function. return type = void … | |
The following code works: [CODE] public class Main { public static void main (String args[]){ final JWindow f = new JWindow(); JLabel l = new JLabel(new ImageIcon(Main.class.getResource("images/logo.png"))); f.getContentPane().add(l, BorderLayout.CENTER); f.pack(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension labelSize = l.getPreferredSize(); f.setLocation(screenSize.width/2 - (labelSize.width/2), screenSize.height/2 - (labelSize.height/2)); f.setVisible(true); f.setAlwaysOnTop(true); } }[/CODE] When I … | |
Hi, Sir, How can I validate integer value which inputs from console in set method?????? plz help me... [CODE] namespace validation { public class role { private string role_name; private int role_id; public int Role_id { get { return role_id; } set { role_id = value;} } public string Role_name … | |
[CODE]//#include <stdafx.h> #include <iostream> //line_poly_file.cpp #include <fstream> #include <windows.h> #include <glut.h> GLsizei wh = 250; GLsizei ww = 250; void DisplayLines ( void ) ; void MyInit ( ) ; void DisplayLines ( void ) { GLint xj, yj, j; glClear ( GL_COLOR_BUFFER_BIT ) ; fstream inStream; //inStream.open("R.txt", ios ::in); … | |
Hi forum users. I am trying to write a quiz in JavaScript and I need to have the JS checking the quiz in a separate file than the quiz web page. When I run the following codes, I get the error order is not a function. Can someone tell me … | |
Hey, OK, so this might be something, but I seriously cannot find how I went wrong here. This is my script: [CODE] <?php $_POST['submit']; $name = $_POST[$name2]; echo "It is going to database <b>db_".$name."</b>"; ?> <br> </br> <form action='' method='POST'> <input type='hidden' name="Example"> <input type='submit' value='What db is it going … | |
I'm looking for how to brute-force the result of something like [ICODE]"Hi".hashCode()[/ICODE]. I have no idea where to start. I looked for the answer for like 5 hours yesterday. It's for reversing Minecraft seeds. (seed-to-text). I tried my own solution. It's too crap to even post. I tried to find … | |
Can anybody help me how to create a code in VBA that if day is Monday popup message "Your name is Jhon" if day is Wednesday popup message "your name is Tom" Thanks in advance Andy | |
In a program, while compiling the compiler does not give an error but while executing it, i get an error.Only "Floating point exception" is printed on the output screen.Even a cout statement given at the start of the main function doesn't get executed. Can anyone help me out with this? … | |
[CODE]import java.io.*; class FinalProject{ public static void main(String[]args){ String name=" ", month, date; int total,cash=0,bal=0,y=0; int r=0; boolean ans=true; int test; do{ try{ FileWriter extend = new FileWriter("extension.txt",true); BufferedWriter out = new BufferedWriter(extend); System.out.print("Welcome! to GLORIA'S FUDHAUZ \n"); System.out.print("Enter date: "); date = Enter.readString(); System.out.print("Enter name: "); name = Enter.readString(); … | |
Hi there, I am very new to VB6. I have a combobox name combo1 textbox= text1 and a database which contain field id and employee name. what I want is when I click the combo box and select the value 1 the program should look into the database and if … | |
Hey, I need some help, I need my script to loop through a directory of images and only delete images that contain "t.jpg"... Here is my looping script... [CODE] <?php // First we need to loop through the files.... $image_dir = $_GET['dir']; if(!opendir($image_dir)){ echo error_msg("Ooops... This Album contains no images"); … | |
my code is being compiled but the window auto close after it execute value. I can do this by using getch() also but i wanto to do it without getch() .please help. [CODE] #include <iostream.h> #include <stdio.h> class greatest{ private: int x,y,z; public: void getdata(); void display(); int largest(); }; … | |
Hello Everyone! Very close to completing my project but a small favor needed! Which is blocking me from finishing the last section of the project! This is how it goes!!!!! Have an Interface with inc complete methods [CODE] //OshwalDAO.java void InsertLog(String LogID , String Username , java.Util.Date CurrentDate) throws ClassNotFoundException … | |
I have a problem getting my assembly program designed to get the first 47 numbers of the fibonacci series to output to a file. I'm not getting any errors except for when opening command window. This is the exact question on my homework problem if this helps : Using Programming … | |
[CODE] [1]class A{ [2]public static void main(String...agrs){ [3]String str1="ABC"; [4]String str2="ABC"; [5]String str3=new String("ABC"); [6]} [7]} [/CODE] How many objects are created at each line and finally at line 7? | |
hi my program should implement queue using stack h make a code but i still have error if an one can tell me what is he error [CODE]#include<stdio.h> #include<conio.h> #include<process.h> int in_top=-1; int out_top=-1; void in_stack_push(int item); int in_stack_pop(); void out_stack_push(); int out_stack_pop(); int insert_queue[20],delete_queue[20]; void main() { int i,ch,item; … | |
Hey guys! I'm working on a console calculator. My problem is that how would I perform the inputted operator? So, if the user inputs "+" and a "-" it will perform those. Here's what I have so far: [code] import java.util.Scanner; public class Calculator { public static void main (String … | |
Hi I have only recently started using c# in my first year of university. I have done a little vb before but pretty much a noob. I have to write a simple console application that counts how many coins are required to make up a particular number given by the … | |
Hi, I have this code to communicate to an RFID device that outputs hex values. [CODE]import serial COMPort='COM13' mySer=serial.Serial(COMPort, 9600, timeout=2) try: mySer.flushInput() print "".join(["0x%2x " %(ord(c)) for c in list(mySer.readall)]) print msg finally: print 'Close' mySer.close()[/CODE] but cause error [ICODE]Traceback (most recent call last): File "C:\Python26\rfidtest.py", line 6, in … | |
Im rewriting an "ls" command to show my directories in one color and files in another for easy notice..currently my stat calls are failing, and I dont know why? [CODE] #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <dirent.h> #include <sys/stat.h> #include <sys/types.h> #define TRUE 1 #define FALSE 0 … ![]() | |
Hi, I have a bit of problem to store array from text file, It compile but result is not correct. it will store array when Max Capacity of ship is greater than harbour capacity here is my code [CODE] #include <stdio.h> int loadShip(void) { FILE *fp, *fp1; //char filename; int … | |
Maybe this is the simplest thing ever but i'm a beginner trying to learn at least 1 language. How come the Script below keeps displaying the Else message until it finds the string? I was expecting for it to display 1 single Box whether it was found or not? why … | |
How can we access hard disk addresses from c language, accessing ram address is easy? Also can we access MBR of NTFS through c , just a bit dissusion required for starting my work? Thank You All in Advance..... | |
Hi, its has been a long time since I have used java and I would like some help making this loop as long as you say yes when you say no the loop will stop but not the program [CODE] if (place.equals("swordsmith")) { System.out.println("Hello " + name +"! Would you … | |
Howdy, I have a few questions regarding the use of ctime within a class. I followed the example on [URL="http://www.cplusplus.com/reference/clibrary/ctime/strftime/"]http://www.cplusplus.com/reference/clibrary/ctime/strftime/[/URL] When the program is like this, it works: [CODE] #include <ctime> #include <iostream> using namespace std; int main(){ time_t current_seconds; current_seconds = time(NULL); //Fills current_seconds with the number of seconds … | |
I have created a program store user data in file. But i am only getting one error only but i am unable to debug it. Please help me I used turbo C++ compiler Error is on the line int employee::search_for_employee( int choice, name_temp[20] , email_temp[50]) Here is my code [code] … | |
I am trying to make a static library using Code::Blocks and when I make a new static library project it generates a cpp file with functions encased with [ICODE]extern "C"[/ICODE] I am just wondering if this is necessary or if I can write the functions in normal c++ as well. | |
I am having trouble figuring out what tables to create and how to setup the relationships properly to design a sturdy normalized database for personal finance. I am wanting to create a database that will be able to track income and expenses and compare it to budgeted amounts in each … | |
Hello everyone, I have a little problem that drove me crazy I can't figure it out, I spent hours searching the Web but in vain. I hope that you can help with it. The program must generate 6 unique random numbers but when I click display numbers sometimes it gives … | |
I am a CMS Developer but am not well in PHP. So I might need your help here.. error: Notice: Undefined variable: handler in C:\wamp\www\TESTING\components\com_rsappt_pro14\rsappt_pro14_front_desk.php on line 34 source of error: [CODE]defined( '_JEXEC' ) or die( 'Restricted access' ); // Load configuration data //include( JPATH_SITE . "/administrator/components/com_rsappt_pro14/config.rsappt_pro.php" ); include( JPATH_SITE."/administrator/components/com_rsappt_pro14/config.rsappt_pro14.php" … | |
Hello everyone! I need to anticipate that I am very new to the Microsoft developing world, therefore I am not confident with Visual Studio. I need to write an application for a windows server that works with excel. Looking on the web I found that the best method would be … | |
The code I used isn't working with sql, and not sending a mail message, but it's perfectly formed(Or not)? Please help! [CODE]<?php require_once('recaptchalib.php'); require_once('config.php'); $privatekey = CAPTCHA_PRIVATE_KEY; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't … |
The End.