199,113 Archived Topics
Remove Filter ![]() | |
Hi, just looking for a quick answer to my problem: How can I read a string from a binary file? for example string buff; binfile.read(reinterpret_cast<char*>(&buff), 10) does not work. Doesn't work either if buff is declared as a c-style string. I'd preferably like to read it into an STL string. … | |
I've set the promt window size to full screen. But now I can't return it to 'window', because it hasn't got a blue header anymore where i can acess the properties. Does anybody know how to set the console window back to 'window' when I press F9 (compile and run) … | |
Does anybody here know how can i manage global data in multifile C programs ? Plz do reply. | |
Hello everyone. I am reading C++ Demystified and am on the chapter about the for loop. I am using this code [code] [COLOR=#0000ff]#include[/COLOR][COLOR=#a31515]<iostream>[/COLOR] [COLOR=#0000ff]using [/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] main()[/COLOR] { [COLOR=#0000ff]int[/COLOR] num, counter, total = 1; cout << [COLOR=#a31515]"Enter a number: "[/COLOR]; cin >> num; cout << [COLOR=#a31515]"The factorial of "[/COLOR] … | |
Hello, im a new C++ programmer. One of my first programs is to turn a normal english word into pig latin. I have one last error to sort out. I keep getting a parse error and i can't figure out why. the error is: In function `int main()': parse error … | |
Hello, all! I just wanted to announce to everybody who browses the game development section here that I, along with my three brothers, will be endeavoring to develop an MMORPG. I am announcing this, not because I'm looking for recognition, but because I'm hoping that, through our efforts, we might … | |
![]() | I've been looking for the anwer for almost 2 days now, odds are I'm looking in the wrong place but I can't find it. Is there a script I can write to get perl to print a command to the command line and then "press enter" to execute it? |
help,i was doing C++ programming,i'm beginner and when i was coding something,there comes a cursor that blinks and when ever i press enter it delets characters i wrote,how can i stop that,help? | |
So How do you format phone numbers and things like that in C#? In perl it would be a pretty simple regular expression to format 4445556666 into (444)-555-6666 but I haven't easily found how to do that with C# in Visual Studio 2005 yet. Learning is fun. :confused: | |
Hi I'm making a mouse recorder. I want to record whatever the person does and then play it back when they want. I have everything right( I can record and play back the mouse movement) but What I cant do is record the clicks. Do you know how I can … ![]() | |
Hi, I have two tables that stores product details which is carinfo and products.I did it in 2 separate tables as the products are by diffrent category and therefore the fields are different. I'm not sure if that was the correct way doing it coz i seem to have problem … | |
i was wondering if any one knows how to put mods into the phpbb reg forums.. because i am starting up a new ladder site and i only have the forums but i want them to be organized so i was wondering does any one no a mod that i … | |
Hi Im trying to place images in this change content script but it refuses to co-operate. Is there some way to do it? [code]<table border="0" cellspacing="0" cellpadding="0"> <tr> <td width="100%"><form name="ddmessage"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="100%"><select name="selectbox" size="1" onChange="changecontent(this)"> <option selected value="What is JavaScript?">What is JavaScript?</option> <option value="Why … | |
I have a work to do in Assembly. With the value of a radius given by the user, It only calculates the [B]area of a circle[/B]. It has to work in 8086 and not in 80386. I think that the problem is that the value is loaded to the FPU … | |
I would like to learn vb6.. I have NO experience in code... Is this something i could teach my self with books and stuff... What kind of math skills are required??? | |
looking for a function that will htmlencode a cstring | |
Hi all,, the problem is that i have a link in jsp on which i have to open a new jsp page and at that time i want the parent window to be closed ...without any alert to be displayed... plzz help | |
import java.io.*; import java.awt.Frame; import java.awt.FlowLayout; import java.awt.Color; import java.awt.Insets; import java.awt.Dimension; import java.awt.event.WindowListener; import java.awt.event.WindowEvent; import java.util.Enumeration; import javax.comm.CommPort; import javax.comm.CommPortIdentifier; import javax.comm.SerialPort; import javax.comm.NoSuchPortException; import javax.comm.PortInUseException; public class BlackBox extends Frame implements WindowListener { static int portNum = 0, panelNum = 0, rcvDelay = 0; static SerialPortDisplay[] portDisp; … | |
hello sorry to trouble you, i was wondering if you could see this program on this c++ program. i want to have a program were i can enter two intergers to make a cetain grade i.e. 56 +4 >60="c" for example, any please look at my program. [code=cpp] #include <iostream> … | |
hai everybody, know only i start learning c program,while compiling any program i have the error "[B]stdio.h was not included"[/B] even any header file it may math.h,conio.hstdlib.h etc,we include in our program it show this error [B]"you header file is not included"[/B] [B]how will i rectify the error.[/B] [B]Thanks in … | |
I know wxpython is supposed to be better than tkinter, but I can't find any easy to understand tutorials on how to begin using wxpython. But anyway. How can I get tkinter to load up a jpg? | |
Hi all, I have some script which doesnt work at all in firefox or other browsers, and i was wondering how to make a browser checker script which checked if the user was using IE, and if they are, show the script. If not, write somthing else for example "Go … | |
Does anyone know why I am getting an NullPointerException:Null error for this method? [CODE] public int[] checkISBN() { String letter; int[] isbnCheck = new int[9]; for (int i = 0; i < 9; i++) { letter = isbn.substring(i,i+1); isbnCheck[i] = Integer.parseInt(letter); } return isbnCheck; [/CODE] This is the specs for … | |
Hi all, I have some script which doesnt work at all in firefox or other browsers, and i was wondering how to make a browser checker script which checked if the user was using IE, and if they are, show the script. If not, write somthing else for example "Go … | |
Hmm,first sorry for some grammar mistakes... I have a big problem with graphics in C... For 2 days i'm looking on internet and nothing...I saw some theards and posts but none of the lib didn't work...(It was forums on my language ) I'm working in VS 6.0 I saw here … | |
code: you can change this code as you like [code] import wx import os from wxPython.wx import * import wx.html class MyHtmlFrame(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, -1, title) html = wx.html.HtmlWindow(self) html.SetPage( "This is test implementation of Simple <b>Notepad</b> using <font color=\"red\">wxPython</font> !!!! " "<br>View is created using … | |
Hi everyone, I'm new here and this is my first post. Like the title says - I'm new to the whole coding and programming thing, I really LOVE the thought and the idea, I've started out with XHTML and CSS, it's going easy so far and I think I have … | |
I would like the program to repeat the "how many" question until the input is an integer: [CODE] int X = 0; number_patients: cout << "how many?\n"; if (! (cin >> X)) { X = 0; cout << "please enter a number\n"; cin.clear(); goto number_patients; } [/CODE] This creates an … | |
[code]#Auther : vivek sharma #date : 06-11-2006 #Description : This script is used to get the list of week in given year, user have to input the year , def WeekFinderFromYear(year): """ will return all the week from selected year """ import datetime WEEK = {'MONDAY':0,'TUESDAY':1,'WEDNESDAY':2,'THURSDAY':3,'FRIDAY':4,'SATURDAY':5,'SUNDAY':6} MONTH = {'JANUARY':1,'FEBRUARY':2,'MARCH':3,'APRIL':4,'MAY':5,'JUNE':6,'JULY':7,'AUGUST':8,'SEPTEMBER':9,'OCTOBER':10,'NOVEMBER':11,'DECEMBER':12} year=int(year) … | |
Hi all, I have used the checkboxes in my page as given below [code] <input type="checkbox" name="chkboxarray" value=1> <input type="checkbox" name="chkboxarray" value=2> <input type="checkbox" name="chkboxarray" value=3> [/code] If all the checkboxes are selected then how can we get the values of individual checkbox in php during a form submission. Anyone … | |
If you have to count numbers of 1 in a 32 bit word. Other than checking every other bit or dividing the bits is 4 parts and then using lookup table. What will be some other most efficent way ? | |
can anybody help me by writing a code for opening my web connection. it locks itself after some time as it is password protected and i have to open it again.The thing is that i actually leave my computer on to download stuff and when i come back it locks … | |
why we named java as Java 2? please tell me | |
The following is the core dump got from the application crash(just took a line from the core dumped file). [code] 003af9dc memcpy (0, 0, 4629e8, 4629e8, 0, fbc06e65) + e8 [/code] I could not understand what it is trying to say here. As memcpy takes three parameters, here it is … | |
![]() | Hello, I am new to Python and find it really nice. But I can not launch an executable file using only its name. I have to give its whole path. I expected that the PATH environment variable is known by Python and that it could retrieve the full path itself... … ![]() |
School project, just wondering if there is anymore documentation that I woould need? [code=cplusplus] //********************************************************/ // Tim Petrich, T.Scot Alexander // Program: Project 1 Mystery.cpp // Date: 17 January 2007 // Purpose: Binary Convert // Description: Converts text into binary using the division method // through ASCII code. // The … | |
[COLOR=darkblue]Sub Main() Dim value As String value = "PFolder=oPFolder&SFolder=sfolder&oMsg=i" Dim myFolder As String() = Nothing Dim msgs(5) As Char msgs(0) = "=" msgs(1) = "&" msgs(2) = "=" msgs(3) = "&" msgs(4) = "=" myFolder = value.Split(msgs, 6) Dim f As String For Each f In myFolder Console.WriteLine(f) Next f … ![]() | |
![]() | I am getting a runtime error somewhere in the inputData function, I can't find it. Can anyone help? Thanks [code] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<iostream> [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<string> [/COLOR][COLOR=#0000ff]using[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff]void[/COLOR][COLOR=#000000] inputData (string &); [/COLOR][COLOR=#008000]//function prototype passing by reference [/COLOR][COLOR=#0000ff]void[/COLOR][COLOR=#000000] outputData (string); [/COLOR][COLOR=#008000]//function prototype passing by value [/COLOR][COLOR=#0000ff]int[/COLOR][COLOR=#000000] main()[/COLOR] { string myString; [COLOR=#008000]//instantiates … |
Hi, Lately, I've been looking for a nice affordable newsletter management system in PHP. It needs to be hosted in my server - I'm not looking for an ASP. I've actually found up a few ones, but I don't like them for the following: [list=1] [*][B][URL=http://www.octeth.com/products/oempro/]Octeth oemPro[/URL] [/B] - A … | |
Hi, I have a website. I want to put a searchbox and search what i want to find in content of my website not in database file. How can i do this? Thanks | |
I have a set of information about customer environments (as a contractor providing services), and I need to create something to keep track of each customer's environment configuration. The data being gathered is very heirarchical in nature. For example: customer: bob's tv repair --environment: unix print ----printers ------printer1 --------attrib1 --------attrib2 … | |
I have this problem... Ive gotten the codes however, i cant seems to get the output correctly.. This is my program: [code=cplusplus] int n; cin>>n; //reading in value of n if (n==1) { cout<<n; //if n=1, print out 1 } else if (n%2) { n = 3*n + 1; //if … | |
Is it possible to accomplish all tasks (Web Application Development) with Visual Studio 2005 Team Edition that you can with Visual Studio 2005 Professional and Standard Editions (In otherwords I can use Visual Studio 2005 Professional Edition or Standard Edition to develop a website System, is it possible to use … | |
[COLOR=darkblue]Dim mg As MsgBody = New MsgBody s.WriteLine("<a href=ConsoleApplication1.exe?PFolder=oPFolder&SFolder=sfolder&oMsg=i>" + oMsg.Subject + "</a>") I want to call following function in abo ve href[/COLOR] [COLOR=darkblue][/COLOR] [COLOR=darkblue] Public Class MsgBody Public Function message(ByVal PFolder As String, ByVal SFolder As String, ByVal msg As Integer) As String how can do this? [/COLOR] | |
hai to all, i think its a simple only but i am not having clear idea how to pass the value from an page into an popup window in a javascript in php.if any ones knows or get any idea means plz post quicklywith an example thank u,:idea: | |
[COLOR=#0000ff]switch[/COLOR][COLOR=#000000](time)[/COLOR] { [COLOR=#0000ff]case[/COLOR] 1: System.Console.WriteLine(" Enter the century. ie 20 or 19."); C = System.Console.ReadLine(); Convert.ToInt32(C); [COLOR=#0000ff]goto[/COLOR] [COLOR=#0000ff]case[/COLOR] 2; [COLOR=#0000ff]case[/COLOR] 2: System.Console.WriteLine("Enter year in YY format. ie 96") ; Y = System.Console.ReadLine(); Convert.ToInt32(Y); [COLOR=#0000ff]goto[/COLOR] [COLOR=#0000ff]case[/COLOR] 3; [COLOR=#0000ff]case[/COLOR] 3: System.Console.WriteLine("Enter month in MM format. ie 03"); M = System.Console.ReadLine(); Convert.ToInt32(M); [COLOR=#0000ff]goto[/COLOR] … | |
I am in the end part of a Python Gui game build; it is going quite well but I am finding that I underestimated one area of the logic, incorrectly coding it: The game is blackjack. One area that, although it seemed simple on the surface (and in fact it … | |
[COLOR=#000000]For years I have been working with MS Access and enjoying the simplicity and ease of use. I am now making the move and converting all of my sites to MSSQL. Virtually everything works but in the process, I have found an oddity that I am not used to.[/COLOR] [COLOR=#000000]I … | |
Hello: I am new to Java and I am working on a tutorial to familiarize myself with this language. The tutorial is a walk-through in building a basic text editor. So far the build is going fine, but I have come to a point where I am unsure how to … | |
Hi, I am a newbie to python. I was trying to import an execl application to python. To startwith i'm trying to open a excel file using python script. In some of the sample scripts that are available on internet has the following contents. -------------------------------------------------------------------------------- import win32API.client import pythoncom app … |
The End.