199,114 Archived Topics
Remove Filter ![]() | |
im trying to make a program that reads a text file in the format: 2 polygon 3 90 90 90 90 90 90 polyline 2 12 80 30 15 (not the real numbers obviously) and have the program read how many things, what type, how many points for that type, … | |
i got compiler error stating that : Only static data members with const integral or const enumeration type can specify an initializer in the class definition what is the logic behind that? why is the compiler designed not to accept any non constant static initialization of types? | |
Hi, what are the advantages of C# over C++? I have a little bit of knowledge in both of them, but I am going to choose which one to dedicate most of my time to. | |
I'd like to read/write xls files in Delphi. I think there's a way to do this using ADO. Can anyone provide an example or head me in the right direction. Thanks. | |
I downloaded active perl and go to the perl package manager but I cant figure out how to get my applications to run. Any suggestions? | |
Im taking a perl class not exactly sure if what Im doing is right. I was to take a written program that allowed the user to enter a number guessing what the target was. The original used elseif statements to let the user know if the guess was to high, … | |
[code]#include<iostream.h> #include <string> using namespace std; struct sdata { char name[5]; int reg; }; struct sub { char subject[30]; sub * move; }; void instudent(sdata & ins ); void show(sdata * ins); class inf { sub * begin; sub * look(int limit) { sub *pointer=begin; for(int i=1; i<limit; i++) pointer=pointer->move; … | |
i have windows mobile and i need to send an receive messages via my phone from my pc. can you help? | |
Hi I have to do an assignment for a course that includes that I use new stream insertion and stream extraction techniques. On the lecture notes it briefly mentioned cin.get() and getline but not in a very descriptive way. Could anyone please summarize the use of get() when inputting more … | |
Dynamically name array <input> checkbox ? Is it possible to generate dynamic array names for input checkbox forms ? I'm using this code to generate a form of text fields and checkboxs [code] <?php require_once("includes/connection.php"); require_once("includes/functions.php"); include("includes/header.php"); ?> <?php $query = "SELECT key_id, words FROM keywords"; $result = mysql_query($query); confirm_query($result); … ![]() | |
How can we Justify this thing that Dynamic memory allocation is more flexible and efficient than static memory allocation but slower than static?Pls explain | |
Hello, this is my file format: MP,EX,1,1.081048e+10 MP,ALPX,1,9.600000e-06, 3, 2.3 MP,NUXY,1,3.000000e-01 CX,DENS,1,2.797598e-01 BT,KXX,1,6.752689e+02 MP,C,1,3.448000e+05 I want to extract first sring, then second, then I want to extract all numbers in to a float till I come newline, there could be up to 10 values. How do I extract if my … | |
Hi, what are the advantages of C++ over C#? I have a little bit of knowledge in both of them, but I am going to choose which one to dedicate most of my time to. | |
Firstly, this is my first "project" involving code written by others, on top of which no experience dealing with any framework. Given this information, how do i understand a framework. Also, Very little documentation is available ATM. I tried to use a top down approach i end up accomplishing very … | |
Hi everyone! I'm new here this is my first post and woe is me its a call to anyone willing to help me! I'm in an introduction course to java at school and I have programed a little in the past, but nothing to write home about. Today my instructor … | |
I've parsed an XML and now I'm trying to write into some elements that are text nodes. What is the best way to go about writing into these text nodes? Ex. <tag>insert texty text here </tag> | |
How do i read an xml file with unmanaged c++?? is there any built in classes with VS 6.0 i.e with unmanaged code.. Please help.. | |
I have this program that will ask user to put in the day, it compiles but every time i set the day to Saturday this program won't display Saturday, instead it shows Sunday. It also won't correctly generate the output for yesterday if the current day is Sunday and tomorrow … | |
I have a general question. I have a Form where I have some buttoncontrols and 3 textBoxes. What I do now is to add a "TabControl" and a panel1 on the Form and then I put all the other controls inside this panel on the "TabControl". When I now compile … | |
I am trying to make a database of images. The purpose of this is for Robocup soccer tournament. When the robot sees an image while playing it can then refer to its database of images and match its image with one in the database. The database image should have properties … | |
I have a panel on form and i'm drawing a graph on it with a pen.When i open something on top of that form or i minimize the form and maximize it, the panel goes white until i draw something on it again.So i think i could call an event … | |
any information regarding ruby on rails with php.iam working on oscommerce now.i want to learn ROR | |
hello everybody I am new to this forum. i got a doubt. i working on a small project. the thing is my Hosp no should be in the format 123456R. Now there are old patient with the following the hospital number 12345R. In this case i want a 0 to … | |
Hello all, I'm starting C++ and wan't to learn for loop. I want the Loop to count down the rotate and print its value until when it equals to value where it terminates. Here is code [CODE=C++] int value; int rotate = 4; for (value = 0; rotate>value; rotate--; ){ … | |
Hello all, I am coding a client/server in C++ - everything is working so far but I was wondering if my approach is correct or if there is a better way of handling this: In this version only 64 clients need to be able to connect, in a different application … | |
Hello, Im new in ASP.NET and have been reading about state management and have a couple of questions, it be great if someone could help me understand. Im having trouble understanding the use of ViewState. It is only limited to the current page, what kind of typical/common use would it … | |
I know of ww.portablepython.com/ Can anyone know how to do a combination of IDE and this python in stick. Also if anyone have ever tried to add other python modules to it like Vpython, wxpython, etc Thanks alot | |
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() what to do ? | |
hi, it's me again, uhm i have this program for bantumi game, this program is running, but there are some problems i am encountering whenever i execute it.. hope you understand my program.. [code=c] //this is a two player bantumi game,the user will enter the position in the board game … | |
Hi Guys... I have some basic doubts with references and pointers and need some understanding on the behavior of this code [code=c++] #include <iostream> using namespace std; class a { public: int getAmount(a&); private: int amount; }; int a::getAmount(a& p) { cout << this << endl; cout << p << … | |
hiii, plz help me in finding the history of online examinations.i browsed many sites but couldnt get the apt information like, 1)whats the 1st found web based tool for online examinations, 2)drawbacks of online examinations, 3)whats the reason behind the urge for web based online examinations. plzzz its urgent,thanks a … ![]() | |
i've got this code it compiles but it when I try to run it it says segmenatation fault [CODE]/* #include <stdio.h> #include <iostream> using namespace std; int rite(); int a,b; char g,f; int main () { size_t count; FILE * pFile; pFile = fopen ("in.h","r"); count = fscanf (pFile, "%d%d",&a,&b); … | |
am using custom pagination using the following [code]Case "Prev" If GridView1.PageIndex > 0 Then GridView1.PageIndex = Int32.Parse(GridView1.PageCount) - 1 End If Case "Next" If GridView1.PageIndex < (GridView1.PageCount - 1) Then GridView1.PageIndex = Int32.Parse(GridView1.PageCount) + 1 End If[/code] for first and last its wrking properly but in using this two pagination … | |
This is my first attempt at coding. I am completely frustrated and need any help you can give me. I am supposed to take the values in the main method and in the next 2 (these are the ones i am trying to write from scratch) make the values in … | |
Hello guys i am solving last years exams for practice when i stepped over this quiz. I have been fighting it for 2 hours but cant solve it. I must fill in the blanks so the program makes sense and i know its an interface , a class and a … | |
hi all.... I'm trying mailing concept. After entering FROM address, TO address ,subject and body of the message and while clicking the send button am getting [COLOR="Green"] Mailbox unavailable. The server response was: 5.7.1 Unable to relay for "as@a.com" [/COLOR] what wrong i would have made? Plz guide me | |
I want it to skip any lines read that throw an exception so I store the lines with errors in an ArrayList. But when it goes through when it gets an error, it will not skip the line and give same error and keep repeating. [code=java]/** * */ /** * … | |
Hi, I have done some code to display a form with a treeview. The initial folder in the treeview is given in the Project Properties Settings. I did this with the help of some brilliants here in this site like LizR. [URL="http://www.daniweb.com/forums/showthread.php?t=159402&highlight=file+path+in+xml"]http://www.daniweb.com/forums/showthread.php?t=159402&highlight=file+path+in+xml[/URL] My intention is to allow the client or … | |
Hi! First, I want to say that this is not any type of school assignment. I'm in the IT field and looking to work on learning C++. I've been following the book from: [url]http://msdn.microsoft.com/en-us/beginner/cc305129.aspx[/url] and I'm now trying things on my own. The program which the code below compiles will … | |
Attempting to scroll a simple background using pygame. This is proving to be near-impossible. It seems that once a surface is blitted anywhere, it WILL NOT blit into a new location. My two problem functions: [CODE] def loadMap(self): vid = _video._Video() self._bg = self._map.get_background().get_pyImage() self._fg = self._map.get_foreground().get_pyImage() vid.paint(self._bg,0,0) vid.paint(self._fg,0,0) def … | |
i wonder if i create an object from a class using new operator, and if i dont delete that object when i am finished using it, does it still remain in the memory after the program reaches the and of the main function? Thanks | |
this is a project made by me but its issue function is not working well instead of modifying and changing the value of issue to 2 it is adding another book with issue 2 in the file can some one correct it // **library management** // // **library members can … | |
Visual C (2008) is acting as if I never included a header file (wave.h) that I am using, but the #include statement is definitely there. Here's my main (BPM analyze.c): [CODE=C]#include "stdafx.h" #include "common.h" #include "sound.h" #include "wave.h" int main(int argc, char* argv[]) { SAMPLE samples[2]; unsigned int i, j; … | |
Hey guys, [CODE]import sgmllib class MyParser(sgmllib.SGMLParser): def parse(self, s): "Parse the given string 's'." self.feed(s) self.close() def __init__(self, verbose=0): sgmllib.SGMLParser.__init__(self, verbose) self.hyperlinks = [] def start_a(self, attributes): for name, value in attributes: if name == "href": self.hyperlinks.append(value) self.newhyperlinks.append(name) def get_hyperlinks(self): return self.hyperlinks import urllib, sgmllib f = urllib.urlopen("http://www.python.org") s = … | |
hi guys i have written a small program to receive data from a cash reg printer everything works fine but(yes theres always a but) the data from the till output is in compleat string ie bread 0.67 what i want to do is extract the last text on right and … | |
I'm currently taking a computer security class. The thing is, I haven't even taken an intro computer programming course. I taught myself a good deal of C++ back this summer, but I hardly know as much as the other students in the class. we were asked to manipulate the following … | |
hi, i am using php version 4.1.3 and i was using php constants like _FILE_ and _LINE_ in echo statements but when i run these statements in browser they give error that constants are undefined but other php constants like one for php version and operating system work quite well.. … | |
Hi Please any one help me with a secure php image upload script... With out change the destination folder's chmod to 0777..... Please help me....... I am using php apache server... thx in advance | |
[CODE]$result = mysql_query($sql_query,$conn) or die('Invalid query: ' . mysql_error()); $tip = $details['TotalHouseholds']; $perc = 21.33% $sumone= $tip*$perc;[/CODE]could anyone tell me if this is remotley correct i have tryed it in a browser but i get the page displayed normally with a nice line of code telling me [QUOTE]Warning: Division by … |
The End.