199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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"; … | |
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 … | |
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. | |
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 … | |
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... … | |
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 … | |
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 … | |
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 == … | |
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 … | |
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 … | |
plz sir help to ,how code to login form with database and chage to password with to similar to pc | |
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 … | |
[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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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): … | |
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 … | |
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 ? … | |
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 … | |
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 = … | |
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]; } … | |
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() … | |
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; … | |
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 … | |
[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 … | |
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 … | |
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 … | |
how can i use a string in a switch statement? | |
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] | |
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, … | |
/*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 … | |
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 ( … | |
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 … | |
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] … | |
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 … | |
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! | |
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. … | |
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 … | |
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> … | |
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 … | |
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 … | |
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; … | |
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? | |
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 … |
The End.