64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Daan

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 …

Member Avatar for Daan
0
169
Member Avatar for lostpenan

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 …

Member Avatar for lostpenan
0
2K
Member Avatar for tefflox

here is the code, which is meant to output a string of about 50 characters made of &mdash; and &nbsp;, 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 => …

Member Avatar for tefflox
0
100
Member Avatar for djkross

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 …

Member Avatar for djkross
0
76
Member Avatar for Seba Sama

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 …

Member Avatar for Seba Sama
0
468
Member Avatar for sciocosmist

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 …

0
70
Member Avatar for nwiner

[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++ << " - …

Member Avatar for nwiner
0
108
Member Avatar for abayden

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 …

Member Avatar for bumsfeld
0
133
Member Avatar for krayJ

[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 …

Member Avatar for dilip.mathews
0
102
Member Avatar for chepps

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 …

Member Avatar for chepps
0
69
Member Avatar for lover99509

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 …

Member Avatar for Comatose
0
169
Member Avatar for srired

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 …

Member Avatar for bumsfeld
0
93
Member Avatar for giles

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 …

Member Avatar for Covinus
0
363
Member Avatar for raeyshe

[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 …

Member Avatar for raeyshe
0
116
Member Avatar for MckeMowse

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 …

Member Avatar for Comatose
0
114
Member Avatar for hiphoprules

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 …

Member Avatar for Dave Sinkula
0
157
Member Avatar for hiphoprules

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 …

Member Avatar for hiphoprules
0
127
Member Avatar for MattEvans

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 …

Member Avatar for Lord Soth
0
550
Member Avatar for INI

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 …

Member Avatar for INI
0
178
Member Avatar for rdubey_jsr

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); …

Member Avatar for rdubey_jsr
0
169
Member Avatar for Visslan
Member Avatar for djkross

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 …

Member Avatar for djkross
0
250
Member Avatar for dilip.mathews

[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, …

Member Avatar for dilip.mathews
0
268
Member Avatar for a1eio

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 …

Member Avatar for metabo_man
0
345
Member Avatar for j1979c

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 …

Member Avatar for j1979c
0
167
Member Avatar for Code.Red

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 …

0
762
Member Avatar for DarkAlex

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 …

Member Avatar for DarkAlex
0
126
Member Avatar for vicky_dev

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 …

Member Avatar for WolfPack
0
405
Member Avatar for nihao

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");

Member Avatar for nihao
0
172
Member Avatar for Simon268

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 …

Member Avatar for Simon268
0
185
Member Avatar for jimmypk

[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 …

Member Avatar for G-Do
0
140
Member Avatar for Simon268

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; …

Member Avatar for Simon268
0
156
Member Avatar for maheshsayani

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

Member Avatar for maheshsayani
0
123
Member Avatar for slacke

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 …

Member Avatar for slacke
0
168
Member Avatar for jamshid

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 …

Member Avatar for jamshid
0
105
Member Avatar for mikefitz

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

Member Avatar for mikefitz
0
123
Member Avatar for ChimpusDupus

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 …

Member Avatar for ChimpusDupus
0
180
Member Avatar for schmidty169

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; …

Member Avatar for schmidty169
0
553
Member Avatar for jamshid

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.

Member Avatar for ~s.o.s~
0
254
Member Avatar for ChimpusDupus

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 …

Member Avatar for ChimpusDupus
0
91
Member Avatar for kshama002

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 …

0
82
Member Avatar for ashneet

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 …

Member Avatar for ashneet
0
228
Member Avatar for Stivi

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 …

0
85
Member Avatar for schmidty169

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. …

Member Avatar for schmidty169
0
173
Member Avatar for tefflox

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 …

Member Avatar for Eddy Dean
0
151
Member Avatar for Iamnew2java

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???

0
85
Member Avatar for tefflox

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 …

Member Avatar for tefflox
0
91
Member Avatar for Yashwanth G

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 …

0
75
Member Avatar for rdubey_jsr

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 …

Member Avatar for rdubey_jsr
0
4K
Member Avatar for Jayzilla

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 …

Member Avatar for bumsfeld
0
131

The End.