199,113 Archived Topics
Remove Filter ![]() | |
I am writing a calendar in C. I'm still very new to the language. I think i wrote most of the functions/algorithms correctly (it would be nice if you guys could check for any errors too). Now I'm having a tough time printing the calendar out In a correct format. … | |
Hi, I have done code for two dorpdownlist by using Ajax. It is working properly on my machine but whenever copy to other machine that Ajax code not working, so please give me solution. Thanks in advance | |
Hello Everyone, I hava design just a register page and a login page ,a user can register then login..during registration i used the password() for password field insert value to database. During login I used as password('_POST[pass]') and comparing with the inserted value but its not working .... I just … | |
Hi frnds.... i am trying to do search like google.... my files r here......but it displays nothing....i mean no output and no error...plz check the code what the error? eg: in a text box type "a" then "a" related words r displayed... [B][U]google.php[/U][/B]p [ICODE]<?php $file=fopen("http://www.google.com/complete/search?h1=en&js=true&qu=" . $_GET["qu"],"r"); while(!feof($file)){ $d=fgets($file); echo … | |
Hi folks, I'm quite new to C++ and I'm getting an exception I don't understand. I have a class named 'Rational' that performs calculations on fractions. It has a default constructor as follows... [CODE] //In Rational.h public: Rational(int num = 1, int denom = 2); //Default constructor void addition(Rational); void … | |
I hate when I have to acces a class data member like myclass.get_x(); I would like to simply write myclass.x; But I also want to stay with private x, I just want to read like myclass.x, but dont want overwrite it. It is somehow possible? | |
i already did not turn in this lab but it is killing me. tell me why I am getting so many errors.... //This is the most confusing program in the world. I was not trained //correctly for this. But as long as the proffesor gives me the code //i can … | |
Ive been playing around with this all day, I think my path is wrong, I keep getting [Parse error: parse error, unexpected ';' in /class/ct386b/##/www/cgi-bin/french5.php on line 73] Here are how my files are set up and I am linking to my college unix system thru my signon ~ct386## <secret> … | |
I am trying to make a bidding sniper. all functions work so far (bidding, timing, etc), yet I still have to login manually. Would anyone know how I could open a website and then login automaticly from python. Thanks, python01 | |
I'm trying to make a program that tells you how much of each type of bill or coin you will receive as change after you enter the total amount of goods you are buying and the amount you are paying with. But my program takes in the total amount of … | |
I am finally learning about fstream but Im stomped with this problem that I have. I have a current file that I am opening. Each line of said file looks like this: D40001~10997~811~DANIWEB~555-555-5555~7.70~I~2111 There are around 5000 lines with different DXXXXX numbers. I want the user to input a dnumber … | |
ifstream mystream(file_name); ofstream outputstream(filename, ios::out); do { mystream.getline(line, 100); mystream >> country_name >> happiness_value; total_happiness = total_happiness + happiness_value; count++; outputstream << country_name << " \t \t " << happiness_value << endl; } while (!mystream.eof()); the file ifstream is reading from is a .dat file, in this format: first 1 … | |
ok i have to write a program that takes six test scores as input and stores them in an array. It drops the lowest score, and computes the average of the remaining five scores. It outputs the average score rounded to one decimal point. This is what I have and … | |
Hi all Firstly may i say i have found your forums to be of great help, but I have a task and not entirely sure if its possible I have a shoutcast radio that i have displaying on my shoutbox every 3.5 mins (auto refresh) but someone said what i … | |
Hi everyone. Once again, i'm here. What I have is two structures: [CODE]Public Structure poblacion Public ind() As individuo End Structure Public Structure individuo Public pos as List(Of Point) Public fx As Double End Structure[/CODE] There's one point where I need to randomize the order of the numbers of the … | |
Hey all, I am a relatively new programmer and am trying to use Boost regex for my program. My code is: [CODE]#include <boost\boost\regex.hpp> using namespace std; double scrape( string base, string match ) { boost::regex re(match); boost::smatch matches; string::const_iterator start; start = base.begin(); while( boost::regex_search( start, base.end(), matches, re ) … | |
Write a function that accepts an array of integers and determines the product of each two integers. Although you can create a fixed size array in main, your function should work no matter what size of array is passed to the function. MY code: [CODE]#include <iostream> using namespace std; void … | |
Hi, I have a WPF program written in C# that updates an Xml file from a textbox when a submit button is clicked. The code works as I can tell that the xml file is updated after the execution of the program, however I would like the update in real … | |
Good day all: I have a textarea box in my form which receives (from a url) and display variable. The problem is that it does not translate the <br/>. instead of creating a newline where there is <br/>, it simply prints <br/>. here is an example of the output. br/>On … | |
I am wondering how to make the red aquare jump around in the script. This is a menu. I would like the red squareto jump around every 1 or 2 seconds (doesn't have to be exact). Right now I have it when someone moves the mouse but I woule like … | |
Hello, i needed suggestions regarding the book "Art of Computer Programming" by Donald E Knuth. im an undergraduate Computer Science student. i would like to know more about the book before i buy it. So, any reviews? Reviews as to how the Math in it is(i heard there are a … | |
if any know about data structor I wana some help....? | |
I have a program that lets me enter participants in a race, their startingnumber, their start time and end time. The program then tell me who won the race and the winning time. This is my program: [CODE] #include <iostream> using namespace std; int main () { int start_Nr, start_Hour, … | |
I use: [ICODE]Integer.toBinaryString(number);[/ICODE] to get binary string. I want to get the sum of two binary number. how do i do? example: 0010 + 0011 = 0101! Thanks! smb help me please! | |
Okay so I have a program that takes in up to 25 students and information for each including 5 test scores. All of that is done and working fine. What I am trying to do now is calculate the averages of each test 1-5 and then the total average of … | |
Im making a simple program to for a bank (its a course exercise), but i want to know how do i save for example a costumer data like Strings...?... any suggestions, please and thank you.. | |
Hello, I'm just learning C++ and I'm getting an error with a program that is driving me nuts, and I'm not exactly sure how to resolve it. Can anyone help me? [QUOTE] AreaCalculator.obj : error LNK2019: unresolved external symbol "double __cdecl AreaOfTriangle(double,double)" (?AreaOfTriangle@@YANNN@Z) referenced in function _main \\.psf\Home\Documents\Visual Studio 2008\Projects\AreaCalculator\Debug\AreaCalculator.exe … | |
I have several textboxes that are in tabs and would like them all to auto-scroll when text is added [B]without[/B] bringing them to focus. Is this possible? | |
I was wondering if anyone has taking a dynamic pdf form, and populated from a php form or from mysql information? I have been looking into Fpdf, and other methods, but they don't seem to do what I'm looking for. The reason for this, is I need to output a … | |
I need a small tool to print a record layout with a row of data to proof the layout and data match. To that end, I am using a CSV to pick up a record, and a list to store the field names. What I want to do is to … | |
I've managed to put together some code to retrieve data from a sql file. I plan to connect to a sql server that are operated by a database program, that update the registry every 10 sec. Before I try to connect my program to the sql database, I need to … | |
Thanks for taking the time to read this. Let me start by saying I'm a php newb so be gentle! I have a form that is used to insert data into my database to display info and images in a portfolio section on my site. In the form, the input … | |
I wrote a little program a while back that changes windows a lot and I was wondering if there is a way to have one window open at the same spot the last window closed? | |
I've got to write a program where it replaces a letter with a dash and then asks the user to enter the letter that should be their. I've written a program and It works the first time around and then prints out two lines. Where have I gone wrong ?? … | |
I have a struct as follows: [CODE]struct Database { int accountNum; double balance; int months; };[/CODE] I want to make a vector of this struct, because I want the size to vary. How do I do that? Thanks in advance | |
I have a program that requires to reverse the name which is a string, here's the code... it's suppose to work, no errors found.... but "Run time error" [CODE] int i = fullName.length(); while (i>=0) { cout<<"Your reversed full Name is: "; cout<<fullName.substr(i-1, 1); i--; } [/CODE] thanks | |
Hi, I have some code which creates a PDF based on the data posted to the entry point page (print.aspx). When I run a page with multiple frames in, each accessing the main print.aspx and posting data etc. but for some reason each frame loads one at a time, rather … | |
Hi everybody, I need some help doing a rfc 2617 basic HTTP authentication to call a web service in C#. I've been trying in many ways and I'm really stuck. Here's an example of my current code [CODE] string url = "http://somedomain.com/somegenericservice"; WebRequest myReq = WebRequest.Create(url); string username="****"; string password="****"; … | |
It's probably obvious that I'm more familiar with Python than C++... I was wondering if there's a convenient way of storing objects / miscellaneous STL structures on the hard drive for later importing and use in C++ in the same manner that Python does with the Pickle module. I know … | |
For my Computer Science class, we are writing several different methods to reverse a singly linked list in Java. I cannot figure out the last way, which uses three helper methods, pointerToLast(Node n) which returns the tail node, nextToLast(Node n) which returns the second to last, and append(Node a, Node … | |
have a single look on code based on jquery,the code is running fine but the problem is when ever i click on any radio button to create div it created div but overlap each other ,i added blank row or <BR> but useless any help [CODE]<body> <form id="form1" runat="server"> <div> … | |
Hello Friends I want to pass a Double Dimension Array to a Function using Pointers... Right Now i am doing this.. [CODE] # include <stdio.h> void show(int *,int,int); int main() { int a[3][3]={1,2,3, 4,5,6, 7,8,9}; show(a[0],3,3); return(0); } void show(int *p,int row,int col) { int i,j; printf("\n\n\n"); for(i=0;i<row;i++) { for(j=0;j<col;j++) … | |
Hello) Please tell me-how to set up automatic numbering of lines in Visual C# Express Edition (or maybe this feature is not there?) Thank you in advance) | |
Hello, I am new to Access and VB, but I have used C# and C++. I am trying to update a whole bunch of records in a table, only one field. For example [CODE] [Employees] [ EmpCode ] [ FirstN ] [ LastN ] [ 019871 ] [ John ] … | |
Hello! Here's the problem: After making some GUI application (NetBeans) in output directory (containing generated .jar file) also appeared a directory 'lib' with additional .jar. This jar is some extra library with classes, which path is added in manifest ("Class-Path: lib/bla.jar"). So I've used to pack my applications always intto … | |
Hello, all professionals I aim to create three scripts (one in Host, the other two in 2 different Guests) realizing server vs multi-clients communications. There is a file in my Host system, what I propose to do is transmitting lines in that file to different Guests. Following is the raw … | |
Hi all!!! I have some problems with List comprehension in Python. How can I obtain these two nested list using comprehension? list1 = [[1,2,3],[4,5,6],[7,8,9]] list2 = [[1,0,0],[0,1,0],[0,0,1]] (identity matrix) where list1 and list2 are square matrix of 'n' size thank you in advance!!! | |
Hi guys, I'm trying to learn the principles of artificial intelligence. I just finished coding up a belief net and a corresponding EM algorithm that learns the CPTs for latent nodes using training data (if you're unfamiliar with the lingo, you're probably going :eek: right now). While the program (written … | |
Dear Friends, The problem I am facing a that how to Hide and Unhide Div tags in IE7 and IE8? My code is [CODE]<div> <a href='javascript:void(0)' onclick='DisplayAddComment();'> <img src="../images/AddComment.jpg" border="0"/> </a> </div>[/CODE] and javaScript Function is [CODE]var m=1; function DisplayAddComment() { if(m==1) { document.getElementById("dvAddComments").style.visibility="visible"; document.getElementById("dvAddComments").style.display="table"; m=0; } else { document.getElementById("dvAddComments").style.visibility="hidden"; … | |
Can any one help me to convert this delphi code to C#. class function TShrinkConfig.MyVersion: WORD; var ini: TIniFile; begin ini := TIniFile.Create(gsIniFile); Result := ini.ReadInteger( SHRINK_INI_SETUP_SECTION, SHRINK_INI_MYVERSION, SHRINK_INI_VERSION_1); ini.Free; end; if (not ini.ValueExists(SHRINK_INI_VERSIONS_SECTION, IntToStr(version))) then .... I searched online that TiniFile corresponds to FileStream in C#. But i am … |
The End.