199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sosongetsu

I have been working on this program for about a week and i have been getting these errors that i just cant get by. The program is supposed to first accept user input for the type of symbol. Then its supposed to accept user input for a number. Finally it …

Member Avatar for sosongetsu
0
194
Member Avatar for bluesheeva

Hi, I created a new web service and a client that request for this web service by using SOAP message. Before consuming the web service, I created a class that implements SOAPHandler to intercept the soap message and authenticate the client. I would like to redirect the page to registration …

Member Avatar for Daisy_S
0
150
Member Avatar for HeartBalloon

Hi, I have this simple code: [CODE] const int kiCharSize=30; const int kiDate=7; struct Customer{ char caName[kiCharSize]; char caSurname[kiCharSize]; char caCity[kiCharSize]; char caPhone[kiCharSize]; char caDate[kiDate]; char cDay; enum eDay{M,A}; char caBrand[kiCharSize]; }; blablabla Customers::Customers(int x){ switch(x){ case 1: Cust.caBrand="HolyBrand"; Cust.caCity="Heaven"; Cust.caDate="110205"; Cust.caName="Jeesus"; Cust.caPhone="999333999"; Cust.caSurname="HolySpirit"; Cust.cDay='M'; break; case 2: Cust.caBrand="Brandutsu"; Cust.caCity="Japan"; …

Member Avatar for Nandomo
0
147
Member Avatar for Xytheron

Hey all! Long time reader, first time poster! So I'm trying to communicated between two processes on a UNIX machine using shared memory. I believe everything in this program is working fine except for how I'm attempting to call the memory to check. Basically the parent process writes to the …

Member Avatar for Xytheron
0
169
Member Avatar for denmarkstan

i find it difficult to add mssql dbs to asp.net website when i am using vs2008. here i intend working locally. please let someone help me.

Member Avatar for kvprajapati
0
143
Member Avatar for justinwarner

Hey, So I have an ArrayList that has some people in it. It's like: First Name, Last Name, and Position (At a job). So, I have it make the name complete. so like... Last name and then first name, no space... So, then, I need to sort the ArrayList by …

Member Avatar for VernonDozier
0
184
Member Avatar for manugm_1987

Hello everyone, Is there a way to limit the number of records to be inserted into a table using ado.net. For example i need to insert only 5 records into table, the table should not allow me to insert the 6th record. I am new .net can anyone pls help... …

Member Avatar for manugm_1987
0
117
Member Avatar for gr8fasushi

Hi everyone, novice here. I'm having some major issues trying to figure out what's going wrong with my code. The general problem is that I can't get the foreign key in one of my child tables to populate the primary key from the parent table. I have a parent table …

Member Avatar for gr8fasushi
0
233
Member Avatar for sweetkinjal

Hello everybody! I'm doing my project about ASP.NET but i don't know howto create Database. Example: UserName: xxxxxxx Password: xxxxxxx Login(<<<) i want to know how the code working. i want to know where my data will be stored. for example if i am creating login control then which fields …

Member Avatar for kvprajapati
0
313
Member Avatar for raygberg

Hello: I am trying to validate an ASP.NET radiobuttonlist using client-side javascript in a "Custom Validator" control. Here is my javascript validator: [CODE] function ValidatePrem(source, args) { var Array1 = document.getElementsByName('<%= rblPremModes.ClientID %>') var i; for (i = 0; i < 4; i++) { if (Array1[i].checked) { if (Array1[i].value == …

Member Avatar for kvprajapati
0
109
Member Avatar for 5ophie2012

For my assignment, I have to read a text file one character at a time and display it in the console. Here's my code for this: [CODE]class TEXT { static StreamReader reader; static void Main() { int ch, characters = 0; // file that is being read in and displayed …

Member Avatar for 5ophie2012
0
180
Member Avatar for Ender330

Hello, I am trying to fix this problem with my site. If any can please help me and let me know how I may fix the problem or find what is causing the problem. Thanks Warning: session_register() [function.session-register]: Warning: session_start() [function.session-start]: Cannot find save handler 'memcache' - session startup failed …

Member Avatar for Ender330
0
209
Member Avatar for Shailu kumrawat

plz sir help to ,how code to login form with database and chage to password with to similar to pc

Member Avatar for kvprajapati
0
100
Member Avatar for yofathp

I am calling this javascript function: var facing = "First"; [CODE] function switchit(list){ if (list != facing){ document.getElementById(facing).style.display="none"; }; var listElementStyle=document.getElementById(list).style; if (listElementStyle.display=="none"){ listElementStyle.display="block"; } else { listElementStyle.display="none"; } facing = list; } </script> [/CODE] inside a nested div so that when a hyperlink is clicked it will show one …

Member Avatar for yofathp
0
213
Member Avatar for JordanHam

[CODE] int main() { double t[]={15.70, 29.39, 41.14, 56.47, 75.61, 98.83 ,112.42, 125.61, 129.39, 133.45,138.94, 141.41, 143.67, 144.63, 144.95, 145.16, 146.25, 146.70, 147.26 , 148.15, 152.40}; int n = sizeof (t)/sizeof (t[0]); FindLN(t, n); return 0; } void FindLN(double t[], int n) { int index; double lnt[n]; for (index=0; index<n; …

Member Avatar for Nandomo
0
177
Member Avatar for Nandomo

I really don't know how to capture the information from the bitmap file when talking about the pixelArray, I know what I have to do it when I capture it to turn it negative, but each time I run my code it crashes when I run the code I think …

Member Avatar for Nandomo
0
171
Member Avatar for eline83

Hello guys. I'm stuck at my algorithm assignment. Here is the problem. We found that the solution to the mergesort recurrence f(n) = f(┏n/2┓) + f(└n/2┘) + n, f(1) = 0 satisfied f(n) = Θ(nlogn). Find an expression for the exact value of f(n). (Hint: generate the first 20 to …

Member Avatar for mike_2000_17
0
109
Member Avatar for becool007

Hey Im tryin to make a simple project which is pretty simple, but I cant seem to get it right :P Anyways, it goes like this. I have the main file which creates the window and stuff. And then I have an other file which populates the main file with …

Member Avatar for becool007
0
371
Member Avatar for nicole200718

I have to create an application that will display all the odd and even numbers between the input values of number 1 and number 2. Display the output in a lstOdd and lstEven listbox. I have no clue I need help please? [CODE] Option Strict On Option Explicit On Public …

Member Avatar for Ranx
0
124
Member Avatar for 5ophie2012

My program in a nutshell is reading a text file, outputting it to the console screen one character at a time, and then writing the characters as its read as hex pairs. I'm calling this method in a loop: [ICODE]WriteByte((char)ch, ref writer);[/ICODE](passing in the character, and a reference to the …

Member Avatar for 5ophie2012
0
261
Member Avatar for wondernaet

I was told that I could compact this code in 2 ways. I can't use loops. Can anyone see it? #include <iostream> #include <string> using namespace std; void daysOfChristmas (int days, char switcher, string b[12]){ (days > 0 && switcher == 'y') ? daysOfChristmas(days - 1, 'y', b): false; (days …

Member Avatar for sfuo
0
93
Member Avatar for Geemon

Hi I am new to the forums, and somewhat new to python. I'm trying to make a Text Based Adventure game. I don't have an error, but a bug. This is the code: [code]import descriptions inventory = [] gold = 0 acts = {"north":"hi"} def start(acts): print(descriptions.start) rm_a(acts) def rm_a(acts): …

Member Avatar for griswolf
0
209
Member Avatar for ksquared

The full error message is: missing ) after argument list [Break On This Error] change_content('imagediv', '<img src='images/painting_2.jpg'>'); Maybe I've been staring at this for too long, but I believe the parentheses are in the correct position. This code is contained in an include. Thank you. [code]<?php $paintingBack=$paintingNumber-1; $paintingNext=$paintingNumber+1; if ($paintingBack …

Member Avatar for ksquared
0
159
Member Avatar for becool007

Okay so I wont to output text onto my win32 program. I read somewhere that TextOut() is the function i need but it is not as good as DrawText(); Ive been trying to use DrawText() but i get stuck at the 4 parameter asking for a RECT. Any help ? …

Member Avatar for caut_baia
0
156
Member Avatar for AngelicOne

I'm making a visitor management application and I made three tables namely tblStudent, tblEmployee and tblVolunteer in SQL. I made a table according to the categories of a visitor. Do I still need to make a tblVisitor that would be the "general" table for the three tables made? I'm really …

Member Avatar for darkagn
0
85
Member Avatar for HeartBalloon

I don't know what it means: [CODE] class Tree{ friend ostream& operator<<(ostream&, const Tree&); private: TreeNode *Root; void insert(TreeNode*&,int); void PrintInOrder(TreeNode*); int Median(int[],int&); public: Tree(); Tree(int); void insa(int[]); void ins(int); void print(); }; ostream& operator<<(ostream& out, const Tree& tree){ out << tree.Root ->GiveValue(tree.Root); return out; } Tree::Tree (){ Root = …

Member Avatar for HeartBalloon
0
998
Member Avatar for alex55

Im inputting from a file to a 2d array and i dont know how to stop it once it gets to the end of the file the code i have for it so far is [CODE] for(int i=0; i<records; i++) { for(int j=0; j<month; j++) { inFile >> monthArray[i][j]; } …

Member Avatar for alex55
0
171
Member Avatar for HeartBalloon

I have to write a code to build an array like this: 1,6 1,0 2,3 3,4 5,6 4,5 7,6 1,2 9,7 Where the numbers are coordinates which have to be "separated" when taken in consideration Like: cell[2][2]---> x=5 y=6 I decided to make a char array, so that with atoi() …

Member Avatar for HeartBalloon
0
110
Member Avatar for EmbeddedHelp

Hi all, I am very new to Java Programming and am currently trying to write a program to return the last character of a string, entered by the user. So far I have this: [CODE] import java.util.Scanner; public class lastString { public static void main (String[] args) { String string1; …

Member Avatar for EmbeddedHelp
0
96
Member Avatar for johmolan

I have a problem copying rows in a table. My code is: [CODE]Public Sub Ordreupdate() Dim conn2 As OleDbConnection conn2 = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0; Data Source =|Datadirectory|\Kalkyle1.mdb") Dim dtbl As New DataTable Dim dt As New DataTable dtbl = Kalkyle1DataSet.Tables("Ordre") dt = dtbl.Clone Dim copyRows1 As DataRow Dim copyRows() As DataRow …

Member Avatar for johmolan
0
102
Member Avatar for wildplace

[url]http://i54.tinypic.com/4zymi0.jpg[/url] can someone please explain how does the sizeof() and the mask help me on converting from dec to binary? and also bit shift? this what i got now: i followed the book says to bit-wise & the mask and my input; but the mask is ending with 0s(0x80000). isnt …

Member Avatar for wildplace
0
78
Member Avatar for RolandTheNerd

Hello, I want to make a video game. I have no team, so I'm on my own for this. What are the main categories I need to know about making a video game? I know of C++, but what else? Also, are there any books any of you recomend for …

Member Avatar for gusano79
0
180
Member Avatar for johnt68

Hello - I'm not great at programming but I'm definitely worse at maths. I have been tyring to do this 'simple' salary calculator for so long that I am getting the numbers mixed up. I have had some of the calculations adding up correctly but not others and have now …

Member Avatar for johnt68
0
111
Member Avatar for Mayank23
Member Avatar for alexchen

What is the difference between using system("pause") and cin.get(pause)? [URL="http://www.daniweb.com/forums/post1446085.html#post1446085"]Oliver [/URL]told me never use system("pause"). [code] #include<string> #include<iostream> int main(){ using namespace std; string str = "My name is shridhar"; cout<<"What is your name"<<str; char pause = 0; cout << "Press enter to continue..."; cin.get(pause); } [/code]

Member Avatar for VernonDozier
0
349
Member Avatar for mad_pierrot

Hello everyone, I'm trying to create a PHP cURL script that does two main things. 1) Login to website (works) 2) Export table as CSV (doesn't work) To export the table as a CSV, two things need to be selected. Which table I want to export, in this case customers, …

0
138
Member Avatar for realproskater

/*I have to write code for the Game of Life. I wrote nearly all the code for it but for some reason when I run my second generation it just displays the same one as before. Here is my code any idea on why this is happening would be greatly …

Member Avatar for alexchen
0
6K
Member Avatar for rajeesh_rsn

Hi friends, In my php form I just blocked the sql injection by adding below into my processing page [ICODE]$comment=mysql_real_escape_string($_POST['comment']);[/ICODE] But I need to add "Richtext format in My Form ( Ie BOLD, ITALICS and UNDERLINE ). Now I just want to enable only these in my processing page ( …

Member Avatar for itslucky
0
87
Member Avatar for plasticfood

ok i got this assignment, and i'm a bit confused about what this method is supposed to do. i have to create a "setLab" method and accept a Grade object (which is already done and provided). this is what i got so far: [CODE]public class CourseGrades{ private Grade [] grades …

Member Avatar for plasticfood
0
116
Member Avatar for spetro3387

Hi everyone, I am working on a 3D viewer using libQGLViewer. In all of the examples provided, the main function looks something like this: [CODE] int main(int argc, char** argv){ QApplication application(argc, argv); Viewer viewer; #if QT_VERSION < 0x040000 application.setMainWidget(&viewer); #else viewer.setWindowTitle("pointCloud"); #endif viewer.show(); return(g_qApplication.exec()); //waits for Esc } [/CODE] …

Member Avatar for spetro3387
0
160
Member Avatar for triumphost

Hi Everyone, Im using visual studio 2010 windows form application. I created a windows form application to add and remove files to a directory on the click of the button1. The problem is that when I put it on a different computer, it can never find those files.. Its supposed …

Member Avatar for triumphost
0
189
Member Avatar for mamari

I'm getting an error: mysql_fetch_array(): supplied argument is not a valid MySQL result resource [CODE] function next_record() { $this->myrow = mysql_fetch_array($this->result); return $this->myrow; } [/CODE] Please help!

Member Avatar for mamari
0
229
Member Avatar for Harvarde

Hi folks! :) I'm here with a problem of Assembly 8086 (x86) (NASM). I´m trying calculate the sum of all numbers, which are odd, lowers than X (X = number defined by user) Already solved the problem in C # and C + +, but i need the Assembly Code. …

Member Avatar for davio1
0
961
Member Avatar for Neversleepin

Hi, i'm trying to use regex to delete lines which starts with a letter or a number. for example: if i have a text file with many lines and i want to delete every lines which starts with S and 2. What operator do i have to use? i tried …

Member Avatar for Neversleepin
0
2K
Member Avatar for CHOCHOCHO

i need to sort by last name [CODE]import java.util.Scanner; import java.util.ArrayList; import java.util.Scanner; public class TestStudent { public static void main(String[] args) { //Course Code String [] courseNumber = {"MTH151","MTH201","ITF215","ENG101","HIS210","BIO120"}; //Course Name String [] courseName = {"Statistics","Calculus I","Programming in Java",-"Composition","US History","Biology "}; //Credit int [] credit = {3,4,4,3,3,4}; ArrayList <Student> …

Member Avatar for jon.kiparsky
0
344
Member Avatar for canadiancoder

Hi Folks, This quandary should be fairly straight forward but I have yet to find an example that works. Essentially I have a struct, I create an array of these structs in C#, pass the array to C++, do some manipulation on the C++ side and return the results to …

Member Avatar for canadiancoder
0
1K
Member Avatar for medaugh

Hello, I have stared at this script for the last two days and am unable to find the cause of my error message. Any help would be greatly appreciated. The script is [CODE] #!/bin/sh for i in '/xxx/*' do if [ -f /xxx/$i ] then HOST='xxx.xxx.com' USER='xxxx' PASSWD='xxxx' FILE='$i' ftp …

Member Avatar for JeoSaurus
0
628
Member Avatar for dynamyt3

I have this code : [CODE]void __fastcall TForm1::DrawGrid1SelectCell(TObject *Sender, int ACol, int ARow, bool &CanSelect) { int temp,tempR=0, tempC=0, r=0, c=0; bool empty = false; CanSelect = false; //checking for empty cell - up if (ARow > 0){ if (MyArray [ARow-1][ACol]==11){ tempR = ARow-1; tempC = ACol; empty = true; …

Member Avatar for chrjs
0
156
Member Avatar for earwax

Hi i need to press non-english keys like "ü","ö" in java but i didnt managed to do this using robot class. So how can i press non-english characters?

Member Avatar for earwax
0
240
Member Avatar for Xessa

I want to connect to an FTP server and transfer a file with Java. I could not find anything about secure FTP.Can anybody help me about this? I also want to ask that if i can connect to an FTP server using SSL with command line. If i can connect …

Member Avatar for vglass
0
208

The End.