64,152 Solved Topics
Remove Filter ![]() | |
I have never posted to a forum before. I am taking a beginning C++ prgmming class. I am getting the error "error C2181: illegal else without matching if " I have tried everything I can think of to fix it, I can't tell if its a syntax error (such as … | |
ive created a new picturebox with the image to be directed from my directory. but it came be the case that the directory path will always be on my desktop. how do i make the path not hard-coded? pictureBox = new PictureBox(); pictureBox.Image = Image.FromFile(@"D:\Documents and Settings\12344\Desktop\Model Products 40x40 v2\Model … | |
Hi, I have a python simulator file sim.py. I need to start, stop and restart this simulator from a C/C++ test file test.cpp. I tried using system( "\sim.py" ) in my test file. This starts the simulator but in the same window as test.exe. In this case how do i … | |
hi every one this is my first post in any forum i have got an error while inserting a row to mysql this is my code: $query = "INSERT INTO flight(date,from,to,depart_time_hr,depart_time_min,arr_time_hr,arr_time_min) VALUES('$_POST[date]','$_POST[from2]','$_POST[to2]','$_POST[hours1]','$_POST[minutes1]','$_POST[hours2]','$_POST[minutes2]')"; the error shown is: 1064 You have an error in your SQL syntax; check the manual that corresponds … | |
I have a checkboxlist and I need to know how I can send the values of all checked items to a text file. I already have other controls on the form sending their values to my text file, but I don't know how to get the values of the checked … | |
i`m having this problem after whenever include or require is Used. help please i dont know how to solve this. Fatal error: Cannot redeclare validateemail() (previously declared in C:\wamp\www\kislat\functions\functions.php:3) in C:\wamp\www\kislat\functions\functions.php on line 26 [code=php] <?php session_start(); require "config.php"; $user=$_SESSION['user']; $id=$_SESSION['id']; if(!session_is_registered('user')){ header("Location: checklogin.php"); exit; } define('INCLUDE_CHECK',1); require"functions/functions.php"; require"includes/functions.php"; //$user=$_POST['user']; … | |
Hi folks, ThompsonSensibl, so I'm new to Python. This is probably a noob question... I want to convert a String input to an Integer. I usually do it like this: number = int(someString). However this time this approach doesn't seem to be efficient at all. So far I have: [CODE] … | |
I would like to skip the remainder of a function and call another should a statement prove true. [CODE] public bool A(int i) { if (i > 5) { // Skip the rest of A() and return B() return B(i); } // Do stuff to i } public bool B(int … | |
Hey guys! This is a relativity simple program. It compiles fine but when I try to execute there is a problem. Any insight or advise would be greatly appreciated. Thank you import java.util.Scanner; public class Power { public static void main( String[] args ) { Scanner input = new Scanner( … | |
Dear Frined my simple update statement is not working on my database software with .mdb CompanyDa.Update(CompanyDs, "DisplaycenterData") it works but only in cache, when i restart my application the record is not updated. i solved my problem with some informal steps. i m attaching vb projects zip file, plz open … | |
Hi, I have a javascript object which is converted from json to java script object. i want to display its values like after each key value pair, i want to insert new line. but i dont know exactly how to do that. below is my code, please take a look … | |
![]() | Hello, I wrote a little slide in box, that slides in from the edge of the screen, the problem i'm having is that I don't always know the size of the desktop if that makes sense, as well as spacially where things are, I.E. Suppose the start menu is on … ![]() |
Hi all, I am new to threading and was wondering if this works. I have a main thread that kicks off a background worker thread. It's function is to update my sql db. There are ten steps and after each step is completed, it will update the progressbar and move … | |
Please inform me can we use C programming in all OS of Mobiles . Like J2ME, Symbian, I Phone, Apple.. | |
Basically, I formulate the website name using the version information ( IDE codeblocks SVN 6088, using autoversioning plugin ) and launch the website using *gasp* CMD... the problem is I don't want to launch a web page because ... i just want to check for updates... Also I don't really … | |
[QUOTE][CODE]using System; using System.IO; using System.Xml; namespace Task3 { class TextFileReader { static void Main(string[] args) { XmlTextReader reader = new XmlTextReader("my.xml"); String strn, strsn; while (reader.Read()) { switch (reader.NodeType) { case XmlNodeType.Element: // The node is an element. if (reader.HasAttributes) { //Console.WriteLine(reader.GetAttribute("reader.Name")); strn = reader.GetAttribute(0); strsn = reader.GetAttribute(1); //Console.WriteLine(strn); … | |
I have been recently experimenting with Python embedding, but I stumbled across some problems. [CODE]#include <python3.1/Python.h> int main (void) { Py_Initialize (); PyRun_SimpleString("print (\"Hello World\")"); Py_Finalize (); return 0; } [/CODE] As you see it is not the most complicated code :). I have compiled in Code::Blocks using g++. I … | |
Hi all, I have an XML File: staff_record> <staff> <username>user1</username> <password>password1</password> </staff> <staff> <username>user2</username> <password>password2</password> </staff> <staff> <username>user3</username> <password>password3</password> </staff> </staff_record> I have a form (login.html) and I need to use an ASP page (login.asp) to redirect the user to home.asp when they have successfully logged in, based on the … | |
so what i have is a list of lists each individual list is a list of cards cards1 = [AS, 10H, 3D, ...ect.] cards2 = [4H, KS, 6S, 9D,....ect] ColumnList = [cards1, cards2, cards3...etc] It should print out a spider solitare tableau, but as you play the game, this columns … | |
I Applied same Code on a dummy form, it worked, but when i tried it on to a Genuine <Purchase> form on which I want to work, it is not updating record, even every code Syntax is same bit by bit, i cant know where i m doing mistake, whether … | |
so far I can't figure out a way to write powerset in SML :(. I see a pattern for example powerset([1,2,3]) is [] [1] [2] [1,3] [3] [1,2] [2,3] [1,2,3] Here's what I have come up with: fun add(a,L)= [a]@L fun ps(L)= ps(tl L)@add(hd L, ps(tl L)); Any help appreciated. | |
Sir.. I want to get the values from web pages using vb.net.. [U]THIS WORKS![/U] [CODE] [B]PHP[/B] <input type="text" name="sample" [B]id[/B]="sample" value="" /> [B]VB.NET[/B] TextBox.Text = WebBrowser1.Document.[B][COLOR="Green"]GetElementById[/COLOR][/B]("sample").GetAttribute("value")[/CODE] but.. what if there's no [B]id[/B]. [CODE] [B]PHP[/B] <input type="text" [B]name[/B]="sample" value="" /> [B]VB.NET[/B] TextBox.Text = WebBrowser1.Document.[B][COLOR="red"]GetElementById[/COLOR][/B]("sample").GetAttribute("value") ??? it cant read the value since … | |
I am having multible problems with my code. Here is what it is supposed to do: Write the program in Java (with a graphical user interface) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage, the term of the mortgage, … | |
hi everyone........... i want to send sms from my wesite to moblie phone.....i dont knw how i do it?nd i dont have any guidance of experts.............. plz guide how can i do this....... i read tutorial for this .....now i knw i need http protocol but how ?????????:-/:icon_question: | |
[CODE]#include <cstdlib> #include <iostream> #include <string> #include <fstream> #include <sstream> #include <cstring> using namespace std; int main(int argc, char *argv[]) { fstream filestr; for (int i=1; i<=17771;i++) filestr.open ("mv_0000001.txt", fstream::in | fstream::out | fstream::app); filestr.close(); system("PAUSE"); return EXIT_SUCCESS; }[/CODE] guys i m trying to create multiple text files to the … | |
Please let me know how to add css to a jsp page? | |
Trying to come up with a code that will give you your circumference value by taking the measurements of your waist and hips and subtracting the measurement of your neck but I'm getting several very weird errors. Most of them in regards to !=. Can someone please take a look … | |
Hey, I'm having trouble of making my program work. So far I managed it to read the file and display the numbers (just to verify that it is being read right), but I'm not sure if the storing is functioning well, as when I pick another option, well, it doesn't … | |
Hi, I'm trying to loop through multiple textboxes in a C++ form using visual studio.net 2008 to set the selection start for each. The code for a single textbox is easy: [CODE] textBox1->SelectionStart = 4; [/CODE] When I try to assign textBox1 to a Control variable, and assign selection start, … | |
Hey guys , im creating a messenger via VB.NET Using eBuddy, I need to have a status and in the status i need it to update every second. The status is in label3 and i tried to put this code on form load but it doesnt change constantly only once. … | |
Alright, I'm trying to generate an ODD random number between 1 and 8. [CODE] Do While (i < 4) box(i) = randomObject.Next(1, 8) Do While (flag = 0) If (box(i) Mod 2 = 0) Then k = 0 box(i) = randomObject.Next(1, 8) If (box(i) = box(k + 1)) Then box(i) … | |
Alright I'm having a heck of a time figuring out what's wrong with this code. It throws an error of [quote]Error 1 'System.Collections.Generic.Dictionary<Assignment7.Station,int>' does not contain a definition for 'ElementAt' and the best extension method overload 'System.Linq.Enumerable.ElementAt<TSource>(System.Collections.Generic.IEnumerable<TSource>, int)' has some invalid arguments7[/quote] However, when I was writing the code I … | |
I have writen some code for a HugeInteger class, but my input funtions will not work. It is suppose to check the array for negative numbers or 2 digit numbers. Since I randomize the numbers between 0 and 9 and checked them by not using the input funtion I know … | |
Hey, i am new to python. I am making a translator in python 2.6 using basic commands. The translator is english to german. I need to use a i need to use a text file like this... at an brown braun cat raze etc. so far i have created lists … | |
ok, So Im very new to this whole AJAX kind of thinking, and I might be trying to do something that's either harder than it needs to be, or theres an easier way that I havent fount yet... I'm trying to make a generic javascript function to call php functions.... … | |
I would like the output of this string to display each word in a column and ignore all punctuation. I have tried including an if statement that tells the string to start on a new line when a space is encountered but I haven't had any luck. Any hints are … | |
Conversion Problem Formatting QBASIC to VB6 I am having real problems converting PRINT Using statements in Quickbasic to Printer.print statements in VB6. Is there a good book which outlines the method of formatting numbers and/or text in VB6 as I am on a merry goround trying to decipher M/S explanations … | |
I wasn't sure where to post this...sorry if its in the wrong topic I was wondering if anyone could determine for me what language is integrated with this html and possibly some resources - like tutorials or basic examples so I know what I'm looking at. [CODE]<ss:set name="border" value="border:1px solid … | |
the program is showing the output perfectly but the value of [iCODE]a[/iCODE] is printing more than once. for example, if i enter range from 10 to 20 , the output should be 11,13,17,19 but the output is 11,13,13,13,17,17,17,17,17,17,17,19,19,19,19,19,19,19,19,19 how can i fix this ? [CODE]int main(void) { int a,b,c,d,f; clrscr … | |
So I'm currently using Lazy Foo's tutorials. Here's the link: [url]http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet05e/index.php[/url] I followed all the instructions, but I'm having a couple issues. So when I choose an empty project, like the tutorials recommends, as opposed to one with a precompiled header, the C/C++ tab does not appear, and I am … | |
hey i'm really not sure how to solve this, im making a simple "press enter to continue" function called wait(), defined it in a header file with extern keyword, and then in the main file prototyped it and from then on used it as wait(); But it still states that … | |
This should be a rather simple question to answer. I want to include a field of data using $_POST that is not inputted by the user in an <input name=" "> text box. Is there anyway to manually add a field to $_POST without using input? Example: [CODE]<form action="<? echo … | |
Hi ... I m having question on vc++ floating value slider in CLR windows from... I want to have a slider which should have 0 to 1000 value and the values should be float values.. can anyone please help me how to resolve this problem.. here i included the code … | |
Hello all im trying to work out whats wrong with this code, [CODE]#include <iostream> using namespace std; int player1score = 0; // global variable int add10 (int &score) // function that adds 10 to player1score variable by reference { return(score + 10); } int main () { cout << "Please … | |
Hi, how can I call another JSP without transferring control to that. The response.sendRedirect is transferring control to the next jsp page. I still have some code after the response line which needs to be executed but it doesnt gets executed. Any suggestions? Thanks | |
I'm wondering how to start a Boolean array at 1 instead of 0. so far the only thing i can think of is: [CODE] Boolean [] x = new Boolean[12]+ 1; or Boolean [] x= new Boolean[12 + 1]; [/CODE] and the top one does not compile while the bottom … | |
Hi, I am currently learning the Java programming language and have downloaded the latest Eclipse Platform to program with and encountered an interesting error while trying to import a folder with some of my previous work. the importing client in eclipse encountered some error about a buffer overload which i … | |
I have a funny problem. I am trying to split a string. [code=python] DEVICE_IP = '164.178.7.30' ip = DEVICE_IP.spilt('.') print ip[0]+'-'+ip[1]+'-'+ip[2]+'-'+ip[3] [/code] The above code throws the error [code] Traceback (most recent call last): File "/home/englotk/test", line 2, in <module> ip = str(DEVICE_IP).spilt('.') AttributeError: 'str' object has no attribute 'spilt' … | |
Hi, I'm using VB.net express edition with SQL server compact for a project and I need a little help. What I'm trying to do is; I want to set a certain column to true or false automatically based on what value another column has entered. I managed to get this … | |
Hi I have made a javascript image viewer where there are thumbnails at the top and when you click on them the bigger image below the row of thumbnail image changes according My question is, how do i make the larger image become a hyperlink to the corresponding page it … |
The End.