199,114 Archived Topics
Remove Filter ![]() | |
hi all could any 1 help me out. im trying to find the biggest id number in a db. the problem is that the "ID" column is saved as "TEXT"(its important to me). the language im using is PHP. 10x! tried to use this but it didnt work $resultt = … | |
Good day to everyone. Im just able to finish my banking system with QB SDK integration. I just want to ask help, idea or any other way to make a mathematical operation in a single textbox.Like you can perform to add two numbers in a single textbox and display the … | |
The following code snippet can be used to convert a decimal integer into any base from 2-16. This is a simple piece of code and I hope t proves useful to people. I see many people posting Decimal to Hex. or Decimal to binary, non any better than the next. … | |
[CODE=cpp]struct Table { char* aTag; char* bTag; }; int main() { Table T1; cout<<T1.aTag; cout<<T1.bTag; return 0; }[/CODE] This might be crazy but... i really need to know is there any way to so that we can only write [CODE=cpp]cout<<aTag cout<<bTag [/CODE]instead of [ICODE]T1.aTag[/ICODE] like we do in [ICODE]namespace [/ICODE] … | |
Hello I'm doing my OS homework and I need to know how to read an write a 32 bit integer with the write system call Here is the code that I wrote: [code] #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include<unistd.h> #include<string.h> struct Person { char name[21]; int ch_in_name; char address[21]; … | |
Hello again. Thanks to all that contributed positively to my first thread. it went a long way. Now, i am here again. can someone please help me out in the case of vectors.i.e. [#include<vector>]? Please do not be angry at me for posting such oversimple questions,i am a dumb beginner … | |
Hello! Well, I need an alternative to be able to delete files not accessed for more than 5 minutes. I already know how to do this using the system programs, but wanted something done in C++ once, to avoid bottlenecks. Is there any way to do this? (if not understand, … | |
I'm trying to learn C++ on my own so I figured I'd try to write a program for my data communications class. We were learning about hamming codes and I want to try to make a program that will let me do it automatically instead of on paper. I'd take … | |
I am trying to reference a 2d dynamic array which i used pointer to pointers to declare. the constructors run without a problem but as soon as i run another function or an overloaded operator i get errors. Its almost like i am referencing the array in the pointers incorrectly. … | |
Hey, So I am trying to get several numbers (below ) to be stored in various variables. Could you look at my code and tell me what I am messing up? (trying to emulate an example from class that I missed, stupid swine flu...)) the numbers (yes there is a … | |
I have a file that consists of dates like this: 12/[B]01/[/B]2008 12/[B]02[/B]/2008 12/[B]03[/B]/2008 12/[B]04[/B]/2008 12/[B]05[/B]/2008 Now if I will read this file from beginning to end, this is a solution: [code] String^ FilePath = "C:\\DateFile.txt"; String^ GetLine = ""; StreamReader^ Read = gcnew StreamReader(FilePath); while(Read->Peek() >= 0 ) { GetLine … | |
[URL="http://www.daniweb.com/forums/misc-explaincode.html?TB_iframe=true&height=400&width=680"]Code View[/URL] In the linked page u can see that source code is properly formated, how to do that?? I am making my web, i want to know that how can i show the c++ source code on my web with proper format. Q: How to show a formated source … | |
Hi, I'm trying to confirm a Delete action that will remove data from a database. The code is pure php, no jscript etc as I want everything to be server side. My php file shows a form with the current data found for a venue with 1 or more 'rooms' … | |
Hi guys, So today I am trying to do something that is probably quite simple. But my head is all over the place and I can barely think straight! Something which is not good for a newb! I'm trying to display some text files on the web. These text files … | |
01 Why i am not able to do this [CODE]int* px; px = new int[2][2]; [/CODE] other the [ICODE]px = new int[2*2];[/ICODE] is there any other method 02 Why i am not able do access through pointer dx by [ICODE]dx[1][2][/ICODE] other than by using [ICODE]dx[1*7+2][/ICODE] [CODE=cpp] static float mat[5][7] = … | |
Hi, I'm trying to implement my own allocator using malloc and free. One thing what interests me is that in declaration of deallocate in addition to pointer we have also parameter size which suppose to be size of elements allocated with allocate but having implemented my deallocate as this: [code=c++] … | |
Hi, <--- Newbie I am trying to install the Boost libraries, specifically the Boost filesystem library. Many of the libraries are header-files only. No building. The Filesystem library requires me to build binaries... A new challenge, but I was able to pull it off. However, the binaries are located in … | |
Hi , I recently read this on another forum... [Quote] C/C++ are still standards for writing fast, standalone software, so you'll be wanting to work your way there. [/Quote] If I want to develop an application that has many "if statements" and many "loops" , that executes only on the … | |
Hello. I'm having a hard time finding which block of code in this program is [B]"insert in the middle"[/B] for Link List, so I can study it. Can someone point out where it is in the program and if insert head code below is included in insert middle. Much appreciate … | |
Hi All! I have a doubt about returning reference. I'll show you an example: [CODE] Vector &MakeVector() { Vector *result = new Vector<Dim>(); /*some more code*/ return *result; } [/CODE] now I can call the function MakeVector to assign it result in this two ways: [CODE] Vector v = MakeVector(); … | |
Hi,I want to convert String^ to Int array or a char array.I am reading numbers from a file in GUI but the StreamReader Reads the Text in a String.I need to convert them to use the numbers. I have tried ToCharArray() function but it doesnt work! this function gives the … | |
Anyone could help this? I am using a MSVC++ compiler.. Thanks a lot.. | |
can s/o plz give a simple example of how recursion can be used in programming....im new to this topic so i need help i cant develop new codes myself. | |
in my college i have been asked to locate a free ftp server on the local network using softwares like ws_ftp ,cuteFTP.I have downloaded ws_ftp but it is asking for server address. I may not have access to internet in college. How do i go about it? i have created … | |
Hai there, I have doing php code for form data to be send to email. But it is showing... [QUOTE]Your message could not be sent at this time. Please try again. [/QUOTE] Here is my code for html form... [CODE] <body> <div id="emailform"> <form action="email-thankyou.php" method="post" name="contactForm" onsubmit="return validateForm(this);"> <p><strong>Name:</strong> … | |
is there a way to convert a java.util.Date to format dd/mm/yyyy HH:mm:ss ? | |
This program kinda works, but I have one problem. I setup this program to display a message when someone enters a negative number, but I how do I set the count back to zero. Even though mesage prompts the user that a negative number is invalid, it still calculates the … | |
I'm trying to use an if conditional inside the skin file for my ipbpro arcade mode. The problem is when I edit and reupload, I get a blank page due to the code I'm using but I'm not sure where I'm messing up. In a regular vb template it looks … | |
help. i finally put together a script to upload only .png IMAGE files that are under a certain filesize. BUT. is there any way i can only upload the image if its dimensions are exactly 55x55? heres what i have so far: (i want it always be named avi.png so … | |
Is there good open source solution allowing to use shared memory between C/C++ and Java | |
I want to add one row by default that contains textboxes & checkbox. How to add it. See pic As Attachmnet. | |
...Can anybody knows how can I put a table on what type of Package type (overnight and two day package) in my program.. Since I have been troubled on how I would like to display my added data to an array and if I have choose a certain package type … | |
i want to search from the following table attached in zip file, my query is select * from tbl_property where acco_id='1' and count_id='1' and holi_id='1' order by add_date desc but there is a problem, i have various value in holi_id , i want to search , means want to match … | |
I need result which shows all the dates which expire after or within 90 days form now on(current date) but this query also shows results which already expire like it shows 27 sep 2009 which is before current date. I need only those which are expiring from today and with … | |
I added a bachground color to a jpanel using [B]panel.setBackGround(Color.GRAY);[/B] I want to add some color like "[B]light blue[/B]." which do not have in the color list. how can I do. (2) how to add backgroud picture to jpanel???? (tried using [B]setBackGround[/B] but failed!!!) thankx in advance.... | |
I am suppose to be making a program which inputs an employees name(first and last) and their quarterly sales. I am then suppose to output a table of all the employees and the quarterly sales, as well as their total sales. I am suppose to create an array of objects … | |
I have created an asp.net web project and deployed it in my pc with the virtual directory set to websetup1. How should i access my website? When i type my ip add in the browser, it will display my router configuration page instead. Should i include virtual directory in my … | |
I am using textpad to create my java programs because I had a problem with downloading java and setting the path in order to use it with notepad. Can someone tell me what this error mean? I don't know if it has something to do with the fact that I … | |
If any one have a script which can grab the yahoo,hotmail and gmail address book,i will appreciate to have it or Any suggestion on how to make me succeed in this. I wantto enable member in my site to import their address book directly from the site. Thankx. | |
Hi, I have inserted time in Database using CURRENT_TIME() and Data type is Time. Now I want to show the Time in AM and PM format. Please guide me. Thanks in advance.... | |
I wrote the below code and when I try to compile it I get the following error: error C2109: subscript requires array or pointer type. Can anyone tell me what I did wrong and how I can fix it? Thanks a lot! :) [CODE] // This program writes the bombsweeper … | |
Hi, Is there any way of storing some variables, say username for a particular session in ASP.NET. E.g, If we let a user login in a page, then I want him to stay logged in for all the pages he traverses on the server. Currently, I am trying Server.Transfer and … | |
this is a c++ program for the simulation of gillians island i did. im a newbie in programming looking to improve on my skills. Can some assist me on how to break this code into functions. please dont rewrite the code i need just a sampler from code i can … | |
Hi there, I am trying to delete XML nodes using PHP. Here is a sample of my xml file. [code] <users> <user> <fullname>PC1</fullname> <flooor>4</floor </user> <user> <fullname>PC2</fullname> <flooor>3</floor </user> </users> [/code] Here is my code so far: [CODE] <?php $users = new DOMDocument(); $users->load("officedata.xml"); $suser = simplexml_load_file("officedata.xml"); $count = 0; … | |
Alright, so the assignment which im sure you guys have seen around alot is to do a powerball type program, 1-55 for the first 5 numbers then the 6th 1-42. I set up the program, i get my random numbers. but the teacher wants you to assign a single variable … | |
Hi, I am developing a Lease Management System, and I need to upload multiple files in a folder. and I want to name the folder where I want to upload in DB. Here is a code for upload a single file. first file is sendfile.php [CODE=php]<!-- The data encoding type, … | |
Thanks to the help I recieved earlier, I figured out how to make my other header file and my other .cpp file!! So thank you for that. I am now trying to compile all of my files together, and am getting quite a few linker errors, even though the functions … | |
Hey, im looking for a good C++ IDE on Linux. Wanted features: Integrated debugger support Code formatting Syntax highlighting etc.. I hate code folding and that auto-bracket thing Preferably one thats fast. I tried Eclipse CDT but it crashed all the time and i didn't like it. I get on … | |
Ok so I have a web app that needs to a large file (up to 100mb) and then do some server side conversions. I have built a model that works locally, but now that I'm trying it on my vps its taking an insanely large amount of time and not … | |
hello there, I have a bit of trouble figuring out how to finish a code for an assignment. I'm supposed to write a class that can generate a sequence of psudorandom integers using the linear congruence method. The trick of it is that the number generated will become the new … |
The End.