64,152 Solved Topics
Remove Filter ![]() | |
First of all, hello everybody :) I'm startint to learn Python and i have question about keyboard input. e.g. I want to enter grades (e.g. 10, 4, 4, 2) and calculate average. So i guess it should be: [CODE]grades = raw_input("Enter grades:") print "Grades:", grades[/CODE] And finaly - question.. How … | |
Hello, Im trying to show my images with a limit of 2 but the while loop show the codes correctly in the source on the browser but the items are not showing on the web page.. How can i fix this issues... HERE is the codes [CODE] <!DOCTYPE html PUBLIC … | |
I need help with this stack problem. I think I got it, but I dont. Basically its a program to figure out who will be eaten by the dragon from a village. Names, and <CHOMPED> will be in the "villagers-in.txt" file. Every line of the file is supposed to be … | |
Hi, I'm working on searching error files based on time. I have 2 folders which have permanent and temporary error files in it, and the only difference between permanent and temporary error files is creation time. I’m searching for error files in these 2 folders and my search should only … | |
Good Morning, I am writing code for a Hockey Pool site and I am working on the Standings page...typical divisional standings page. My code runs through a loop for the four teams in each division and yields results for each team and outputs fine. Here is my problem...I want to … | |
Hi friends, I'm new to this community. i just want to read string from a file excluding punctuations like ',' ';' or newline character. Is there any way to read the string by specifying the terminate character. | |
Hi I am implementing a function that check if user is a man or woman. But it does not worl properly. I press e for example and appears two times Please press m/M for Man w/W for Also sometimes w/W/m/M are not recognised and appears the above. My cose is … | |
There is a list of dataset and I need to reshuffle them randomly then partition the dataset into n groups. I am using dictionary to store the list of dataset, but I am not sure how to partition items of a dictionary into n groups? What I can think of … | |
Hi, Can anyone help me on the requirements below? I dont have any idea on an inventory system...please help!!!! Objective Create an inventory system that allows records of company inputs and outputs, tht's viewable through daily, weekly, monthly, yearly report as well as online control over items. Aim To simplify … | |
I have this tow errors ,how I can solve it.any ideas? error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup MSVCRTD.lib AC fatal error LNK1120: 1 unresolved externals Debug\AC.exe AC | |
This is an assignment I am working on for uni and I have done quite alot by myself and with some hints along the way from others who know Java better than I do. So I am working on a GUI Traffic Simulator (creating the GUI and drawing it is … | |
[CODE]void Students_Absence_Report() { int i; double presence[NO_OF_STUDS], absence[NO_OF_STUDS]; for(i=0; i<NO_OF_STUDS; i++) { presence[i] = ((double)student[i].presentDays/14)*100; absence[i] = 100 - presence[i]; } printf("\n\nStudents Presence/Absence Report\n"); printf("--------------------------------\n"); printf(" Name\t\t%%Presence\t%%Absence\n"); for(i=0; i<NO_OF_STUDS; i++) { printf("%-3d %-19s %.2f\t\t%.2f\n", student[i].studNo, strcat(student[i].surname, student[i].givenName), presence[i], absence[i]); } printf("\n******** END OF ATTENDANCE REPORT ********\n"); } [/CODE] Anythings wrong … | |
I'm having some difficulty trying to figure out how to write a certain query. The very basics are that I have two relevant tables: `containers` and `items`. `containers` have the fields: ContainerID, ContainerName, and ContentType. `items` have the fields: ItemID, ItemName, and ContainerID. The easy part of the query is … | |
I just found this tough question in the last year Q Paper of this exam...I dont know how to take that type of input,leave alone the logic...Can any1 help me with this program, plz... : [B] Question 1 Vogon zoo On the icy planet Zorg, the Vogons are putting together … | |
Hi. I have a calculate.js javascript file where all the function that execute the calculation is consist in this file. Now, I want to retrieve a data from the database for javascript calculation and be done in this calculate.js file. I have search a lot of methods to do this … | |
Hey There all you clever people. Its Ruan here. I am using vb 2010, and i really would like to Just open, not modify a word document. Now i have browsed the internet, and this is what i have found.. in project menu>refferences> select .. microsoft word 9.0 object library … | |
What do the numbers tell me, in terms of frequency, amplitude and maybe time? Thank you muchly! drue | |
Hi there, Can anyone tell me how to change my win32 programs icon (top left). I'm running MSV C++ Express 2010, so i don't have MFC. Theres a few tutorials on how to do this but using resource files? Which apparently MSV doesn't support. I want to be able to … | |
i have button add and the coding, but everytime 1 click the button, a messagebox said that syntax error INSERT INTO. all database column name and the textbox name is true. i checked many times. this is my code [CODE] Try 'add data inside the database con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data … | |
hi, how do i format the currency value. i have used [COLOR="Red"]Format(GrandTotal, "0.00") [/COLOR] but i still got output like this [COLOR="Red"]60917.3972[/COLOR]. How can i make it to 60917.40 | |
1>------ Build started: Project: allegro, Configuration: Release Win32 ------ 1> allegro.cpp 1>MSVCRT.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main 1>c:\users\lenovo\documents\visual studio 2010\Projects\allegro\Release\allegro.exe : fatal error LNK1120: 1 unresolved externals ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== | |
Okay, so, here's the assignment that I have to complete: Write a program that will input two vectors of information. Each vector will contain exactly 8 floating point values. Your program will enter these values from standard input. Once the values have been read in, your program should call a … | |
The practical exercise for this session will be to create a cash register program that you input the cost of an item, the number purchased and if a sales tax applies to the item. If a tax does apply to the item, the tax value will be ten percent of … | |
Hi, I have a listbox that is bound to a textblock as target and also has an xml file as source. My problem now is the correct syntax for inserting another listbox in between the listbox and the xml file. My code is shown below... <Window x:Class="newTestApp.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" … | |
hey guys. i am very new to programing and was wondering if anyone else had seen this little trick. this is a little java code to get a saved password prom a website. javascript:alert(document.forms[0].elements[1].value) the forms and values change from site to site but this code works for this site. … | |
I am trying to make a reference program that you can use to access any element of the periodic table based on its name, symbol, atomic number, or atomic mass. It is more than one file, and I need a way to return to main if the user wants to. … | |
Hi everyone, I wrote an INSERT for an insert form but for some reason it wont save the data tot he database. In phpMyadmin the rows are taken up with blank nothings. It seems to work but nothing is being stored. code as follows... [CODE]session_start(); $db_hostname = "localhost"; $db_password = … | |
In the MDI main form I am loading one child form (i.e Login Form)at the center of the MDI form. I want without closing the child form(Login form)no one can access the MDI main form.. After login only the login page should close and MDI form should enable true.. Before … | |
I have web project and window project.Web project reference from window project and I want to debug from web project to source code in window project. Where do I setup to look for debug source code in window project. I copied all source code from another computer. but on another … | |
Okay, I've just started learning C++ and I'm on the third chapter of my book which deals with control statements. Basically, I've learned how to create very basic text based games. [CODE] #include <iostream> #include <string> int main (void) { using std::cout; using std::cin; using std::string; string options = ""; … | |
Hello all. I'm having a bit of trouble trying to figure out how to access data I input into a ctypes array object. This is used with a hardware SDK, so I can't really change the data format at all. Here's the code: [CODE] from ctypes import * MsgDataType = … | |
I've been trying to make something where I can just plug-in a new implementation (for things like opening a window, displaying graphics, etc.) and it work just like before. I've added a couple of other things like a resource manager, but now I'm getting linker errors. This didn't happen until … | |
Hey guys, I'm wondering if you can help me out on my problem. I wrote this code to print out consecutive numbers till it reach the maximum number entered. The code works but I want to control the output. Here's my code so far... [CODE] cout << "Enter max number: … | |
I basically want to map out folders and subfolders in a dictionary and i have this code ive written, but instead of adding each filename to the dictionary it overwrites it each time. Any suggestions? [CODE]for fname in os.listdir(os.getcwd()): print fname x += 1 maincat = {fname} print "x = … | |
im quite new to python so forgive my stupidity. ive downloaded numpy and here are a few things i understand regarding images and numpy 1.images are made up of pixels that have coordinates, a 2d array i believe 2.numpy has the ability to handle arrays and split them what i … | |
I want to compare two float values in shell script, i.e. a = 0.1 b = 0.4 if ( $a < $b )then expression1.. expression2.. expression3.. fi if ( $a > 0.0 ) then expression4.. expression5.. fi could you please suggest me how to implement in shell script ? | |
I cannot figure out what I'm doing wrong in the following code: [CODE]char* charArray[3]; strcpy(charArray[0],"wn"); strcpy(charArray[1],"chair"); strcpy(charArray[2],"-over");[/CODE] Thanks a lot for the help! | |
![]() | Ok so this code works great with an if else statement but i dont why when i change the showMenu to a switch statement you cannot see my print out statement as a menu!? Iv tried different ways of writing the print outs and they havent worked at all. Also … ![]() |
Hey guys, is there any alternative methods to string slicing? An example output would be: input: dani output: d da dan dani I did this with string slicing, but am wondering if it is possible to do the same thing without slicing. Anyone help out? Testie, | |
hi can any one suggest why this code doesnt work [ICODE] if(mysql_num_rows(mysql_query("SELECT * FROM users WHERE username = '".$username."'")) == 1) { echo "<h1>Error</h1>"; echo "<p>Sorry, that username is taken. Please go back and try again.</p>"; } else { $registerquery = mysql_query("INSERT INTO users (fname,lname,age,email,phone,address,username,password, amount,plan,benefit,prem1,prem2) VALUES ('".$fname."', '".$lname."', '".$age."', … | |
Hi there, I am having some syntax and logical implementation problems with a really very simple requirment and I am hopeing someone can help point me in the right direction. The problem I am having concrens trignometric functions in 3d space and what I am trying to do is find … | |
pleas will any one help me i feel im going to explode more than 8 hours in this question and i have to submit it after 3hours.. my prog is not finished yet but an error saying unresolved external sympol... actually i have aprog that define the mistake(MSDN library for … | |
hello everybody.. here is my Assignment Code.. [CODE]#include <stdio.h> #include <windows.h> int Attendance[50][50] = {0}; int studPresence[] = {0}, weekPresence[] = {0}; int i, x; int week, student; char SubCode[30]; void InputFunction(); void WeekAttendance(); void StudentAttendance(); void main() { int answer; while(answer != 4 || answer > 4 || answer … | |
Hi! I have a problem with the array of JTextField components. So, the code is shown below and it can be successfully compiled: [CODE] txtAdminTextFields = new JTextField[nrOfCols]; ... tableAttributes.getColumnModel().addColumnModelListener(new TableColumnModelListener() { public void columnMarginChanged(ChangeEvent e) { for (int i=0; i < nrOfColsFin; i++) { txtAdminTextFields[i] = new JTextField(); txtAdminTextFields[i].setPreferredSize(new … | |
I am having a hard time understanding subqueries. I am pretty sure that is what I need to accomplish my task, but not sure how to put it together. I have a unique ID field that auto-increments, so that a new entry always gets a higher number assigned to that … | |
What the title says. Basically, I have some code with 12 nested loops based on the code below, and may have to bump it up to 24. This works fine, but seems a little cumbersome, and can't help but think that there's a better way of doing it? All help … | |
Hi! Sorry for my bad english! How to make a button (source code) that when someone clicks on it, it shows the source code of that what is written. (On some buttons I put the image (<input type="image" src="image.bmp" onclick="urediFont('justifyleft');">) (alignment:left, center, right). But when I click on them everthing … | |
Hi! Sorry for my bad english. I have this code: [CODE] <html> <style type="text/css"> #traka{ border:1px solid black; position:relative; width:300px; } #boja{ position:absolute; top:0; left:0; height:100%; background-color:yellow; } #tekst{ text-align:center; position:relative; } </style> <script type="text/javascript"> wid=0; function kreni(){ setTimeout("izvod()",700); } function izvod(){ wid+=10; pos=(wid*100/300); pos=Math.round(pos); pos+="%"; document.getElementById('tekst').innerHTML=pos; document.getElementById('boja').style.width=wid; if(pos!="100%"){ kreni(); … | |
My program passes a parameter that looks like this: [CODE]std::vector<myDataType> vec; void function(&vec);[/CODE] Then the function accepts the argument like this: [code]void function(std::vector<myDataType>* myVec){ ...does something }[/code] Yet somehow I am getting the following error: error C2664: 'CMyClass::WriteVectorSTL_CSV' : cannot convert parameter 1 from 'std::vector<_Ty> *__w64 ' to 'std::vector<_Ty> *' … | |
[code] // The "ChoseYourOwnStory" class. import java.awt.*; import hsa.Console; public class ChoseYourOwnStory { static Console c; // The output console public static void main (String[] args) { c = new Console (); String start = ("yes"); // assignment 1 while (start.equals ("yes")) { c.println ("A high ranking thug comes walking … |
The End.