64,152 Solved Topics
Remove Filter ![]() | |
Hello :-) I'm trying to pass a filestream to a function: [code]template <class T> void grid<T>::print(std::ofstream file) { for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) file << cell[i][j] << "\t"; file << std::endl; } }[/code] so that I … | |
I would like to extract the header info from an image file. For example I would like to search for the key "LINES" and return "2240" as string. And should I use open("r") or open("b") since im only interested in the header. Header: [inlinecode] BANDS = 1 BAND_STORAGE_TYPE = BAND_SEQUENTIAL … | |
here is the code, which is meant to output a string of about 50 characters made of — and , in random color for the dashes, with the dashes occurring only in pairs. I get a "0" for the final output. [code] function flow() { $ar = array( 0 => … | |
So I have this sorting program due and I did it all but there's something crazy happening when I run the program. If I enter a value that's greater than 6400 for the size of my array, the program crashes when it tries to sort it out. Also, when i … | |
Hi can anyone help me on how to get the names of the tables from a DB - MSSQL 2k server? i need to list them or add them into a combobox, but i also need to select them by owner, or by type. user defned or system. thx in … | |
I am having some trouble trying to get a JApplet to display in a Browser. The [applet](http://javafaq.nu/images/smiles/icon_sad.gif) does compile and does come up (displays) in a Microsoft Windows window frame, but does not display in a browser. I have several components that I place in JPanels and successfully place those … | |
[code]#include <iostream.h> int fred[] = { 11, 22, 33, 44 }; int *fp; int main(int argc, char *argv[]) { for (int i=0; i<argc; i++) cout << argv[i]; cout << endl << "Hello world." << endl; fp = fred; cout << *fp++ << *fp++ << *fp++ << *fp++ << " - … | |
Hi, I am having trouble with wxPython on SUSE Linux Enterprize Server 9. The Computer has several Itanium 2 processors, and the version of Linux is for these processors. Python works just fine. So do other graphical toolkits Tkinter, pygtk, and qt. However when I try to use wxpython it … | |
[code] { int input; cout<<"Please select a number from 0 to 127: "; cin>>input; if (input<127 && input>0) MarkNumber(input); else cout<<"Please enter a number from 0 and 127!"<<endl; } void MarkNumber(int input) { int loop=0, n=0; while (loop!=input) { cout<<n; n++; //incrementing number from 0 loop++; //incrementing counter for loop … | |
Hi, Iam a new comer.Joined today.Would like to clear one of my doubts. I have a doubt regarding the columns in datagrid. Iam using vb.net2005 (win application) I have a typed dataset, with the column names as that of the database(sql) table fields.i had set a datagrid's datasource to this … | |
Hi guys, i have a problem in vb6 . lets say i have a command button named print in form1 then after clicking the print button it will transfer me to form2 which will control the number of copies,quantity and these things of printing options. The problem is how to … | |
hi, im kindof new to these things.iv just learnt a little python and am looking to learning something about parsing XML from APIs etc. could anyone give me a few pointers. also any advice as to what should i learn from now on would be very much appreciated(could you please … | |
Hi all, I've just joined this forum and was wondering if you give me a recommendation for a programming language? I've created an application using a scripting language within a filemaker database. I'm keen to explore it's migration to a more versitile / powerful language. My app is based around … | |
[B]Warning[/B]: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [B]/home/content/r/a/e/raeyshe/html/fanlisting/admin.php[/B] on line [B]21[/B] [B]Warning[/B]: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [B]/home/content/r/a/e/raeyshe/html/fanlisting/admin.php[/B] on line [B]26[/B] [code]<? if ((!$_POST['action'] && !$_GET['action']) || $_GET['action'] == "login") { // get total member count $querycount="SELECT id FROM … | |
Hi all, I'm pretty new to Perl and already I'm finding myself lost. I have created a form for my website that allows users to enter news articles (a textarea) and then my code saves the text entered ($Text) to the database. I have set the Text to longtext through … | |
This is a input file DEL 0050 XYZ 0050 0310 CCU 0710 MAA 1325 TRZ 10415 KWI 0050 FJR 0325 0325 CCJ KWI 0050 FJR 0325 0425 CCJ 0925 1005 i.e maximum items(column entries) in a row can be 8 but their data type will be in same order i.e … | |
hi! this is my input file by name SC.txt CD 737 123457 AM 320 246 XY 543 357 AR 222 2 TY 212 1357 now i want to read this file and compare the last column entires with a user entered number. i.e user enters a no. for example 2 … | |
Either I'm doing something very wrong, or the XMLDocument component is a terribly written component. I keep getting Access violation at #ADDRESS Read Of #ADDRESS errors, no explanation just a peek at the CPU showing the error occurs all of the place depending on which test I'm doing. Basically, all … | |
I have a question, does anyone know why "Div/0" error comes up in VB? My program reads/writes to several files. On my computer and one of my friends computer, it works perfectly; though there are some desktops machines that I receive that error. When I step through the program to … | |
Hi I need to cast string type variable to LPCTSTR type. How to achieve this. I am inserting my code for yours help.[code] [COLOR=#0000ff] ifstream file(filename); if (file) { char ch='\n' ; do { file.getline(line, SIZE); tmp =static_cast<string>(line); vector <string> array; string token; // token decleared string type istringstream iss(tmp); … | |
everything seems to go fine except when i get to the search. either the program runs with a runtime error or it'll just return "NO MATCH". by the way, when i put the if/else statement in the loop, it works but it also returns NO MATCH until it finds the … | |
[CODE]void main(void) { char *p = "name"; p[0] = 's'; printf("%s", p); }[/CODE] The above piece [COLOR=black]of code is giving me eror at run time. The reason for this error might be that I am not allocating any memory for the pointer(correct me if I am wrong).[/COLOR] [COLOR=black]My doubt is, … | |
hi, i'd like to create something that basically grabbes information from websites, however i havn't any experience in urllib (apart from very basic page reading) and the issue is that the page i want to grab data from checks to see if another page is connected to it or perhaps … | |
Hello all.... Just learnt VB .NET yesterday and would like to continue to the ASP .NET book using the VB .NET IDE to program. The thing is... when I start a new project in VB .NET there are no templates for ASP .NET Web Application. Do I need to download … | |
Hey everyone! I'm having some problems with the time being off when I use this code: [php]<?php echo gmdate("l, F j, Y g:h A",time()); echo "<br><br>"; echo date("l, F j, Y g:h A",time()); echo "<br><br>"; echo time(); ?>[/php] You can see it on my site here: [URL="http://codered.xmshosting.net/time.php"]http://codered.xmshosting.net/time.php[/URL] It should show … | |
Hello. This is a very very basic question about variables in range names. I have quite a few ranges of varying lengths in multiple Excel documents. I want all the ranges standardized and set to the same length, but I don't know what that length will be yet, and it … | |
Hi... I am trying to write a string class...this part is supposed to concatenate two strings, but I am having trouble with constructors/destructors.:rolleyes: Please explain the exact sequence of calls and the correct way to code.:?: [code] #include <iostream> #include <cstring> #include <conio.h> using namespace std; class STRING { char … | |
Hello everyone: How to correct this javascript UNDER Mozilla Firefox?Or is there some fungible ways?I need your help,thx! => var divColl = document.all.tags("DIV"); | |
Hi all. I can't get this to compile; [code] #include <iostream> #include <string> using namespace std; int main () { int number; string response; for (number=5; response!='Y';) { cout <<number <<endl; cout <<"Had Enough (Y/N)?"; cin>>response; } cin.get (); cin.get (); return 0; } [/code] when i try to compile … | |
[code] # I have a problem in building class Tree (Binary Search) # function DelNode(self, Key) is not exactly # I Need Help, Please building class Tree (Binary Search) # Is there any different definition of class Tree from string import split class Node: def __init__(self): self.Key = None self.pLeft … | |
Hi all Any help would be much appreciated. Im following the about.com tutorial, and one of the exercises says i should make this program; [code] #include <iostream> #include <string> using namespace std; int main () { string name; int ID; cout<<"enter your name\n"; cin>> name; cout<<"enter your id\n"; cin>> ID; … | |
Hi All I Want To Create Semi Transparent Forms I Had done work on Transparent forms but i need semi transparent form which we can see background text/image through this form in vb please send me the solution for this | |
Hi I used an variable int i; in a faunction block as it is in a code below. [code] #includes.... int i; int function() { while(charbuff[i]!=' ') { ofstream stream("file.lng", ios::app) stream << charbuff[i]; i++; stream.close(); } return 0; } main() { ........... some code function(); /*call function */ cout … | |
I start Python Programming Language in these days, when i was trying to understand them i come across to these problems so i will be so happy if you help me in : 1) [code] >>> # Integer division returns the floor: ... 7/3 2 >>> 7/-3 -3 [/code] I … | |
Hi, Is there a way to set a mask on the standard ASP.NET TextBox Web control? For example, I need to mask the input and display of a telephone number "###-###-####". Thanks, Mike | |
Hi, I'm creating a page that has an ASP button that should delete a row of data from an SQL database. I want a javascript confirm window to appear to make sure the user [I]really [/I]wants to delete the information. I can set the button's OnClientClick property to "javascript:confirm('Are you … | |
This is what I have to do [COLOR=black][COLOR=black][COLOR=black]We will initialize the tree by hard coding the values illustrated below. You will need to write, test and execute a driver program that will use the complete binary tree implementation. [/COLOR][/COLOR][/COLOR] [COLOR=black][COLOR=black][COLOR=black]// this will initialize the tree node values treenodes[0]=5; treenodes[1]=10; treenodes[2]=2; … | |
Hi Everyone here ; I am starting C and wanna you start C lessons here , so we (we new starters) can learn good and can discuss about some important points here.. It will so Nice and i hope our friends whom they know better this language start lessons here. | |
Hi, I have a GridView that displays data from a MS SQL database (duh!). I know the GridView allows you to have a command column with such functions as Edit, Update, Delete, etc., which I wish to use. The problem is that I only want these functions to be available … | |
Hey All, I am new at AJAX. I would like to make expandable popup window. So that when i do mouseover event it will expand and viceversa. But i dont know how to do it. I have one exmple to show you all so that u can get better idea … | |
lets say i have a file named test.html and i want to store all the text of this file into a variable named $email. how would i do that and be able to change few things in text with string replace command. I am just trying to make html email … | |
Hi, I'm want to use a ComboBox in my application and i want it to execute some code after I'll press enter in it. It's exactly like if you'll write an address into Internet Explorer and press enter. There must be some really simple solution, but I can't find that … | |
I'm getting error C2109: subscript requires array or pointer type [code]// CPP btree.cpp : Defines the entry point for the console application. // #include "stdafx.h" class TreeNode { public: TreeNode(string str): data(str), left(NULL), right(NULL) {} // Constructor. Make a node containing str. string data; // The data in this node. … | |
this is all that is given: [code] char word[10]; addS("fasten", word); cout << endl << word << endl; // will output fastens [/code] for a program that must make a word plural (add an s) here is my code, which compiles but gives a peculiar "segmentation fault" that I haven't … | |
The program runs but it doesn't calculate the average MPG correctly. It is calculating something, instead of zeroing out like earlier, but it sure isn't MPG! :mad: Any suggestions??? | |
plz look at this code and tell me where I'm going wrong. I can't use another array to reverse the string. [code] const int MAX_SIZE = 15; // Max word size of word, allow for '\0' void reverse(char word[]); // function prototype int main() { char word[MAX_SIZE]; cout << endl … | |
Hi, I want to edit the sql server regestration. I want to change the Connection property from Windows authentication to Sql server authentication. But when I edit the sql server authentication with sa username and password, it gives error message saying that the [B]registration has failed for user sa, not … | |
Hi friends, Its my first experience to this forum. can any one help me in reading a csv file into an array and then parse each word seperated by commas. I have csv file which contains rows and columns of record. and i have to read the file into an … | |
Hi there, My niece often asks me to quiz her on her times tables, so I thought I'd spare myself any further effort and write a program to ask her random multiplication questions. I used Tkinter to create a GUI with a label asking the question, an entry box for … |
The End.