199,114 Archived Topics
Remove Filter ![]() | |
Hi I really need help figuring this one out I have been working at it forever. I am trying to pass an array of 3 pointers, which are themselves arrays, and get the sum of the last two pointers and store it in the first pointer. The pointerarrays are filled … | |
Error at line 56 and 68. Unable to resolve it. [code=c] #include<stdlib.h> #include<stdio.h> #include<ctype.h> #include<string.h> #include"stack.h" #include"queue.h" #include"calcstack.h" #define MAXSIZE 80 void intopost(stack *stackPtr, queue *queuePtr, char expression[]); void pushvalue(queue *queuePtr, char item); void pushop(stack *stackPtr,queue *queuePtr,char item); void noBracket(stack *stackPtr,queue *queuePtr,char item); void removeBracket(stack *stackPtr,queue *queuePtr,char item); int precendence(char … | |
I am trying to add a new record to a database using VB.net. I have used code for one table in the database which worked and then copied and pasted it and changed the column names to the ones in the other table and then I got an error saying … | |
plz help me in this code . its not giving the output plz correct my code [CODE]#include <stdio.h> int main() { double fahr , celsius; printf("Enter the temperature in degrees fahrenheit:"); scanf("%d",fahr); //convert to celsius celsius = (5.0 / 9.0) * (fahr - 32.0); printf("%if temperature in celsius",celsius); return 0; … | |
The following is an excerpt from a complete program that runs without any errors. It has 2 file dependencies which it uses to access and store information. The program, in its entirety, displays a menu with 5 options the user can choose from. [LIST=1] [*]View Characters [*]View Items [*]Add Character … | |
I see this in KR C programming language. I really did not understand what it means. If it is line number of current source then we could use __LINE__. But what is the use of #line actually? | |
Hi all, i am new to java, i am doing a grid computing project, anyone related to the fields please reply me. so that i can discuss my problems with u. regards | |
Ok, here's the thing... it's been almost 6 years since I have done any programming other then basic HTML stuff. I went to school for 5 years and earned my degree in Computer Science - mainly software and database stuff (Assemply, C, C++, JavaScript, COBOL, Visual Basic, SQL, etc). Since … | |
I have an html page with a random url that I want to be clicked programmatically in javascript [code="javascript"] <html> <head> <script> function ClickURL() { document.getElementById('xyz').click(); } </script> </head> <body onLoad="ClickURL()"> <a href="www.somewebsite.com" id="xyz">Link </a> </body> </html> [/code] This only works in IE - it does not work in FireFox. … | |
what code can I use to make a fortune cookie program that will give a random result when you input bday, month and year? I'm new with this but this is what i typed first: [CODE]#include<conio.h> #include<stdio.h> main() { int dd,yy,mm; clrscr(); printf("Know your Fortune Cookie reading"); printf("input birth day") … | |
Why do I have do use the Seekg()-function two times in a row to make it work? Code: [CODE] fbin.seekg(0); //jump to record at start of file fbin.seekg(0); //jump to record a second time (else it won't work) fbin.read(name, sizeof(name)); //read from data field 1 fbin.read(reinterpret_cast<char*>(&age), sizeof(int)); //read from data … | |
can someone tell me what i am doing wrong #include<iostream> using namespace std; [CODE]void char play_again(char letter, char 'y', char 'n'); [/CODE] [CODE]void char play_again( char letter, char 'y', char 'n') { char 'y', 'n'; char letter ; cout << " Would you like to play agian?( press y or … | |
i got errors and i cant find out what they meant i have went down the program line by line trying to figure them out and i am having no success. I am trying to use call by call values and parametrers n this program. (list of errors are below) … | |
Hi, I need a charting API which can plot static Line Graph for 300 million points. API should support zooming and panning of axes comfortably after plotting 300 million points. I tried with JFreechart but the result is not good for even 100 million points. Does anybody have any Idea … | |
I had a hard drive crash and lost all my source code for my poker clock program, but still have the program. Are there any programs I can use to reverse engineer my program so I can get the code back? | |
error: default argument for `int&ns1' has type `int'. i cant figure out why this error is popping up it says the error is on line 3, anyone know how to help? [CODE]#include<iostream> using namespace std; void score_num(int &ns1=0,int &ns2=2,int &ns3=3, int &ns4=4, int &ns5=5, int &n6=6, char gam_answ); void display_score(int … | |
hi all, i am not getting inserted the dropdown value to the back end except that everything is inserting. so can u please help me. [CODE]<?php ob_start(); @session_start(); require_once ("check.php"); createsessions($username,$password,$userid,$projectid); $con=mysql_connect("10.70.1.50","invensis","invensis"); if(!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("database_myproject",$con); $sql="SELECT projectname from projects where createdby='$_SESSION[username]'"; mysql_error(); $result=mysql_query($sql); … | |
i have a jsp page which have a some school names link. when i click to link of a school name, school name are appended to a link that will go to a second page. in this second page have same item which i will use same for all school. … | |
I have a program that will load a datagridview with data from a database via a dataset at form load. On this same form, I have a button named "count", that when pressed, I want it to show a message box indicating how many entries were loaded into the dataset. … | |
Hereby the code i have wrote about a small porgram to to find the maximum number from three numbers. Waiting your comments,,, GET AX; MOV BX,AS; GET AX; MOV CX, AX; GET AX; CMP AX,BX; CMP AX,CX Put AX End | |
I'm going through my professors notes right now and he says in big bold print "Length does not include terminating null". I've looked at 2 different versions of this and in both cases it counts the terminating null. Can someone explain why this is happening. Case 1 [CODE]#include <stdio.h> #include … | |
Hi, I dont understand why, but for some reason, the system does not recognize the buffered reader in the fileReverse method. Every time I try to invoke the readLine method on aBufferedReader, I get null as a result. Even my file reads: null null null null Can someone please help … | |
Hi, Is there a way to set a default query string if query string is null? Something like: [CODE] if (Request.QueryString["ID"] == null) { //set default here } [/CODE] Many Thanks Grant | |
I'm trying to get a SQLite3 DB to populate a wx.ListCrtl. I can get it to print to stdout/stderr without any problem. I just can't seem to figure out how to display the data in the DataWindow/DataList? I'm still learning programing/python so any advice would be appreciated. After two days … | |
Hello friends Iam KNR, Iam facing a problem with javascript validation, I am getting validation with alert boxes but i require inline validation like in .NET means the error msg has to be displayed after control please help me Thanks in advance KNR | |
I am a part time college student getting his butt kicked in C++. I dont know how to access the members of the class in this header file. How do I do it? And please use plain english. Thanks // Specification file for the Complex class // constructor included. #ifndef … | |
I am a little fuzzy on how to post my code so everyone can see it. I am too dull witted to figure out the instructions given on the blank thread. Would any one be willing to help me out? thanks | |
Dear Friends, im receiving a XML file which contain a HTML code in the value of a node.. i have fetched the html code, but now i have to show that on my ASP .NET page. please tell me how can i do that... is it possible to assign that … | |
[CODE]#include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> #define TRUE 1 #define FALSE 0 void new_item(); void list_item(); void search_item(); void buy_item(); void list_buy_item(); struct item { float price; char item_name[20]; int n_item; struct item *ptrnext; }; struct item*headptr, *newptr, *currentptr,*previousptr,*headptr2, *newptr2, *currentptr2,*previousptr2; void main() { char ch; int choice=TRUE; … | |
![]() | I have this code: [CODE]class Member: def __init__(self, name, typeOM, fee, yearJoin): self.name = name self.typeOM = typeOM self.fee = float(fee) self.yearJoin = yearJoin # Reader Methods def getName(self): return self.name def getTypeOM(self): return self.typeOM def getFee(self): return self.fee def getYearJoin(self): return self.yearJoin def getMemberTypeString(self): if self.typeOM == 'P' or … ![]() |
Good day guys. Im just new in c++. I just want a little help/guide/sample code or steps on how to get files from a certain txt files(notepad) and display it on screen. Vice Versa. Thank you for giving time. God bless. | |
Good Day, Im new to visual basic. i created a simple database form using microsoft access as my database. my question is how can i create a browse button or text box where i can change the database path at runtime. please help. Tony | |
Here is my code. I want to insert the date in 0000-00-00 format. But The error shows like this [COLOR="Red"][B]exception occured in Trainee Status java.sql.SQLException: Value '0000-00-00' can not be represented as java.sql.Date[/B][/COLOR]Here is my code [CODE]<%@ page import="INCLUDES.DBConnection"%> <%@ page import="java.sql.*"%> <%@ page import="java.io.*"%> <%@ page import="java.util.*"%> <jsp:useBean id="DB" … | |
Hello, i need assistance with a mortgage calculator program. the requirements are : Program designed with GUI to Write the program in Java (with a graphical user interface) and have it calculate then display the mortgage payment amount from user input of the amount of the mortgage and the user's … | |
[code]package inventory; // Product class import java.util.jar.Attributes.Name; // Creates Product Class, contains the inventory components public class Product { public static main(String[] args) {//begin main method Number number = new Number(001); Name name = new Name ("Highlighter"); Units units = new Units (6); Price price = new Price (2.50); //print … | |
<?xml version="1.0" encoding="ISO-8859-1"?> <catalog> <cd country="USA"> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <price>10.90</price> </cd> <cd country="UK"> <title>Hide your heart</title> <artist>Bonnie Tyler</artist> <price>9.90</price> </cd> <cd country="USA"> <title>Greatest Hits</title> <artist>Dolly Parton</artist> <price>12.90</price> </cd> </catalog> Hi, I'm sure it's very simple, but I'm new at ASP and XML. I just want to know how I … | |
Good evening everyone. I have a php based site which was designed a few years ago. I have done very little with the site since I purchased it because I was not very familiar with PHP. Well I still am not very familiar with PHP, but I am more familiar … | |
![]() | Hello, I was just wondering if anyone knows where I can find a GOOD tutorial on Red Black trees in JAVA? I was reading the Mark Allen Weiss book on Datastructure's but I don't understand much... especially when it comes to the insertions and deletion. Finding useful and concrete information … |
Hi there, I am having some trouble compiling what I believe to be unmanaged code (output from monodis) back into C# for analysis. What is the correct procedure or program to use for this? Thanks. PS. I don’t know whether it would help at all, but the output begins like … | |
I'm trying to figure out how to change the edit box colour when I click on the button. Btw, i'm using VC++ 6.0 (MFC). One way I can do is assign a colour variable. When I click the button, the colour variable changes. When the program call the OnDraw function, … | |
I was wondering if anyone knew of a good library to use for making gui's in c++. You should know that i know of winprog but the problem is that its c. I don't want c because i haven't learned c. I would like to use something that you code … | |
Hi, I have serial data that can come in at irregular intervals from a hand held barcode scanner. The scanner continuously looks for a barcode (no button or trigger is ever pressed) and when the scanner captures a valid barcode it sends the code to the PC over serial. What … | |
[CODE]//A Fight #include <iostream> #include <cstdlib> #include <ctime> #include <string> using namespace std; using std::cout; using std::endl; using std::cin; using std::string; int main() { char again = 'y'; while (again == 'y') string yourweapon; cout << "Enter weapon: "; [B][U] cin >> yourweapon;[/U][/B] string yourname; cout << "Enter first name: … | |
Hi, i have to write a program: user inputs a string of characters (letter, digits spaces etc any possible charachter) and then the program should calculate how many letter, digits, spaces, and other characters are there. I did this question using just a char array and then for loop with … | |
So I've got a major issue in my program. I'm working on building something in OpenGL (using glut), the problem is that I changed my TexureLoader from being just a function, that takes the storagevariable as reference and the name, to a class, which just takes the name (and got … | |
Hi I'm trying to play a WAV file. I have used the following code... [CODE] PlaySound("C\Sounds\GAME_OVER.WAV",NULL,SND_ASYNCH); [/CODE] I get the following [CODE] Error 7 error C2065: 'SND_ASYNCH' : undeclared identifier c:\Users\Chris\Desktop\Pacman\v1.0\Pacman\Pacman.cpp 65[/CODE] I have also tried... [CODE] PlaySound (TEX("\\SOUNDS\\GAME_OVER.WAV"), NULL, SND_SYNC | SND_NODEFAULT); [/CODE] With this i get no sound … | |
Okay. I have been seriously struggling with this lately. I've searched and searched forever. The closest I found was this thread here: [url]http://72.5.124.102/thread.jspa?messageID=1662301[/url] What I am trying to acheive: I want to give my interface grayscale images for icons(png), and have a filter class that can color the grayscale images … | |
Hello Everybody! first of all,i`m complete noob at software developing.I don`t even know what language i should write the program that i need.Basically, i want to create program that has sort of "sand box" environment for windows. The purpose of the program is to make the human who currently logged … | |
Hi, my program don't work? Propgram stop on: this.textBox1.Text = "(New text)"; [CODE="C#"] Thread demoThread; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { this.demoThread = new Thread(new ThreadStart(this.ThreadProcUnsafe)); this.demoThread.Start(); textBox1.Text = "Written by the main thread."; } private void ThreadProcUnsafe() { while (true) { Thread.Sleep(2000); this.textBox1.Text … |
The End.