199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Eng_suha

This is the full code and the single error!!!!! 1>d:\s\o.o\hws\new folder\shop\shop\main.cpp(37): fatal error C1075: end of file found before the left brace '{' at 'd:\s\o.o\hws\new folder\shop\shop\shop.h(8)' was matched [code] #include<iostream> #include<string> using namespace std; #ifndef SHOP_H #define SHOP_H class Shop{ friend ostream &operator<<(ostream &output,const Shop &S){ output<<"\nThe name of the …

Member Avatar for Eng_suha
0
141
Member Avatar for JhonMoney
Member Avatar for ckdoublenecks

the below code is intended to update a database file with the no of days late and tax calcs for each record. I'll understand this before I qive up. the subject is the error message. [CODE]<?php $stat = mysql_connect("localhost","root",""); $stat = mysql_select_db("oodb"); $query = "SELECT invnum FROM oocust Where WHERE …

Member Avatar for ko ko
0
249
Member Avatar for twigan1015

I have a few orders with UPC codes, names , and prices this is an example UPC Item Price 0921115120 Dark chocolate 13.75 2222100051 Mint meltaways 14.10 What im suppose to do is allow to user to enter the products items sold and then view batch reports on how many …

Member Avatar for codeorder
0
107
Member Avatar for killerqb

I seem to have an error updating a checkbox using an SQL Query. I am trying to get the box to be checked if equal to 1 and unchecked if equal to 0. My database is updating correctly, but the checkbox is not. [CODE]<input type="checkbox" <?php if ($row['create_event'] = 1){ …

Member Avatar for karthik_ppts
0
118
Member Avatar for kool.net

hi, can any one tell me how to i print a page in c#.net. actually i need it to print receipt in my project. Help me. Thanx in advance

Member Avatar for ChrisHunter
0
410
Member Avatar for sc8515

I have a simple program to run the Romberg algorithm however when I tried to compile it, it keeps returning that error: conflicting types for 'vector' and error: conflicting types for 'free_vector' I really cannot see why this is happening. Would you be able to advice? [CODE=c] #include <stdio.h> #include …

Member Avatar for Ancient Dragon
0
427
Member Avatar for zslgreen
Member Avatar for Dragon840215

Hey guys I need to store a single string into Memory for later use on different pages to be able to create a log file for my app. so on my 1st form(Login Form) i need to pass the Username to Memory and then read it from the memory later …

Member Avatar for kvprajapati
0
154
Member Avatar for phplover

Hi, I have created what i think is correct is one mysql_query with multiple counts. Could someone please tell me if i have done it rite ? plus how would i be able to access each count query using PHP so i can display each count query result? If it's …

Member Avatar for phplover
0
1K
Member Avatar for tracydo

Seem tangle myself up with coding here and couldn't solve much of problem after many long try. I need your fresh set of eyes. Below is my errors. Thanx /* *Description: Writing own method, Switch Selection Control, String,Accumulating, *Counting method, array base on last reviews from previous labs. *prepare a …

Member Avatar for tracydo
0
863
Member Avatar for Sydney123

Hi The below script does the job I am looking for I am not to sure how to make the drop down dependant ex ; Val 1 in box one return Val1 in Box 2 etc.. any idea someone Sydney [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> …

Member Avatar for Sydney123
0
99
Member Avatar for zambag

Good Day. I need your help or advise, I'm amidst the Planning and Requirement Analysis of my thesis in Software Engineering. I was so confused on what particular programming language should I study and used in my system. The system is an online website that consist of database for their …

Member Avatar for peter_budo
0
203
Member Avatar for Joe34

I have a textarea box that sends the information to Javascript via onclick(). I want to execute the code the user puts into the textarea. How can I do that? [CODE]var code = document.getElementById('code').value [/CODE] That's part of the function that gets called via onclick. See that variable is called …

Member Avatar for Airshow
0
146
Member Avatar for Der_sed

In my simple Silverlight class assignment... the last method : [CODE] FontFamily verdanaFnt= new FontFamily("Verdana"); myRichTextBox.Selection.ApplyPropertyValue (Run.FontFamilyProperty,verdanaFnt) [/CODE] The problem is that it changes the FontFamily of the whole RTB including the non-selected parts. It behaves kinda like: [CODE] myRichTextBox.FontFamily=verdanaFnt; [/CODE] What i am I doing wrong?

Member Avatar for abelLazm
0
121
Member Avatar for Banjoplucker

[url]http://paste.pound-python.org/show/941/[/url] Having trouble getting a loop to write to a series of newly created sequential blank .wp files. Grateful for any help, thank you. Regards & a Happy New Year! Banjoplucker.

Member Avatar for djidjadji
0
111
Member Avatar for diafol
Member Avatar for tarantulaturk

Hi all, I use a program (OpenGrads) to run on the command prompt in OPENSUSE. It worked on Windows very well but I cant run the command on linux. System commands works without any problem. But the specific command that is 'grads' doesnt work. I used system(), exec(), shell_exec() functions …

Member Avatar for tarantulaturk
0
175
Member Avatar for TGeorge824

Hey I have a question about running an application that uses a .jar file. If I have a file outside called Tester.java that uses a jar file, let's call it myJar.jar, and let's say the classes are packaged as myPackage.myClasses. I imported all the classes I needed using [code] import …

Member Avatar for peter_budo
0
169
Member Avatar for NewtoC++

Sorry if this is posted in the wrong section. But I came across this question on a test: Which of the following will evaluate to true only if boolean expressions A, B, and C are all false? (a) !A && !(B && !C) (b) !A || !B || !C (c) …

Member Avatar for hanvyj
0
119
Member Avatar for ChrisHunter

Hi my problem is that i'm making a mobile app and i need to seperate the following string: ChrisHunter21 into: Chris Hunter 21 What is the easiest way to do this in J2ME ? i had a look at the Ostermiller one but didnt understand it. Thanks Chris

Member Avatar for peter_budo
0
220
Member Avatar for TinyBelly

I've tried many time to solve this problem...but still not successful, I'm newbie..so anyone of guys can help me check this problem... [LIST] [*]Button "Back" is big as frame [*]Seems no TextField for NoOfTicket [/LIST] [CODE]import javax.swing.*; import java.awt.*; //import java.awt.event.*; public class ticketReservation extends JFrame { private JLabel jlbWelcome, …

Member Avatar for TinyBelly
0
173
Member Avatar for xanawa

i am trying to get the picture string from the database and when it is a null it gives me this error. [COLOR="Red"]Unable to cast object of type 'System.DBNull' to type 'System.String [/COLOR] [B]This is my code[/B][CODE]public List<Item> GetAllItemFromMenuID(List<int> ListOfItemIDs) { conn.Open(); List<Item> listOfItems = new List<Item>(); try { foreach …

Member Avatar for xanawa
0
83
Member Avatar for xanawa

I have a column in the datagrid view which i would like to make the value of the checkbox true. Do you no how to do so ?

Member Avatar for Mitja Bonca
0
116
Member Avatar for vedro-compota

Hi guys! is it possible to call parameterized constructor from derived class no-parameters constructor? To be clear - I want to override the most simple exception constructor (withpout parametrs) by other one - with string-parameter for class - [CODE]public class SetEception : ApplicationException[/CODE] thanks in advance)

Member Avatar for vedro-compota
0
106
Member Avatar for andy106

Hi I have the following array: [CODE] $links = array("Home", "About us", "Our Services"); foreach($links as &$link ){ $space = implode(" ", $links); echo $space ; break; } [/CODE] the above code displays Home About us Our Services, but now I want to use the same array for links so …

Member Avatar for diafol
0
132
Member Avatar for kasxxiazexxi

I am using HTML for the contact form fields and I wish to redirected the inputs to another webpage and have it displayed there. Is there a way to do it with PHP? Thank you!

Member Avatar for tomato.pgn
0
219
Member Avatar for judithSampathwa

hi there, i want to develop a login in asp.net C#. please can someone give me a guide to develop a login web page using MVC pattern i am using visual studio 2008 please can some show how to create a login using MVC thanks

Member Avatar for abelLazm
0
171
Member Avatar for Behseini

Hi I am trying to link selected item from one list box to another list box and make the second Item selected there as well. Lets say I have 2 list box populated by the city names in two different listbox in different orders and from different source, now I …

Member Avatar for Behseini
0
2K
Member Avatar for programing

i make twwo single linkedlist,, but i didn't know how i can merge those lists ;; [ICODE]#include <iostream.h> class linklist { private: struct node { int data; node *link; } *p; public: linklist(); void append( int num ); void appendd(int size); void display(); }; linklist::linklist() { p=NULL; } void linklist::append(int …

Member Avatar for arjunpk
0
244
Member Avatar for tmroper1331

I have the following XMl file: Code: <Vehicles> <Company name="Ford"> <Vehicletype Vtype="Suv"> <Price>12000</Price> </Vehicletype> </Company> <Company name="Ford"> <Vehicletype Vtype="Truck"> <Price>20000</Price> </Vehicletype> </Company> </Vehicles> And I am trying to transform it to: Code: <Vehicles> <Company name="Ford"> <Vehicletype Vtype="Suv"> <Price>12000</Price> </Vehicletype> <Vehicletype Vtype="Truck"> <Price>20000</Price> </Vehicletype> </Company> </Vehicles> Any help would be appreciated …

Member Avatar for xml_looser
0
139
Member Avatar for kirtee2209

hi..im doing a C# windows form application in visual studio 2008 and for the database im using SQL EXPRESS 2005..i need to create a crystal report. my question is when i start creating a new crystal report, using wizard, i get 1 window where i have to choose Data: i …

Member Avatar for abelLazm
0
920
Member Avatar for matthewskyle

Im trying to create a webform that is a representation of a paper questionnaire that has 14 questions with yes/no answers. If an answer is no, then you must provide information as to why in 3 separate textboxes and store the information only when a user clicks no. I also …

Member Avatar for Luc001
0
206
Member Avatar for ninjatalon

I have an assignment where I need to Sort the linked list according to Int Variable after the user has input the information. When I try using bubble sort I'm stuck because I don't know how go back to the beginning. If a user enters : 5 4 3 2 …

Member Avatar for ravenous
0
132
Member Avatar for narunaru

I'm trying to make the quicksort but it's not working at all. I made a helper function "swap" so I can call it back in the "quick"function. then used recursive method to do it till the array is sorted. The problem is.. IT'S CRASHING EVERYTIME I RUN IT... i think …

Member Avatar for ravenous
0
152
Member Avatar for mattloto

Hey guys, so I just started learning computational geometry, and I decided to make a class for a Point and a class for a Ray. This is my code: [CODE]#include <iostream> #include <string> using namespace std; class Point { public: double x, y; Point(double x, double y) { this->x = …

Member Avatar for mrnutty
0
147
Member Avatar for computerbear

I have never run into this problem before and I am frustrated. What am I missing? I am trying to initialize an array of five social security numbers. It does fine until the fifth one, then throws an error saying something about the indexer out of bounds. SSN has to …

Member Avatar for spdesigns
0
136
Member Avatar for computerbear

I have Googled and looked and looked. What is the best cleanest way to format a social security number to look like xxx-xx-xxxx? And as long as I am asking, how about how to ensure that a nine digit number is entered? Thank you!

Member Avatar for spdesigns
0
3K
Member Avatar for trume

Hi! I have to do 2 different codes for my task. I finally did the 1st and now I need to do the 2nd one too. But I don't know the way to do it differently. Do anyone know how to make this code more simple? It needs to have …

Member Avatar for Prashanth Jeyes
0
130
Member Avatar for kimmi_baby

Hi, what I want to do is create a menu with rollover buttons but each button also changes the background image of a div. I've managed to change the colour of the div but not add an image there. I've added my code so you can have a look. Case …

Member Avatar for kimmi_baby
0
181
Member Avatar for sergent

I am making a program which includes comaring 2 numbers (int's) but later I want to call another windows function and it takes in CHAR not int. I need a way to convert my ints to char. I looked up this on internet and non if it worked. Do you …

Member Avatar for mrnutty
0
210
Member Avatar for Nandomo

Any tutorials on how to use CFile or any other, to open a text file, get what's inside into memory, e.x Link List, and then put it back into text file when done? Please link me or guide me through this problem. Trying to get a Payroll system going.

Member Avatar for Nandomo
0
117
Member Avatar for ptara1

I'm creating a html form that allows the user to search for people in a database. I want the form to work with drop down selects and radio buttons. Currently I'm using an if { } elseif {} else if{} format to my script. However this causes a problem because …

Member Avatar for R0bb0b
0
691
Member Avatar for november_pooh

Hi all, I try to read file from file.. i put the file at drive D:\test.txt Please help me.. Thanks. Best Regards

Member Avatar for Jx_Man
0
356
Member Avatar for ptara1

I have a html form where a user can narrow down his or her's search. For example they want to find a person based off of a number of characteristics, say hair color, eye color, body type. These are selected by a drop down menu and there are additional radio …

Member Avatar for urtrivedi
0
355
Member Avatar for Howdydoody

Hey guys I have the following class code and i get an error in the addVertex method that says vertexList is not declared in scope but i dont know why. [CODE] #include <iostream> #include "DirectGraph.h" #include <string> #include <list> #include <vector> DirectGraph::DirectGraph(): vertexList(100) { } void DirectGraph::printShortestPath(int source) { } …

Member Avatar for Howdydoody
0
305
Member Avatar for studentoflife

I'm returning over 30 tables in a sql stored procedure which come back in a dataset. I store this in session state and hold for 20 mins before refreshing. My problem is, I need to be able to search the dataset for a particular table by name. At the moment …

Member Avatar for abelLazm
0
5K
Member Avatar for n3red

Hello, Can someone please explain to me because i do not understand the tutorials on pointers. anyways i have a struct: [CODE] struct driver { int id; char name[30]; int runs; } //I am reading a file which goes in order ID NAME RUNS as: 1 Super Man 5 //I …

Member Avatar for abhimanipal
0
160
Member Avatar for mitmehta22

hello sir. i am trying to create a program that will perform read/write operation on csv file. i am using structure. my structure and code is as follow: struct item { int item_no; char item_name[20]; float rate; }i1; main() { . . fprintf(fp,"%d,%-20s,%.2f\n",i1.item_no,i1.item_name,i1.rate); . . . fscanf(fp,"%d%*c %s%*c %f",&i1.item_no,i1.item_name,&i1.rate); printf("%d …

Member Avatar for abhimanipal
0
7K
Member Avatar for chudapati09

Edit: Never mind I figured it out. I used Math.pow(base, exponent) to figure it out I'm creating a calculator and I can figure out how to the power of two doubles. This is what I have: [CODE] public Power(Double base, Double exponent) { result = base ^ exponent; //result is …

0
70

The End.