199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for TrustyTony

Lookup table is usually the fastest method to find function value, if number of values is small. Here we demonstrate the principle by using task of showing the value of byte as binary string or transforming binary string to byte binary value.

0
492
Member Avatar for m4ster_r0shi

I have two code snippets that involve recursive manipulation of std::strings. [B]code snippet 1[/B] [CODE]#include <iostream> #include <string> void print_stuff(int min_n, int max_n) { struct local { static void build_stuff( int min_n, int max_n, int cur_n, int cur_c, int max_c, bool inc, std::string & ret) { if (cur_c == max_c) …

Member Avatar for m4ster_r0shi
0
247
Member Avatar for himmat.m4

Hi, I want do pagination per page show only 25 records. Here is fetching data is too large and there I can't use rownum for that. in fetching data there is no any unique column. so tell me how can do it? Thnaks in advance.

Member Avatar for hfx642
0
71
Member Avatar for zachmandude32

Compiler: gcc and/or g++ Linux: Mac OS X 10.6.7 curlpp version: 0.7.3 -Hi I am having trouble compiling my cpp program, I am just trying to do an example from the curlpp website [URL="http://tinyurl.com/3auvcjo"]http://tinyurl.com/3auvcjo[/URL] . I am using that code exactly. Also I've tried to search online to see what …

Member Avatar for zachmandude32
0
1K
Member Avatar for weezy101

i have a problem with my python class. it contains a method that goes through all the keys of a multi_dimensional dictionary. The dictionary keys may be in the following order (1->(2,3),2->(5,6)). the problem is when the method attempts to get the keys, sometimes it gets them in the right …

Member Avatar for woooee
0
185
Member Avatar for Akay2

Here is my script for defining the position in C# (with XNA) [CODE] public void PositionDefinierer(int v) { positionCheck = true; if (v == 1) { v *= 0; positionCheck = false; } else { if (v < 11) { v *= 50; } else { if (v < 21) …

Member Avatar for skatamatic
0
160
Member Avatar for de Source

Hi, i have 2 buttons btn1 and btn2 when i click btn1 it creates an array of buttons Now i want to call those buttons when i click btn2 its bit complicated project (for me) i cant explain it i just want to add "if" check in btn2 to check …

Member Avatar for de Source
0
122
Member Avatar for paarade

I don't program in PHP so looking at similar code and hacking it has not worked well. Perhaps someone here can help me get started. I'm a genealogist and would like a simple script to determine when someone was born based on their age on a particular date. For example, …

Member Avatar for diafol
0
136
Member Avatar for kandarpa

Hi, I am allocating memory using [B]malloc()[/B] and then I am filling the aloocated memory with "0" using [B]memset()[/B]. The combination of [B]malloc()[/B] and [B]memset()[/B] are being called many times in my project. After adding memset() function affecting my project's performance. So I am searching for the alternative for the …

Member Avatar for N1GHTS
0
3K
Member Avatar for syeda amna

hi is there any difference between servlet and HTTP server. I want to develop client server model (two tier) please help. how to do it?

Member Avatar for syeda amna
0
209
Member Avatar for Thisisnotanid

Hi everyone. I've decided to learn C++ and have come to the inescapable step of having to choose my development environment. I have a short list of IDE's I'm considering but, since I'm new to C++ and programming in general, I'm confused as to which I should pick. I've taken …

Member Avatar for Moschops
0
238
Member Avatar for AW8Dragon

Hello everyone, this is my very first post in this webpage so here we go. I've got this problem with my hw assignment, it's almost finished except for one part. The hw is as follows: - Create an address book, creating 4 text files in the computer memory. Each text …

Member Avatar for AW8Dragon
0
408
Member Avatar for Vidgie65

These are the last few errors in my code that I am having issues with. Please provide some direction or thought as to what to do to fix it. generator.cpp(11) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int generator.cpp(11) : error C4430: missing …

Member Avatar for mike_2000_17
0
383
Member Avatar for stupid guy

hi all..i am new to this sql thing..i am tryin to install it on win xp .but after i enter current and new password and then press execute button , the installer stops responding before starting the service .the two operation 1.)prepare configuration and 2.)write configuration file are done..after that …

Member Avatar for iamthwee
0
132
Member Avatar for didi00

Hi everyone. So I'm trying to make a thumbnails for the products from my shopping cart. A script wa suggested to me which is this: [url]http://shiftingpixel.com/2008/03/03/smart-image-resizer/[/url] Which looks simple and nice. The problem is this: When I merge the script and my code together I get this (the file is …

Member Avatar for didi00
0
522
Member Avatar for Graycode

Hi! I'm not sure if there's something i'm missing... I want to implement the Wordpress Gallery Plugin into my site. I want it to be present just after the navigation (which would be stuck to the top if the browser window almost as if it were in header). I'm sure …

Member Avatar for Graycode
0
145
Member Avatar for yuvalm2

Is there any good way to share a given directory over the network? Or at least, if the directory is already being shared, is there any way for me to get its network path? (Something like [code]\\190.10.10.1\my_shared_dir\[/code])

Member Avatar for richieking
0
120
Member Avatar for jayz93

I'm still new to Microsoft Access so I don't have a great understanding of its workings but have spent the past couple of months working on a project to manage the company's telphone bills. I'm essentially compiling the usage from every company phone each month into a final table by …

Member Avatar for BitBlt
0
547
Member Avatar for xpartmgr

I am new to C++ and have a question about include files. I have some classes that I want to share between the main and other classes also. So I include the reference in my main and also in my class. However, this causes a compiler error. If I comment …

Member Avatar for xpartmgr
0
164
Member Avatar for trivax

hey there.. i m a begineer in this java.. i m developing a simple database program to keep records of patients for a small organization in netbeans 7.0 beta. i havn't developed the whole software.. when i test, it doesn't gives errors at first.. when i press the add record …

Member Avatar for trivax
0
150
Member Avatar for programmer12

Hi all, I have just created a social site and i was wondering if there is a way to make notification pop up on the side of screen and fade just like facebook? but in php? Please add links to other website to help me get on the right path. …

Member Avatar for diafol
0
547
Member Avatar for emmaand

Hello, I am a total beginner at c++ I am writing a console program and I am wondering how I should do to exit the program, like if the user is asked Do you want to continue ( yes/no) and the user enters no then I want the console to …

Member Avatar for murnesty
0
8K
Member Avatar for merse

How to initializing a const set with list of values? I want to initialize in the preambulum, so I dont want to define and initialize an array before initializing the set. I want to do this in one row, if it is possible.

Member Avatar for lcordero
0
2K
Member Avatar for panhwer

Hello dear friends.. I have some confusion in following code. <?php session_start(); $_SESSION["name"]= "abc"; session_destroy(); echo $_SESSION["name"]; ?> as I am assigning value to session variable, after assigning I am destroying whole session but after destroying as I echo $_SESSION["name"] it show value. It is printing value even session has …

Member Avatar for panhwer
0
154
Member Avatar for Beat_Slayer

Well, it bothers me to build menus for every shell application that needs one. So, I've written a module to handle that, like in the good old turbo pascal times. :) Here it is, the module comments are pretty explainatory, I think, and the sample usage if run as script …

Member Avatar for Beat_Slayer
0
3K
Member Avatar for niggz

Hello everyone. I am working on my final project at university for C++, and I got stuck a little. I have an array inside an array. And I want to access that inner array's member and print it with cout. Here is the code: [code=c] void standings(userClub uc){ cout << …

Member Avatar for niggz
0
411
Member Avatar for ginnntux

Hello everybody, I'm new here and in C# and I'm trying to create a nonogram solver, but have some problems with graphics(I can't even find out it with debugger)... When I turn on my nonograms, loading works perfectly, but i see only red cross in main window: [URL="http://www.mypicx.com/06212011/nono/"]http://www.mypicx.com/06212011/nono/[/URL] so i …

Member Avatar for ddanbe
0
190
Member Avatar for stbuchok

Does anyone have a good tutorial on how to capture video and images from a webcam in WPF. All the ones I've come across give code but little explanation as to what they are doing. Something that is step by step would be nice. The funny thing is that in …

0
142
Member Avatar for naffan

Hi all, I'm just finishing the code part of an assignment I think I have everything working as intended with the exception that After either the prime number or stamp duty methods complete (A & B options) they don't "flush" the char choice (under the getChoice method ) The vowel …

Member Avatar for JamesCherrill
0
5K
Member Avatar for mojgan_2019

How can i write my data from EditBox to SQL Table whit using ADODataSet,ADOTable and DataSource? Please help me? and write Example Code...

Member Avatar for slices
0
177
Member Avatar for vedro-compota

Hi guys! please tell me - where is error here - [ICODE]select `OWNER.OWNER_ID`, `Previous_owner.GDATE` from `Previous_owner` left join `OWNER` on `Previous_owner.OWNER_ID`=`OWNER.OWNER_ID` left join `AVTO` on `Previous_owner.OWNER_ID`=`AVTO.OWNER_ID` where `AVTO.AVTO_ID` = 3[/ICODE] phpmyadmin shows error - [QUOTE]#1054 - Unknown column 'OWNER.OWNER_ID' in 'field list' [/QUOTE] the db structire is = [CODE]create table …

Member Avatar for vedro-compota
0
133
Member Avatar for techie1991

I was looking around the time module. The time.sleep(no_of_seconds) sleeps the program for no_of_seconds seconds. I don't think this is busy wait. It must be scheduling the process at a later time. Just curious of how this is working.! :)

Member Avatar for techie1991
0
2K
Member Avatar for zhealz12

guys please help me ./.... what is the meaning of scanner and what is the uses of import java.util.scanner? need some help......

Member Avatar for NormR1
0
121
Member Avatar for wiredtoawall

I would like to know how would I write a piece of code to search a database based on a keyword entered? I haven't started yet but I don't even know the syntax for writing such a program/subprogram plz help

Member Avatar for slices
0
382
Member Avatar for anjoz

I need to make a recycle bin code using bash my problem is that i dont know how to get the previous path of the files that ive deleted so when i restore it it will go to the directory that it was deleted from ive tried putting the paths …

Member Avatar for JeoSaurus
0
364
Member Avatar for kordellas

SQL is my "weak" part, however I can handle it. I was wondering if there are alternative ways of writing my queries below. Any alternative is welcome, it's a way to learn more. I have the expected/correct results on all of them. **Shows which shops have the product code 1234 …

Member Avatar for smantscheff
0
334
Member Avatar for kgizo

Hello I've got a problem whereby I need to block access to my survey, I do not want a situation where a user can access the survey by just entering the URL of the survey, the survey has been integrated with mediawiki. Thanks in advance kgizo

Member Avatar for almostbob
0
337
Member Avatar for tatarao25

hi every one my problem is is to convert id column values as comma separated ex: id 1 2 3 4 5 6 i want result set as string "1,2,3,4,5,6,7....."

Member Avatar for tatarao25
0
123
Member Avatar for aiwasen

Hi!I'm new in java so I really need your help. The problem is how do I return a value if I made another choices again and again.. here's the expected output: Enter size of class: Choose Action: [1]Enter a Student [2]Enter list of student [3]Exit Enter choice[1-3] I created some …

Member Avatar for peter_budo
0
163
Member Avatar for rusty813

I have a problem with my links getting added a extra subdirectory found to it when that link doesnt even exist I have tried everything possible, such as ../ to specifying to exact folder location within the links Here what are the correct links are: [url]http://localhost/xampp/website/newsletter.php[/url] [url]http://localhost/xampp/website/admin/login.php[/url] When I click …

Member Avatar for almostbob
0
171
Member Avatar for ZER09

[ICODE] mysqldump -u root -p pass**** coke_pos > testbc.sql [/ICODE] i tried this command to generate back-up of my database but i got an error about, eroor in my syntax i have mysql 5.5.11 community server and i am using mysql workbench 5.2, i am using windows 7 please help …

Member Avatar for smantscheff
0
168
Member Avatar for rakibtg

hello, i am trying to add a feature in my contact form that create a link with visitors submitted 'TITLE' and 'URL'. Have a look at this code! ***In this code [B]$attn = Visitors submitted URL[/B] and [B]$visitor = Visitors submitted title[/B]. [CODE]$todayis = date("l, F j, Y, g:i a") …

Member Avatar for rakibtg
0
193
Member Avatar for chandaboy

Hi, all Any thoughts on why this code runs slow on device but fast on simulator in iphone, I am making a game in cocos2d, and I am moving an object from one place to another , throught CCTouchBegan , CCTouchMoved, CCTouchEneded (ccp function) and after that I take the …

Member Avatar for jwenting
0
150
Member Avatar for abhi10kumar

I want to write rewrite rule for page url that have no .php extension.. for example [B][url]http://www.3gphone.in/brands.php[/url][/B] into [B][url]http://www.3gphone.in/brands[/url][/B] Here is my code, but it is not working.. [CODE] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^([^/]+)/$ $1.php [/CODE]

Member Avatar for abhi10kumar
0
112
Member Avatar for thijscream

Hi, i'm having the following problem. i have a list of products and each product has different items attached to them for example(it's all about wines) [CODE]id prodid text bedrag 35 1 1 fles kist Prosecco Tallero 14,95 36 1 2 fles kist Prosecco Tallero 26,95 1 10 1x Fles …

Member Avatar for smantscheff
0
197
Member Avatar for vuyiswamb

Every time i am about to post a thread i get an answer while typing the message, maybe i explain it to myself better when i write it , OK so if you have seen this post it means i have not find an answer :) I have a Silverlight …

Member Avatar for Ramesh S
0
346
Member Avatar for apanimesh061

I want to know what types of useful softwares can be made by using ASP.net/C# ? I have Software Engineering and Web Development as my subjects ...... What type of softwares can I design for a project ? Currently I was working of a ChatRoom application !!!! Please help !

Member Avatar for Sarama2030
0
262
Member Avatar for Celtrix

command line/terminal arguments are driving me bananas according to most of my google searchs this should work by the way i am using g++/gcc version 4.6.0 [CODE] #include <iostream> #include <string> using namespace std; int main(int argc, char **argv){ if(argc==0){ cout<<"Use -l or -ls!\n"; } if(string(argv[1])== "-l"){ //code for lua …

Member Avatar for Celtrix
0
174
Member Avatar for Chair

Hi, Is there a way to "clear a previous loop and form a fresh new loop"? I'm paging my datagrid. Upon form_load, it shows all records in batches of for example 10, which I can set in a textbox. If for example I have 60 records, then my loop code …

Member Avatar for Chair
0
242
Member Avatar for saadi06

Hi, I am having problem with applying ajax on IE.I am applying innerHtml on select tag but it is not working my ajax code is [CODE]function AjaxF(ftype,cid) { var httpxml; try { // Firefox, Opera 8.0+, Safari httpxml=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { httpxml=new ActiveXObject("Msxml2.XMLHTTP"); …

Member Avatar for Airshow
0
487

The End.