64,152 Solved Topics
Remove Filter ![]() | |
Hello! I have a little problem. I don't understand how to solve this issue: Object reference not set to an instance of an object. Thank you! This is my code: [code=c#] BindingList<ComboBox> cmbPlayers = new BindingList<ComboBox>(); Club[] league = new Club[10]; // league contains class Club // class Club contains … | |
Here is a complete and working code that 1. Adds the numbers(input) to get a sum(output) 2. Sorts the numbers in a descending order Can you post any suggestions on how I can improve my code :) main.c [CODE]#include <stdio.h> #include "header.h" main (){ int sum, x, y, z,choices; input(&x, … | |
hey guys, I'm writing a program and trying to output data to a file and I'm getting this error: 1>------ Build started: Project: GenericProgram, Configuration: Debug Win32 ------ 1> Source1.cpp 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\fstream(1116): error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access private member declared in class 'std::basic_ios<_Elem,_Traits>' 1> with … | |
Question: Write a single statement that chooses a random number from each of the following sets: a) 2,4,6,8,10 b) 3,5,7,9,11 c) 6,10,14,18,22 I wrote the following statement for the set (a): [CODE](1 + (rand() % 5)) * 2;[/CODE] but I am unable to write ones for sets (b) and (c). … | |
Hey! I'm currently at the end of a task im working on, which consist of a class named CD, and in the main program i got a method which register a CD. And i want the created class to be named CD1, CD2 etc. [CODE] public static int cdNumber = … | |
Hey everyone! :) I have a line of code that I am not sure about and I get an error message that says, "Fatal error: Call to undefined function mysql_results() in C:\Program Files (x86)\EasyPHP-5.3.8.1\www\test5\func\blog.php on line 33" when the code is from here in this script: blog.php [CODE]<?php function add_post($title, … | |
Here is my problem: 1) I have a tree which I want to act upon some branches indepedantly and simultaneously by different threads 2) The program is structured so that the processing of each branch is isolated after the main "manager" thread delegates the work to different thread: memory of … ![]() | |
A table contains results of a match. Each match is a series of 7-9 games (different leagues share same match schedule table and play different best of "x" matches), such as: id teamA game1 game2 . . . game9 Need to calculate average based on game total and number of … | |
I have a drop down menu on a page where the user can select between, All, House, Unit and Rural which send the selection to a stored procedure which access' the database and returns the information with the selection eg. House from the category column. It all works great when … | |
Hello everyone and thanks in advance for helping me. I'm a 1st year java student in my first semester of college. Its comming towards the end of the semester and finals are starting up.. well my problem is that my java teacher decided to give us 2 projects to work … | |
I'm trying to solve this exercise. Write a program that print out the following, user will input the top number: ***** **** *** ** * i made a program similary to this , but user inputs the bottom number ,the output is like this: * ** *** **** ***** here … | |
hope anyone can help something with this code, well this code for the exercise 3.4 in Accelerated C++ book... where 3-4. Write a program to report the length of the longest and shortest string in its input. I thought my code was gonna going good, but it seems that it … | |
I am having problems with a simple file I am trying to create. The idea of the file is to use a header to read something from the file and then call this in the main.cpp This is my Main.cpp file: [code] #include <iostream> #include <string> #include "Menu_Screen.h" using namespace … | |
This seems like it should be a simple query but I think I have my eyes in backwards... Give me all the users living in Jefferson, Bingham, Butte, Bonneville and Madison counties in the state of Idaho. [code]SELECT * FROM table WHERE county='Jefferson' OR county='Bingham' OR county='Butte' OR county='Bonneville' OR … | |
I've been asked to write a program that computes the nth Fibonacci number where n is a value input by the user. For example, if n = 6, then the result is 8. This is what I have so far: def main(): print "This program will compute nth Fibonacci" print … | |
I need help with a programing assignment for my CS 2 class, the task is to check rather a user inputted string is a palindrome meaning it is the same forwards as it is backwards. I have most of the program working, I input a string then copy it and … | |
I am having a problem with my program not reading the OR statements right. [CODE] do { blah blah blah }while(y!=1||y!=2); [/CODE] I have also used it as this format, ((y!=1)||(y!=2)) The program is marking it as true and keeping me stuck the loop even though y is == 1 … | |
Hi,I was wondering how to read and write strings in python. I have this code where I'm creating a path, but its a string, and now I want to write to this string. But keep getting this error message [I]AttributeError: 'str' object has no attribute 'write'[/I] I was thinking about … | |
Hey, I'm new to Python programming and I've been making a simple rock paper scissors program for practice. I've managed to get it working; it asks the player to enter 'a' for rock, 'b' for scissors or 'c' for paper. If the player entered a, b or c, a number … | |
I have an iframe that loads a page inside it.. when a link is clicked on the page in the iframe, resize the body of the parent aka the document that has the iframe's body.. Example: [CODE]Body <------------------------ Iframe | Page | Link... Upon Click, resize --[/CODE] How do I … | |
I'm trying to create a program that'll read a list from an external file, and generate an arrayList with the object representation of the list. Basically, the list contains names, and prices, which will be read in, and used to create instances of my "book" class which are supposed to … | |
Hi All, I am currently creating a merging program which is processing multiple text files with header. I've manage to merge the text files but I'm stucked with the header that needs computation. path of input files and header explanation: [URL="http://uppit.com/a0nv880qb5uu/text_files_and_explanations.zip"]Input Files[/URL] After merging, I need to put back the … | |
Hi, in the below given program the answer is 1. agpur 2. jabalpur 3. jabalpur I understood the processing for the first two printf statements but for the last printf statement I could not understand the processing. Could anyone please explain. Thanks in advance :) [code=c]#include<stdio.h> #include<conio.h> void main() { … | |
Hello, I have implemented my php code but it says "Parse error: syntax error, unexpected $end" last line. I can't see anything wrong with my syntax. [ICODE] <?php // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // get value of id that … | |
[url]http://test.gubbit.com/newgubbit/bfsearch.php?q=lenovo&submit=&R1=V7[/url] I am not sure what the problem is here.. but when I run this page on the internet explorer, it shows a completely white blank page. After looking at the source code on IE, it is exactly the same as you would see on chrome, safari or mozilla. Any … ![]() | |
Here is a program I found [URL="http://www.cs.bgu.ac.il/~omri/Humor/ObfsC.html"]here[/URL] [code] #include <stdio.h> main(t,_,a)char *a;{return!0<t?t<3?main(-79,-13,a+main(-87,1-_, main(-86,0,a+1)+a)):1,t<_?main(t+1,_,a):3,main(-94,-27+t,a)&&t==2?_<13? main(2,_+1,"%s %d %d\n"):9:16:t<0?t<-72?main(_,t, "@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l+,/n{n+,/+#n+,/#\ ;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l \ q#'+d'K#!/+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# \ ){nl]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#n'wk nw' \ iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \ ;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;#'rdq#w! nr'/ ') }+}{rl#'{n' ')# \ }'+}##(!!/") :t<-50?_==*a?putchar(31[a]):main(-65,_,a+1):main((*a=='/')+t,_,a+1) :0<t?main(2,2,"%s"):*a=='/'||main(0,main(-61,*a, "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1);} [/code] Since I … | |
I'm writing a program in C++ to convert a user-submitted string into a postfix expression and then evaluate it. The function where the string is tokenized into operands, operators and such looks like this: [CODE] void Calc::tokenize(char * s){ cout << s << endl; int i = 0; char * … | |
Hi all! I am writting beacause I desperately want your help.. I want to connect 3 comboboxes. I have a table which contains Streetnames, Post Codes and Municipalities. I want to choose the Streetname from the first combobox something that I have done. The second Combobox I want to display … | |
Hi Guys, Im trying to update a datagrid and a text box value in access database. both shld be saved in the same row simultaneously.,unfortunately its not happening. they were gettign saved in a different rows. PLEASE help. [CODE] conn.Open() sqlQRY = "Insert Into tblPlot(SurveyNo)" sqlQRY = sqlQRY & "Values" … | |
Hello everyone. I've a bit of trouble with my code. I'm suppose to create a program that will allow the user to input as many integers as they desire. When the user is done, the program will calculate the alternating sum. The program will then display the equation along with … | |
Hi. I am developing an apllication(btw try) which requires to use methods for deleting,selecting the database rows. If you write a code for example for delete some rows from the table how would you do it ? [code]delete($table_name,$where,$limit,$asc...)[/code] how many argument do you usually use ? Can the task that … ![]() | |
data does not come at phpmysqladmin. and also shows this warning Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\com\com.php on line 75 Thank you for submission [CODE]<?php if ( isset($_POST['username'])) { $ret = add_to_database(); if (!$ret) { print "Error: Database error"; } else { print "Thank … | |
I have achieve to populate my combobox from sql and from this combobox to populate a textbox but now I have to do something more complicated.I would like to populate a combobox from an other combobox choice. And what i mean is that I have a table with Streenames and … | |
Hi Guys, I need some urgent help.. My requirement is to create dynamic text boxes during run time. it shld b like this: when i click a button a text box shld b created and upon entering a value it shld be saved in access database. appreciare ur help and … | |
I want to perform the submit function before going to my summary page but it's not working...I even tried returning false. but still, it didn't work.. [CODE] function submit(){ nodes = document.getElementsByClassName('check_boxes'); len = nodes.length; for (i = 0; i < len; i++) { nodes[i].removeAttribute("disabled"); } return true; }[/CODE] [CODE] … | |
Hello, I am a New leaner, the Book, am using give an Assignment, and I have try to work it out. In the process, I Run to little Issue, It is all about Replacing Old- Word with New-Word.... But if the Old word is empty it will bring an error … | |
I've been looking around the internet and I haven't really found any solution to my problem. Is there a way to perform a function when a user closes the form either by pressing the X button in the top right hand corner? I am using a database that saves what … | |
Hi, What code would i need to use for my php form, so when my record is saved using my save button on my form to my mysql database, it displays a message to say "Record Saved". | |
I have been working on this assignment, and it says i have to sort a 2d record array based on the type of record so if its an id its an int and if a name its a string, my problem is when i begin using my bubble sort, it … | |
Hello, I am currently learning PHP. I am trying to implement a sign up page. The name at the same email address of the users in the database should give me an error message. I don't know how to start with. I started this by searching the emails in the … | |
Hi, I am unable to unzip the attached files in this tutorial. I receive the cannot open file error indicating that the file is not a valid archive. I have tried to download te files many times. Is there anything I can do to get these files? I really need … | |
Hi all I have a RDCL Report called Report1.RDCL. In this report I put an image box named logo the select image Source is set to EXTERNAL and in the use this image I have Parameters!LogoPath.Value. I would like the users to be able to pick their own logo. How … | |
![]() | ..uhm...hello...i'm new to python programming and I really want to explore more about this... ...i just want to know what is the best compiler I can use for this... ![]() |
Hi all I've searched everywhere on the internet including Daniweb for this answer but I can't find one. I don't want to break the rules, so I've changed the real domain name to domain.co.uk I manage a website [url]www.domain.co.uk[/url] where the owner requires a subdomain called quotes.domain.co.uk He then needs … | |
Hi everyone, Im using VS2008 and getting the following error message when I try to build the program which I have so far, I've looked around on the internet to try to understand this error but I'm still very confused any help you can offer me will be greatly appreshiated, … | |
Hi all, this is maybe a big stupid question, but cant get this to work thing is that i have 5 tables: airlines - hotels - costs - projects and payments being costs my main table. In this costs table I need to have in the 'total' column the sum … | |
The program should change a sentence to pig Latin. [B]Rules[B][/B][/B] A word starting with a vowel should start with a capital letter and the rest with small letters and end with "way". If a word starts with a consonant the first letter will move to the last until it starts … | |
Hello, I am writing a Tic Tac Toe java program, and it's almost all working; however, I noticed a bug in it recently and I cannot find the source of the problem. Basically the game has a New Game option in the file menu, and the first time it works … | |
I have a basic understanding of how to create A(1) check box, and repeating that method over and over again to create more. However, this makes for messy as shit code, plus I don't feel like doing this method 30 times to create the needed 30 check boxes. So I … ![]() | |
Where would I need to save a picture on my computer to be able to use it as an icon on a button in a program? ![]() |
The End.