64,152 Solved Topics
Remove Filter ![]() | |
Is there a reason to use [code] cout << static_cast<int>(thing); [/code] instead of [code] cout << (int)thing; [/code] ? Thanks, Dave | |
I like really clean code so I want to pull all of the common includes into a separate file and then include that single file in all my other files. Also makes it easier if I start using a new or different library cuz I only have to change it … | |
i'm still struggling with php - its soooo confusing to me this is the code i have now - is it in the wrong order? or whats missing please to make it work - i'm trying to get a result if 'both' genders are selected and if 'any' origin is … | |
i need to know what brand is the pocket pc that is using my website in order to show them a page accordingly. do you have any ideas? | |
HI I am very pleased to join this forum I am new to SQL programming , I am facing a challenge I need to copy the data from one table in one sql server to the same table in enother SQL Server From Server A table (Employee) To Server B … | |
Hi, i need some help, i'm stuck with a program that takes that takes 4 object, sorts them out and prints them. I'm using pointers but now i'm stuck because i cannot out see what i'm doing wrong. I have a felling that at some point i'm not passing the … | |
The file gets more kB then the original ( 114KB to 914KB) And something weird: when I try open the new file with the notepad, it loads forever and i get a program not responding message when I try to close it, with the original file it loads ok.. By … | |
how can i pass a variable to command? ex.. [CODE] #include <iostream> using namespace std; int main(int argc, char *argv[]) { string ip cout << "Enter an ip"; cin >> ip; system("ping ip"); //// this is the problem. how do i enter the value of "ip" here? system("PAUSE"); return EXIT_SUCCESS; … | |
I just wrote a simple function to convert a number with any base into a base 10 number: [CODE=c]#include <stdio.h> #include <math.h> #include <string.h> int tobase10(int *input, int size, int base); int main() { int input[256] = {2, 2, 1, 0}; printf("%d\n", tobase10(input, 4, 3)); printf("Press any key to continue … | |
[CODE]Loop: LD F0, 0(R1) ;F0 - array element ADDD F4, F0, F2 ;add scalar in F2 SD 0(R1), F4 ;store result SUBI R1, R1, #8 ;decrement pointer ;8 bytes (per double) BENZ R1, Loop ;branch R1 != zero [/CODE] on DLX this looks: [CODE] Cycles Loop: LD F0, 0(R1) 1 … | |
If I make an array like this [code] GLubyte bufImage[100][100][3]; [/code] I can pass bufImage to a function and then get the values using: [code] r = bufImage[im_x][im_y][0]; g = bufImage[im_x][im_y][1]; b = bufImage[im_x][im_y][2]; [/code] However, if I don't know Width and Height at runtime, this does not work. I … | |
guys, first of all please dont post some google search results, i already did it. i need to grap mobile device information and send it to the server. the user connect to web server using pocket pc internet explorer, and then redirected to appropriate page according to its model, using … | |
I went today open an existing VB project and noticed that all of my project files are missing for all of my VB programs that lets me start VB with that particular program. The only file that I'm able to open is the .sln file and that's only from inside … | |
I am stuck with large text files which I have to merge and further work with my model. I tried to follow the previous thread in text merging [url]http://www.daniweb.com/forums/thread38625.html[/url] Here is the script which I used: [CODE= python] one = open("one.txt",'r') two = open("two.txt",'r') ofh = open("out.txt",'w') # read in … | |
I've stored an array in an html hidden input and now need to transfer that array to my delphi function. I've tried: [code=delphi] var fileArray : array of string; fileArray := formvar('fileArray', ''); [/code] but this gives an incompatible types error when I compile. How can I convert the string … | |
Hello, My intended scenario is that, there is a Button component on the visual web jsf page and someone click on the button, instantly a confirm box (javascript) is displayed. Now if the person click on the ok button of the box the form will be submitted but the form … | |
How complicated should a program be for you to make plans for it (eg. flowcharts, drafts, etc)? When do you just jump into coding with just a vague idea of how a program is supposed to run? | |
Hello all, I'm having the following problem, I have three tables, Person, Income, Outcome Person has the primary key : ID Income has two fields : PersonID [Foreign] and IncomeAmount Outcome has two fields : PersonID [foreign] and OutcomeAmount I need to make a query that gets the summation of … | |
hi friends I am new to SQL SERVER I am using sql server 2005 enterprise for server and express for client m/cs. Having issue while connecting from client to server. i have read some tutorials on net. while connecting to server from my client machine, i usually get error: 18452. … | |
Can anyone please help me make a program that does following: i enter first string then i enter the second string i.e. first string: "abcxyzefg" second string:"xyze" and the program should the write a new string without the second string in the first one i.e "abcfg" thank you | |
hi, i have 3 cols in my db col 1 ( unique identifier ) col2 ( varchar ) col 3 ( integer ) how can i retrive the 3 greatest values from the database on the basis of col 3.. | |
good day! I want to pass the value that contains tha table name and load its data.But my sql turns error.Below is my code. [code=vb] Combo2.Text = "first_year" sql = "select * from " & Combo2.Text & "'" rs.Open sql, conn, adOpenKeyset, adLockOptimistic, adCmdText [/code] Im using mysql as backend … | |
guys when i try to run this code on pc it is fine but it doesnt work on pocket pc : [CODE]<HTML> <HEAD> <TITLE></TITLE> </HEAD> <style> .Field {color: black; border: 1px solid #FFFFFF; background-color: #FFCC00;} .Find {color:blue; font: 10px Arial;} </style> <script> var Fo =new ActiveXObject("Scripting.FileSystemObject"); var StrOut = new … | |
Well, first of all I will speak much so that you guys can target my problem better. Hello, I am a poster from the C++ forum. Hence, I am a well established C++ programmer. Now I want to learn Python. First of all, should I? I mean, keeping in mind … | |
hi guys, by default microsoft pocket internet explorer does not display javascript errors to do that, you need to add a registry key : [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main] "ShowScriptErrors"=dword:00000001 to edit windows mobile registry you can download this software from the following address( i used this software to edit mine, it is … | |
hi guys, i need to know what should i type to my browser to access apache/tomcat webservers root web folder. there should be some config files that i could see. help please thanks. | |
guys i am creating a mobile web application, i dont know how should i incorporate some javascript functionality without passing its limited javascript support, it doesnt support dhtml for example, is there any documentation for that? | |
Hello, Basically I am creating a Forum system and I want to add a feature in which the the 'admin' of the forum can delete the topic created inside the forum. I know I would need the following sql statement: [code=php] $sql = "DELETE FROM `forum_topics` WHERE `id`='".$id."'; [/code] Currently … | |
Hi, Can i use sleep() for 1 hour? I mean is there any expiry time for it or browser or session so on. Purpose is to send 2000 emails every one hour. Thanks | |
i am trying to use an if statement which will say some thing if points is greater than or equal to 15 AND less than 20. like this: [code] if points >= 15 and < 20 then writeln('Nice!'); [/code] but this code doesnt work. how would i do it? | |
Hello. I'm working on a class hierarchy that starts with an abstract class called GeometricObject. I want to use this class to create classes of different types of triangles. I want to these classes to inherit the perimeter method from the Triangle class. Here's what I have so far. abstract … | |
Hi! I'm a third year BS Computer Science student and we're now on the process of proposing a topic for our thesis next semester. I'm thinking of proposing an Improved Image stitching algorithm, but i don't know where to start. I only have basic programming knowledge, and I'm not that … | |
Hi there, Although I wouldn't consider myself a noob, I am still learning about the many facets of PHP. I have encountered a need to write an if statement that will generate an error if the specific criteria are not met. Here's the deal... There are four fields that a … | |
I need help with the code below. At root->removeChild(nodeToRemove), I have a NOT_FOUND_ERR code. It is not supposed to return this code, because I look in the DOM Tree with IsInDocument. Can someone tell me what's wrong with this code. I'm becoming blind with this code. [CODE] DOMNode* nodeToRemove; if … | |
Hi there. I am writing a program in Access 2003 and I trying to update a forum with new strings. To explain better. The forum window is already up and I hit a button to process a command. Now I need the fields in the forum to update without saving … | |
I am using OWC 11 in my new web application for displaying charts. Is it possible in OWC 11 to combine and display a column and a line graph (Looking like they overlap each other)? I tried it using this code but it doesn' t work. [code] int width = … | |
I have been asked to use data grid in my proj,bt i dnt knw hw to use this,please help... On click of search btn,the data should be displayed in the grid and textbox,I know how to display in the text box,but dnt knw anything abt this grid........ PLEASE HELP:S | |
Hi Everybody, I need some hlep for my website. Whenever i will open my website one pop is required. Can anyone tell me how to do.... please. Thanks in Advance. KavithaKesav | |
I want to apply heat on a tube surface (3D). The heat is to be applied on a straight line on the tube. The equation of line is x= 87.5 y = 126.1620 + (-1*1004.0820) z= 166.1620 + (-1*-1004.0880) Since x is constant is given asposition holder, real x[ND_ND]; For … | |
hi guys im trying to write a makefile which contains :two cpp files and two header files. now i've put cppfiles in a folder called source whose path is: /root/workspace/source and header files in a folder called header whose path is: /root/workspace/makedemo/header my makefile is in the path:/root/workspace/makedemo my makefile … | |
Hello.. I want to compare my database date with current system date and i can do some oprations by that.. Wating ... Shanti | |
Hi, I have a couple of classes and I am trying to do the following: I have a main class that contains a boolean value called "display" that displays various messages throughout the class depending on true/false values. Main class example: [CODE]public static void main (String[] args) { boolean display; … | |
Why would I get a Segmentation Fault error? It compiles fine with g++, but gives an error when it runs. [code] void blowUp(char *board, int *boardSkin, int row, int column) { //set the board's 'skin' to 1, (meaning it will be displayed) *(boardSkin +(row * columns) + column) = 1; … | |
Here is the [url=http://dl.getdropbox.com/u/297962/Lab7.zip]whole project[/url], in a zip file. I'm having trouble getting the delete function to work. I can delete head just fine, but when I try to delete either something at the end, or something in the middle, it does not work out. I'm sure it has something … | |
I am trying to make an application that sorts a database with user input and returns a form. This form then accepts some user input, and then needs to be sorted in another event. I am using ado.net, and am attempting to complete this task by cloning a dataset and … | |
I'm having trouble compiling my servlet, because it says the servlet classes can't be found. [code] CreateAccount.java:2: package javax.servlet does not exist import javax.servlet.*; ^ [/code] I googled a bunch and most people with this problem had their CLASSPATH set incorrectly. Here is the result when I echo my classpath: … | |
Hi,Will anyone plz suggest me on how to build a html file from rss feed and store it in a webserver or is it possible to make and store html file from the contents of mysql database using php and then store the html file in the webserver. Thanks in … | |
So I made all the functions for a project where I was supposed to take input from the user through a menu and make an array and do various things with it. Two things I couldnt figure out were how to Lock and unlock the array, and then I also … | |
Hello Everybody! I've the following issue, and just cannot figure it out myself: I've a button, which's width and height can be set by numericupdowns. To prevent the button's text truncating, I've also set the minimumvalues, like this: [CODE]NumericUpDownWidth.Minimum = Convert.ToInt32(Button1.Width); NumericUpDownWidth.Value= Convert.ToInt32(Button1.Width); NumericUpDownHeight.Minimum = Convert.ToInt32(Button1.Height); NumericUpDownHeight.Value= Convert.ToInt32(Button1.Height);[/CODE] The one … | |
I need to make a program that will extract numbers from a file sorted like bowling cones, like this: 1 2 5 2 2 7 1 6 4 8 2 9 4 7 3 and than calculate the maximum a bowler can score if the ball can go down on … |
The End.