199,114 Archived Topics
Remove Filter ![]() | |
![]() | Hi Guys, Please i need someone who could hlp me write a simple ATM program for accepting PIN, Checking Balance and Withdrawing.. |
[CODE]class Node { public: string name; list<string> edges; };[/CODE] [CODE]list<Node> nodes;[/CODE] Hello, Can you help. I used this class that you gave but i've struggling to add anything. I tried nodes.name.push_back(str); but no use, and also i tried nodes::name.push_back(str); i also tried to compare sections by trying nodes[i].name == temp; … | |
what is wrong with my code? in inputs like "radar" or "tttt" should say its palindrome. [CODE]#include <iostream> using namespace std; bool testpalindrome(string,int,int); int main() { string wordX; bool result; cout<<"Enter string: "; getline(cin,wordX); result=testpalindrome(wordX,wordX.length()-1,0); result==true ? cout<<"\nthe string is palindrome!" : cout<<"\nthe string is NOT palindrome!\n"; } bool testpalindrome(string … | |
Hi All, I want to be able to have a form element greyed out unless other elements are satisfied. Ive got the following code so far, but i cant seem to get it to recognise that i have made the selection. Also im wondering how to make it only ungrey … | |
I want to write a simple c++ program that allows me to edit my database tables.Each table stands on its own(no table is related to another).The UI i want is simple.I want my tables to be shown as follows: [LIST=1] [*]Table-One [*]Table-Two [*]Table-Three [*]Table-Four [*]Table-Five [*]Table-Six [*]Table-Seven [*]Table-Eight [*]And-So-Forth [/LIST] … | |
I am using MsAccess DB and Vb.NET 2008. This is a code to check the Database for duplicate entries but m geting an Error. [B]" Fill: SelectCommand.Connection property has not been initialized."[/B] And this points to [B]LINE NO 14[/B]. What could be the cause..? thanks in adv [CODE] Dim con … | |
Hi guys, My C# programming is quite basic, and i would like to note, i have tried a few tutorials on reading XML and creating my program. i have done as much as i can understand so far, and so i am hoping someone could maybe explain to me how … | |
Hi, I'm trying to trim certain caracters from a string but it is not working. Here is my code: [CODE] string sMystring = "what you waiting for? "; char[] cInvalid = { '\', '-', '/', '*', '?', '<', '>', '|'}; sMystring = sMystring.Trim(cInvalid); [/CODE] I realized that if I remove … | |
Hi, I am trying to create a playlist using a multidimesional array. Where the user will select a song to hear from a radio button and when they do they will hear the song on the url that I have for that song. I am not sure if I am … ![]() | |
Newbie to C++ but i am a Java programmer. Trying to learn C++ now. Reading the C++ Primer by Stanley Lipmann. I don't understand this sentence in Chapter 3 about library types. He's talking about library type string and vector. "These library types are abstractions of more primitive types - … | |
I want to number the row and column . I get row number right around the left hand side ..I want the column number on the top..This is the code I have ..CAN PLLZZ HELP ME WID the column number plzz.. int[][] Board = new int[15][15]; for(int j=0;j<Board.length;j++) System.out.print(" "+j+" … | |
![]() | I want to limit uploading size of the user image. How can i do this? User should upload only jpg file and it would be less than 100kb. and is there any way i can convert that image into specific resolution? Thanks.... |
Hello Guyz This is my first post here. I am having problem in vb.net I am trying to get a webpage source using this code. [CODE] Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(Textbox1.Text) Dim response As System.Net.HttpWebResponse = request.GetResponse() Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream()) Dim sourcecode As String = … | |
Hello, I created an events calendar which allows the user to add events. The events adding allows for daily, weekly, monthly (and yearly) events creation. Well, everything works GREAT, except for this one little problem that I can't get my head around. when creating a repeating event that repeats on … | |
hello all, i'm new to python programming and i'm facing a problem and need ur help i finished my script and i'm trying to execute it on windows cmd the script takes a file as an argument , when i run the script with the argument it works very well … | |
Ok, I finally finish my application. It has a textfile in the resources folder of the solution that the application constantly accesses. My question is: I want to build an exe for my application that I can run in any computer. I want to apply an icon to this .exe … | |
[CODE] <html> <td id="item_menu" class="line" valign="top" width="100%"> <a class="nopd" target="mainly" href="http://myfruits/aboutfruits.html">About fruits</a> </td> <td class="line" id="item_menu" valign="top" width="100%"> <b>Common Fruits</b> <div class="tree tree-top" style="-moz-user-select: none;"><div class=" tree-item tree-lines-t" style="-moz-user-select: none;"><table class="tree-table" style="-moz-user-select: none;" cellpadding="0" cellspacing="0"><tbody style="-moz-user-select: none;"><tr style="-moz-user-select: none;"><td class="tgb icon customIcon" style="-moz-user-select: none;"></td><td class="label" style="-moz-user-select: none;"><a href="http://myfruits/apple.html" target="cmain" title="CONTENT: … | |
[code]#include <iostream> #include <WinSock2.h> #include <mysql.h> #include <string> #include <vector> #include "action.h" using namespace std; MYSQL *con; st_mysql_res* res = NULL; MYSQL_FIELD * field[200]; MYSQL_ROW myRow; CAction * m_pActionList[1000]; int LoadActions(); int main() { con = mysql_init(con); if(!mysql_real_connect(con,"127.0.0.1","test","test","account_zf",NULL,NULL,NULL)) { cout<<"Error connected"<<endl; system("pause"); exit(-1); return false; } LoadActions(); system("pause"); return 0; … | |
Hello friends, I installed junit4.8.1 in my windows xp, while testing I see following errors.Below are my class path and the location of Junit where I installed. I would really appreciate if some one can help me on this CLASSPATH =.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip;C:\junit4.8.1\junit4.8.1\junit4.8.1.jar JAVA_HOME = C:\Java\jdk1.5.0\bin Junit installation path C:\junit4.8.1\junit4.8.1\junit\tests when … | |
anyone can help me how to make coding like below. IF husband(L3) does not have a son (L1) AND do not have a daughter (P1) AND do not have the grandson of the son (L4) AND do not have a granddaughter from son (P4) THEN breakdown for men is 1 … ![]() | |
Hi! I'm newbie in asm, so i need your help. I need resident program "clock" that will show time in some corner on screen in resident mode and update time by 1Ch bios function. I already have simplae program clock: [CODE]OutStr macro str ;макрос виведення стрічки push dx mov ah,09h … | |
Greetings to all Forum users, Yesterday i tried to install a Haskell-module via cabal, in order to get aquainted with the installation of modules in Haskell. I had to install cabal first. My System: Windows 7 Haskell-Compiler Version: GHC 7.0.2 (Link [url]http://www.haskell.org/ghc/download[/url]) Cabal: [url]http://haskell.org/cabal/download.html[/url] I will describe the process step … | |
Given array: int[] dimension = { 1, 2, 3 }; That produces the output: 1 2 3 12 13 23 123 I'm new to array...i can't figure out the way on even how to start... any idea?...really appreaciate if someone could help...thanks! | |
I have a vb 6.0 project which uses access as a database. but i need only oracle as database. Will anybody pls tell me how to change it to oracle database. Does it requires the Complete change in the code of the project or only a little changes. i am … | |
how can i make table like this : For example: Fadi recommendattion ----- ---------------- 1212 you must at least gain :1kg if fadi>1212 you must at least gain 1 kg how to make a table like that in c++ and i want to put the result of if in recommendation … | |
![]() | I have a little problem with strcmp here,the following code basically opens a file and writes to it until I enter "\esc",at which point the program should stop....but the problem is,it does not,and I can't figure out what might be the prob.Thanks for your time(I am using turbo c++ 3.0 … ![]() |
I'm trying something like this [CODE]void receiver (char* x) { cout<<x<<endl; //prints "a" cout<<*x<<endl; //prints "a" cout<<&x<<endl; //prints address of x } int main() { char p = 'a'; cout<<p<<endl; //prints "a" cout<<&p<<endl; //prints "a" receiver(&p); } [/CODE] In the main function for both p and &p, it is printing … | |
Hi All I have just started using a subprocess.call()to call external commands. I want to call R from command line and that I can do it easily by subprocess.call('Rscript script.R') and it works fine. I want to pass the several arguments instead of using default arguments. I tried using Rscript … | |
I have an assignment in which I have to read in a series of words using the nextLine method from the Scanner class and then count the number of words using the StringTokenizer class. I know you all like for people to show some initiative by starting the program but … | |
[CODE] #include <iostream> #include <ctime> #include <cstdlib> #include <string> #include <algorithm> using namespace std; //Types and Arrays string word[16] = {"GOLDFISH", "COMPUTER", "ANONYMOUS", "JACKET", "SHARP", "SERVICE", "EFFORT", "CHARACTER", "CHANGE", "WITHOUT", "PRODUCT", "UNFOLDS", "MUSIC", "MOMENT", "LIFETIME", "PROVIDE"}; char guess[50]; static const char Y= 'Y'; static const char N= 'N'; char ans; … | |
how you number the 2d array??i created a 2d array now i want to number the rouws and colums...here is the code i have now [CODE]int[][] Board = new int[15][15]; for (int r = 0; r < Board.length; r++) { for (int c = 0; c < Board.length; c++) { … | |
My professor taught us the bare basics and gives us questions on our homework that we essentially have to teach ourselves have to do. Any help would be appreciated! (use this for MIPS reference : [url]http://www.mrc.uidaho.edu/mrc/people...al/MIPSir.html[/url]) Here goes: 1. Write the binary representation of the smallest integer number that can … | |
Hello, I'm trying to write a simple Clicker program to automate room-joining on GArena: 2 clicks to attempt to join, 1 attempt per 5 seconds. That means I have to simulate 2 x mouseButton1 clicks every 5 seconds - easy. The problem with my clicker, as well as with other … | |
Hello. I want to make a game card that is played by two players who are on different PC's and playing via internet. I am new at network programing(I guess that is called socket programing), so I don't really know from where to start, I have done some digging on … ![]() | |
Hi All, I had a question in my mind from last couple of days regarding passing data through url, and accessing the same in the page. I want to pass the data as query string, and also access the same in the page, but I don't want the end user … | |
cacn you help me with this one import java.awt.Graphics; import java.awt.Color; import javax.swing.JApplet; public class Smiley extends JApplet { public void paint (Graphics g) { super.paint(g); g.setColor(new Color (60,10,0)); //outline pants g.drawRect(393,275,199,80); g.drawRect(394,276,199,80); g.setColor(new Color (145,90,0)); //brown (pants) g.drawRect(395,300,197,54); g.fillRect(395,300,197,54); g.setColor(new Color (255,255,255)); g.fillRect(395,275,197,50); //fill white (pants) g.setColor(new Color (32,5,0)); … | |
[CODE] ListView listView1 = new ListView(); DataTable dataTable = new DataTable(); MoneyReceiptGateway moneyReceiptGateway = new MoneyReceiptGateway(); dataTable = moneyReceiptGateway.SelectDataForListView(narrationTextBox.Text); string[] str = new string[dataTable.Columns.Count]; foreach (DataRow rr in dataTable.Rows) { for (int coll = 0; coll <= dataTable.Columns.Count; coll++) { str[coll] = rr[coll].ToString(); } ListViewDataItem li; li = new ListViewDataItem(str); … | |
Hi guys, I'm supposed to make a program that calculates how many months it would take to pay off your credit card balance with a 14% yearly interest rate. I've written out what I believe to be it but I end up getting this. [url]http://omg.wthax.org/error_2.png[/url] The program doesn't seem to … | |
Hi, I'm trying to make a program that will write to a file and tell it that the next time that the program is run to not do the first part of the program. [CODE] fstream install; //this is what all of the tutorials say to do. install.open(ready.txt); //this is … | |
Hi Guys, I am trying to implement the masonry plugin on my blog [url]www.Iamvishal.com[/url] but I can't seem to get it working. Below is my code. Any clues as to what I am doing wrong ? [CODE] $(window).load(function () { $('#content').masonry({columnWidth: 185}); }); [/CODE] Cheers, vishal | |
I'm posting here because I'm not too sure Google will take the entire search criteria of what I'm trying to explain. I have a Main form, called Main.vb, that is a Parent Form. I have another form called Notes.vb. Inside Main.vb I have a toolstrip with a button on it … | |
Hello... Like the title already says, i have a Panel with a TextField and when a text is entered, i want it to appear on a JLabel that is located on another Panel. Can someone give me the Syntax? Or is it more complicated to do? I do not use … | |
I'm really lost on this topic. I'm trying to study for an exam. 1)When the symbol '&' is in front of a variable, it is referring to the address right? How is it different from a reference parameter? I keep getting them mixed up. 2)By dereferencing it, it means that … | |
There is a card game I was trying to make for the past two weeks in java. Can be played here => [url]http://www.angelfire...ardtrick02.html[/url] Basically the player picks a card and the program will ask which column contains their card. It than shuffles the cards back together. After doing that three … | |
I have a combobox that is consist of 'Male' and 'Female' selection. I have a datagridview that when double click, will go to another form which is named 'Edit Form'. I need to be ale to change whether the value is a male or female, but there is a problem. … | |
I've been messing arround with this for the past little while and I can't seem to figure out the best way to to about doing this. Essentially, I'm trying to create a three part statement. The first will check is a session variable isset & the user has a rolecd … | |
here are some questions that i have to improve my code readability since i study alone and my code starts to be more big and more chaotic i have some questions that maybe will sound silly to more but i have to ask someone. 1- its better to declare global … | |
I have not worked with the debugger at all and I have a assignment to debug a program. I don't want just the answer I need help using the debugger. Correct the Logical errors in the code so that the output of the program appears as such: * ** *** … | |
Hey guys, I was wondering how I could make games with Java3D. I've used Java3D but only in static programs. How could I 'repaint' with Java3D (Make games and such)? Also, where could I learn more of Java3D? I've only learn't what I know so far from a few tutorials … |
The End.