64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for songweaver

Hey guys, I am brand spanking new to C# and am not only wondering about the syntax, but also the logic of how to do this, my professor just threw us to the wolves with this problem and we haven't gone over any of the syntax or anything, I am …

Member Avatar for apegram
2
2K
Member Avatar for kanuri1

hi i wants the code cor calulating multiplication operation,values taken from two text boxes and the resultant is stored in another text box.......... here iam using asp.net with vb.net..... please help me..........

Member Avatar for apegram
-2
72
Member Avatar for xxunknown321

My assignment: Create a class with a method that accept a charge account number as its argument. The method should determine whether the number is valid by comparing it to the following list of valid charge account numbers: 5658845 4520125 7895122 8777541 8451277 1302850 8080152 4562555 5552012 5050552 7825877 1250255 …

Member Avatar for xxunknown321
0
395
Member Avatar for panagos

I try to find a way to find the minimum of an array of numbers different type (int,float,double..) i have written this [CODE] #include <iostream> #include <vector> #include <iterator> using namespace std; template <class T> T min(vector<T> a()) { int i = 0; T min = a[0]; vector<int>::iterator it; for( …

Member Avatar for dusktreader
0
201
Member Avatar for asa88

here is my class file: [CODE] #ifndef BANGER_H #define BANGER_H class Banger { private: static int objectCount; char* driver; char* car; int hits; bool mobile; public: Banger(); Banger(char*,char*); Banger(const Banger &obj); void setDriver( char* ); void setCar( char* ); void setHits( int); void setMobile( bool); char *getDriver(); char *getCar(); int …

Member Avatar for asa88
0
118
Member Avatar for bimmr

Hi all, I got this code and try to add a +1 to the .$order_details_arr[0]['Order']['id']) | <a href="<?php echo $html->url('/admin/order_products/view_details/'.$order_details_arr[0]['Order']['id']); ?>">Next</a> Basically I want to be able to show a URL that will be the .$order_details_arr[0]['Order']['id']) result + 1 so the link will link to the next order id in …

Member Avatar for bimmr
0
96
Member Avatar for gunnarflax

Hi, I'm not good at all at JavaScript but I'm trying, so bear with me. What I want to do is that when I click on a <input type="text" /> tag the checkbox next to it should become checked. I've tried with the help of internet for a couple of …

Member Avatar for gunnarflax
0
257
Member Avatar for zapman2003

Hello, so the problem was to create a program that took input from command line to function as a rudimentary calculator: e.g 3 + 2, 5 * 4, 2/3 and so on. We were to take those arguments and pass them and a pointer to a function in to the …

Member Avatar for zapman2003
0
191
Member Avatar for benk1

Hi I have designed a simple login area on a website that creates a few session variables to use to query a database of products which works fine: [CODE]<?php session_start(); // dBase file include "dbConfig.php"; if (!$_POST['username'] || !$_POST['password']) { die("You need to provide a username and password.<p>Click <a href='main_login.html'>here</a> …

Member Avatar for benk1
0
114
Member Avatar for weaslem32

I need help with an assignment. I have to modify the program below to determine the number that was entered the most times in a row and display the output. I can not use files or arrays. I am having trouble with the logic and need some guidance. Thanks. [CODE]#include …

Member Avatar for dusktreader
0
76
Member Avatar for BobbieJean

Hello, I'm new here but I need a little help please. I've gotten this program to mostly work correctly except for what seems like one small detail. My program is supposed to ask the user to enter a file name, open it and display its contents 24 lines at a …

Member Avatar for WaltP
0
665
Member Avatar for StaffanB

I have an Access database (Databas1.mdb) with one table (Tabell1) containing one column only (SomeData). The column is Text and has the primary key assigned to it. Executing the code, i.e. clicking btnAdd gives a synrax error on the INSERT INTO-command when reaching the cmd.ExecuteNonQuery()-statement. [CODE] using System; using System.Collections.Generic; …

0
82
Member Avatar for fenerista

I have GradeBook.h that include class interface, GradeBook.cpp that include class implemantation, I want to make a lib file and use it with GradeBook.h on the other project. How can I do that ? I am using Windows 7, VS 2008

Member Avatar for fenerista
0
264
Member Avatar for Pleasant Day

Below is a Random Quote generator script I found on the net, its a great script, but I want the quote to be in bold, how is that done please? [code=html]<center> <font color="#71025F" size="2" face="Verdana,Arial"> <script language="JavaScript"> // ============================================== var Quotation=new Array() // do not change this! // Set up …

Member Avatar for yehawdude
0
155
Member Avatar for Austinjs0102

Basically i need to use JOptionPane and have the user enter a name followed by a . (dot) and a file extension. After they have done that the output should be the extension name without the dot. Ex Please enter a file with dot extention > new.html You choose html …

Member Avatar for mohammedsohaib
0
235
Member Avatar for SpyrosMet

Hello. I need some help with a project of mine and the thing is that I have the class organisms that has two sub-classes: animals and plants. Animals has two subclasses itself: Carnivores and Herbivores. I have succeded in including the plants header file or cornivores header file or herbivores …

Member Avatar for SpyrosMet
0
119
Member Avatar for deorcar

hi im working with opengl/sdl and im still new to it what im trying to do is to make a 2nd box or sprite that will follow the frist box ive made can anyone help me out here is some of the code i have [CODE]#include "sdl.h" #include "GL_Functions.h" #include …

Member Avatar for Skeen
0
128
Member Avatar for Mitja Bonca

How can I use a DataTable to save data into it? I have a listView with ticks, and when a tick is checked, I would like to put the data of the row into DataTable. In the row I have a "ProductName" and it`s "Price". I am doing this becuase …

Member Avatar for JuhaW
0
107
Member Avatar for atticusr5

Hey everyone, I have this assignment for my C++ class and I need to sort some data I have data in a file in this order: some 10 digit int -the account id some name -the account name some balance -the account balance basically I want to sort the data …

Member Avatar for atticusr5
0
108
Member Avatar for harshbavaliya

sorry but i am new to my sql, I have just a basic question.. and that is how can i create a database or table on the server! I have learned that we can create database or table by using my sql command line... but the main problem is our …

Member Avatar for harshbavaliya
0
100
Member Avatar for trips.dude

Hi All, I am new to the programming world. I was just writing this code to generate N prime numbers. User should input the value for N which is the total number of prime numbers to print out. I have written this code but it doesnt throw the desired output. …

Member Avatar for samvinogar
0
17K
Member Avatar for Shilpa Jain

Hi All, I am creating and saving the excel sheet at runtime(it is a copy of report generated in flexgrid). I need to add some of the column names in the excel sheet name while saving. e.g. Excel sheet should be saved as Report_Nid_Status_RBAC_Status_Today'sDate. Nid_Status and RBAC_Status are column names …

Member Avatar for pr12345
0
136
Member Avatar for yila

[code=c] /*the program gots a string, and supposed to copy to the destination string every letter only once, and after a letter a num - a counter how many times a letter appeared in the original string for example - for kuku it should return k2u2 - but it returns …

Member Avatar for yila
0
99
Member Avatar for Nfurman

Hello. I am constructing feedback form - SMTP - ADO - Captcha OK. Everything works fine to me. Except one important thing. After smtp and sql injection and Reset(), user can hit back in browser and after that resend message. that's not good. How to make the data in form …

Member Avatar for Nfurman
0
97
Member Avatar for punter999

hello seniors, i want to serialize a matrix of any dimension to be serialized and stored in the hard.i will be thankful if you guide me about this.how can i perform this work..? your response and help will appreciated Regards Punter

Member Avatar for punter999
0
148
Member Avatar for fumnimda

hi i want to get height of a div with[B] document.gtElementById('divid').offsetHeight [/B]in javascript. it works well in firefox but in IE it returns 0. what is the solution? i guess maybe the offsetHeight doesn't work in IE ,but [B]document.body.offsewtHeight[/B] return a number bigger than 0 ! altought it is different …

Member Avatar for arunss
0
78
Member Avatar for javaAddict

I had a problem at work which I solved, but that raised me another question. I wanted to export a page to excel, so I used this: [CODE] response.setContentType("application/vnd.ms-excel;charset=iso-8859-7"); [/CODE] It worked but while I was searching for an answer I found 3 possible content types for the excel: > …

Member Avatar for javaAddict
1
929
Member Avatar for dondajr

Hi everyone o/ How can I concatenate a no print char from the ASCII on my string? For example: I have the str1 = "Jhon" and str2 = "Lucas" I wanna concatenate the special char 01 ( SOH) between the str1 and str2. can anyone help me? I hope so..!! …

Member Avatar for dondajr
0
287
Member Avatar for java..

[CODE]public class array{ public static void main(String[] args){ int num[] = {80,20,47,82,25,13}; int l = num.length; int i,j; System.out.print("Given number : "); for (i = 0;i < l;i++ ){ System.out.print(" " + num[i]); } System.out.println("\n"); System.out.print("Accending order number : "); for (i = 0;i < l;i++ ){ //int temp=num[i]; for …

Member Avatar for staneja
0
190
Member Avatar for kanuri1

why this code is not working........ here iam givin two radio buttons. if first one is selected one text box is displayed. if second is selected one text box is displayed . here my coding is given below please correct it........ [CODE] If yes.Checked Then nicstaff = "Y" ElseIf no.Checked …

Member Avatar for mail2saion
-1
75
Member Avatar for Hanyouslayer

I just started assembly programming, x86, and I am kind of getting the hang of it, but I am still far from becoming great at it. It's interesting to see what I do in Java from a different view. Anyways, for the life of me, I can't figure out what …

Member Avatar for Hanyouslayer
0
173
Member Avatar for PinoyDev

Hi guys. i am having problem regarding of passing session data from one page to another. In start.php i have this session initialization & assignment. [code=php] session_start(); $_SESSION['course']=$_POST['course']; [/code] where the method of the form that this course menu has is set to POST and the action is set to …

Member Avatar for PinoyDev
0
137
Member Avatar for furqan219

Hi Dear All Is it possible to compare two PDF Image Files and if Name of Person is same in both documents only then we can save it to server and save the path to the Database. actually its about confirmation. But Problem is Both PDF are Images and name …

Member Avatar for littletom4u
0
146
Member Avatar for mahela007

How can I make a program wait for a few seconds before proceeding? An example of where this would come in handy is when the program allows the user 5 seconds before it proceeds with some default option... can I do this using python?

Member Avatar for mahela007
0
285
Member Avatar for Austinjs0102

Alright i am writing a program to read a sentence you write and judging by you punctuation it will tell you whether its a statement, question, exclamation or other. My problem is that it isnt running my If statement. am i just bind and missing something. [CODE]/* * To change …

Member Avatar for staneja
0
315
Member Avatar for losh177

hi, i'm having problems with the output. I do not get anything when I select 4 and enter a binary number. Here is my code, if anyone could point out what i'm doing worng, thanks. [CODE]import java.util.Scanner; public class Driver { public static void main(String [] arg) { LineWriter Lw …

Member Avatar for losh177
0
115
Member Avatar for AlexandraK

There might have been a question like this but I cannot find. I use option buttons in the form but in the report I want to see text instead of numbers. How shall I do it?

Member Avatar for AlexandraK
0
62
Member Avatar for 4789787

I want my cookie not to be reset when i close the browser. The way i have it right now it expires whenever i close the browser... I REALLY REALLY need a solution to this so please if someone could give me some time id REALLY appriciate it!! I dont …

Member Avatar for 4789787
0
250
Member Avatar for clutchkiller

Assuming that a year has 365 days, write a class named DayOfYear that takes an integer representing a day of the year and translates it to a string consisting of the month followed by day of the month. For example, Day 2 would be January 2 Day 32 would be …

Member Avatar for clutchkiller
0
308
Member Avatar for SpyrosMet

Hello. I'm a newbie and i was wondering if anyone can tell me how to create an array that contains objects and number 0 wherever there is no object. Thanks in advance

Member Avatar for kvprajapati
0
122
Member Avatar for atticusr5

Hello everyone, I am a C++ newbie and I am running into some linking errors. I am using Vi to compile and link my code. Here are the linking errors: assign6.o: In function `cAccountList::cAccountList()': assign6.cpp:(.text+0x1db): undefined reference to `cAccount::cAccount()' assign6.o: In function `cAccountList::cAccountList()': assign6.cpp:(.text+0x22b): undefined reference to `cAccount::cAccount()' assign6.o: In …

Member Avatar for Ancient Dragon
0
112
Member Avatar for calccrypto

how do i get this code to stop referring to its present value, so that the values already saved in the list are not changed to the present value? [CODE] Cm = 0x5A827999; Mm = 0x6ED9EBA1 Cr = 19; Mr = 17 Tm = [[0]*8]*24 Tr = [[0]*8]*24 for i …

Member Avatar for calccrypto
0
68
Member Avatar for Szabi Zsoldos

I would like that case 1: should display how many elements do i want, and that i can assign values to those elements. Mine because of the j++ goes infinite, so i can enter infinite values to infinite arrays. How could i do this? Cate elemente vrei sa adaugi: 3 …

Member Avatar for Szabi Zsoldos
0
561
Member Avatar for noey699

Every thing works perfectly only it will not check for a full house. Ive tried to figure out what the problem was by rewriting pair checking and three of a kind checking but the same result always. The function simply returns an integer corresponding to the hand stength given a …

Member Avatar for noey699
0
151
Member Avatar for lrh9

I've seen these in documentation, namely in the "importlib" documentation for Python 3.1, and I'm wondering what the difference is between a "universal newline" and a "standard newline", if any. I know it has to do with the byte sequence that is used to represent newlines, and I think universal …

Member Avatar for HiHe
0
174
Member Avatar for capiono

I am trying to switch between to form in different project currently I am going this: [CODE] this.Hide(); form2 f= new form2(); f.Show();[/CODE] the new instance of form2 throws a null exception error. But I think because form2 is not active. How do I work around this or is there …

Member Avatar for kdcorp87
0
94
Member Avatar for OldQBasicer

Is there a way to wrap the text on the list box items, i.e. go to the next line, when they're too long for the box. A few of my items are too long to fit, so they are truncated.

Member Avatar for OldQBasicer
0
167
Member Avatar for Ap0ca1ypse

Hello, I have created a program and i have managed to publish my application. I have set it up to be installed via CD but it does not attach the MSAccess DB. My question is how do I add the DB?

Member Avatar for Ap0ca1ypse
0
146
Member Avatar for SpyrosMet

the error by the compiler is [code=text]Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\Makefile.win" all g++.exe Untitled1.o plants.o -o "Project1.exe" -L"C:/Dev-Cpp/lib" Untitled1.o(.text+0x182):Untitled1.cpp: undefined reference to `Plants::Plants()' collect2: ld returned 1 exit status make.exe: *** [Project1.exe] Error 1 Execution terminated[/code] main code is [code]#include <iostream> using std::cout; using …

Member Avatar for SgtMe
0
132
Member Avatar for fardoonmuhafiz

If a class doesnt override toString() method and tries to print out the object like this: //some class [code] public class SomeClass1{ int x=4; } //another class class DemoOftoString { public static void main(String[] args) { SomeClass1 o=new SomeClass1(); System.out.println(o); } } [/code] output:SomeClass1@hex version of object's hash code ------------------------------------------ …

Member Avatar for fardoonmuhafiz
0
101

The End.