199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Slammer

Hi there. I need to write a recursive DFS function for graph which is implemented as follows: [CODE=c] struct nodes_arr { unsigned int position[50000]; unsigned int amount[50000]; node *next[50000]; } nodes_table[] = {0};[/CODE] [CODE=c]struct node { unsigned int position; unsigned int amount; node *next; };[/CODE] as a result i have …

1
113
Member Avatar for cwarn23

Hi and I am making a dll but the dll won't accept pointers due to what it links to. So below is my code and does anybody know how to make a string array without pointers? Also I'm using Visual c++ 2008. [CODE]//#pragma warning(disable:4996) //disable "depreciated function" warnings #include <windows.h> …

Member Avatar for Ancient Dragon
1
205
Member Avatar for spxChrome

I know how to add the items during design time but how do you add the items through code. I want to fill the combo box in the datagrid with the results of an SQL query?

Member Avatar for parkeyparker
1
91
Member Avatar for bonnysammy

Hi! I have a dropdown that is populated by a hashtable. THis part is working fine. But, I have to select an option in this dropdown according to information I get from a SQL Query. It's like this: The field in the table can have 0 - 3 0 First …

Member Avatar for bonnysammy
1
146
Member Avatar for Stevoni

I'm normally a VB.Net/C# guy but because of a third party dll that isn't working in .Net, I'm having to interact with it using C++. I'm able to read and understand (for the most part) C and C++, but I've never actually written any code in it. The third party …

Member Avatar for Ancient Dragon
1
234
Member Avatar for T-Max15

Im working on on this website which basically its a php page with an iframe. The login page is displayed within the iframe and when all deatails are inserted correctly new options will show up on the main page. Now the prob is the after the login i have to …

Member Avatar for diafol
1
161
Member Avatar for defeater_man

i make a program to multiply 2 binarry numbers [CODE] #include <iostream> #include<string> using namespace std; void main() { string y,a; string S1="00000"; cout<<"plz ener two numbers"<<endl; cin>>y; cin>>a; cout << "Sting S1\t\t" << S1 << endl; cout << "S1.size\t\t\t" << S1.size() << endl; int n=a.length(); n=a[4]; if(n[4]==0) { string …

Member Avatar for jonsca
1
152
Member Avatar for madmax007

Hi, I am trying to write some code in order to communicate with a telnet clent from a c++ application. My idea was to open a telnet session with popen and to use the input/output pipes to communicate but it does not seem to work. When I test, the program …

Member Avatar for madmax007
1
1K
Member Avatar for gerard4143

What is going on here. Copy this C code , compile and run. What do you think is going on? Note I don't want the answer, I know what's going on here. This is just something for the rookies to play with... Also this is not the best way to …

Member Avatar for jonsca
1
114
Member Avatar for Hofik

Hello everybody. I have to make "an-OCR-like" programm in C - it gets for example this to stdin: [CODE] *** *** *** * * * * * * * * * * * * * * * * * * * * * *** *** *** * * * * …

Member Avatar for Hofik
1
87
Member Avatar for avirag

HI ALL, i am writing this snippet to working with text files, here i explain the basic functionality of read/write operation on text files.....:) Here each method has a single parameter, the file name you wish to work with.

Member Avatar for jonsca
1
206
Member Avatar for eliile5

hello, and happy new year! i'd like you guys and girls to show me another or similar but a bit different way to write this code, which a simple employe class with 4 different sub-employers types. thanks. this code is not mine, and i need to write somethink like this …

Member Avatar for jonsca
1
205
Member Avatar for Ihatepullups

Hello, this is my first time here, although I have hit this website many times on google looking for quick fixes to my problems. I am a student in high school and I persuaded my teacher to let me study c++ (as opposed to 3ds max). I have been working …

Member Avatar for niyasc
1
109
Member Avatar for Enhancelogic

I just purchased accelerated C++ and I'm working through the examples and I'm at a road block trying to figure out what this line means. I was wondering if someone could explain this to me in a different way? The part of the code I do not understand are bolded. …

Member Avatar for mrnutty
1
308
Member Avatar for chupinette

Hello! What I am trying to do is display a list of categories and another list of brands. [B]CategoryList : class BrandList : class[/B] I am getting only the list of classes displayed. Can anyone tell me what is wrong with my code.. [CODE] <?php $obj = new CategoryList(); if …

Member Avatar for chupinette
1
91
Member Avatar for Androggles

Hey :) I have written this code, but it seems that theres an error in it, that i can't find. When i try to compile it i get this error: Call to undefined function 'sleep' in function main(). I know it has something to do with that sleep function, because …

Member Avatar for Excizted
1
484
Member Avatar for murugavel.b

If you want to restrict the user to go back or forward from the web browser, you can use the below mentioned javascript. Use this javascript in the script tag. It works on all browsers. For further details: [url]http://dotnetbypulikesi.blogspot.com[/url]

1
188
Member Avatar for selvaganapathy

This simple code shows to display the form in different shape. Also using the Gradient Brush to add Look And Feel to your form. Moving the form is also possible. Requirements Just draw a Form (Form1) and add Event handler for Load, MouseDown, MouseMove, Paint and DoubleClick for Form1. Then …

Member Avatar for anoop4real
1
211
Member Avatar for dre-logics

Use visual basic 8.0 Dymo labelwriter 400 Installed Dymo labelwriter 400 Software Development Kit (SDK). My problem is that there is a label is printed, but the mylabel. SetField are not included in the barcode label. The default values are printed. The object name in the label are correct (OText1 …

Member Avatar for dre-logics
1
1K
Member Avatar for sree_ec

I have a general doubt regarding passing pointers to functions... Suppose i have variable [code=c]tc_struct *ptr;[/code] and i want to pass it to a function to fill it. So i passed it [code=c]func(&ptr);[/code] and i received it in func as [code=c]void func(tc_struct** ptr1)[/code] Now again i want to pass this …

Member Avatar for Narue
1
343
Member Avatar for pysdex

I am using VS2005 version of VB.Net programmer. I wanted to use the user input but most people tell me to use console...but I cannot use this function since my version is different, it will not show any results. I found that using mask textbox can use to read the …

Member Avatar for kvprajapati
1
100
Member Avatar for johndoe444

Hi, [CODE] #include <iostream> #include <cstdlib> #include <new> using namespace std; class loc { int longitude, latitude; public: loc() {} loc(int lg, int lt) { longitude = lg; latitude = lt; } void show() { cout << longitude << " "; cout << latitude << "\n"; } }; // Global …

Member Avatar for r.stiltskin
1
166
Member Avatar for vlady

Hi everybody, Again, I try to deal with exercise from a book Think Python version 1.1.19., exercise 9.2. (case study: world play) My contents of the words.txt is: "Ahoj, Toto je moj prvy pokus otvorit a citat subor. Vela stastia " Thing is, if you have a look at a …

Member Avatar for vlady
1
258
Member Avatar for xavier666

I just made a 'Hello World' program [code] #include<stdio.h> int main() { printf("Hello World\n"); return 0; } [/code] [code] exe file size = 15.5 KB Source file size = 79.0 B [/code] Then i made a data structure program (implementing stack, queue, deque) [code] exe file size = 21.9 KB …

Member Avatar for xavier666
1
176
Member Avatar for skinder
Member Avatar for sanch01r
1
105
Member Avatar for moroshko

Hello, This is my first question in this forum :) I'm new in GDI+ and C# programming, though I have an experience in other programming languages. Here is my question: I started a new Windows Form Application project in Visual Studio 2008. Then I double-clicked the Paint event of the …

Member Avatar for moroshko
1
432
Member Avatar for rahul8590

i DO have searched the google to do multithreaded programming using c++ and found there were few like the ones supported in BOOST libraries and zthreads .. I would be glad if u guys could help me in suggesting much better ways in doing so .

Member Avatar for rahul8590
1
766
Member Avatar for prashw

hey all.........i m new here!!!!!! I am at my wits end on this problem.....i would appreciate it if you could give any help..................................................... i managed to compile and run a C++ program that intializes and reads/writes to a serial port . I was using the Dev C++ compiler to write …

Member Avatar for Ivan85
1
8K
Member Avatar for pushpakalpana

[CODE] <?php ob_start(); extract($_REQUEST); extract($_POST); session_start(); $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } $db=mysql_select_db('murali',$con); $message = ''; $error = array(); $select=mysql_query("select * from registration where username='$_REQUEST[username]'"); $taken_usernames=mysql_fetch_array($select); // main submit logic if (@$_REQUEST['action'] == 'register') { $resp = check_username($_REQUEST['username']); if ($resp['ok']) { $message = …

Member Avatar for rony230
1
1K
Member Avatar for vegaseat

This is an update of an earlier version. In this version the string containing the approximated pi value is created directly from the iteration of the generator. This way the program is simplified and can be used with Python2 and Python3 ...

1
595
Member Avatar for ajay.malaotar

new to this forum,my querry is the most basic that anyone could have asked ever here. i am a final year student and am alloted a project to built an ivr system for fault control management of our local college exchange. now i searched a lot on internet to "how …

Member Avatar for vb5prgrmr
1
147
Member Avatar for lss123

Hello- I'm using VB.NET (visual studio) to create a chatbot (a program that mimics a human and has a text converstion with you). Two of my main classes are a word class and a sentence class. The sentence object is basically going to be a linked list of words objects. …

Member Avatar for lss123
1
187
Member Avatar for roswell67

Hello guys, first of all.. am gonna say that i googled and searched the forum alot.. nothing to be found.. So my question is.. 1- Where does my actual manual written code go in C# + GUI (WindowsFormsApplication not the console one.) Does it go in the Program.cs or Form.cs? …

Member Avatar for roswell67
1
139
Member Avatar for Adrhian77

how to create asterik star like this [B][COLOR="Red"]>[/COLOR][/B] with 10 Asterik star (*)

Member Avatar for Nick Evan
1
103
Member Avatar for newsguy

Absolutely no surprise there then: Modern Warfare 2 is the all-format games Christmas Number One according to the ELSPA software charts just published here in the UK. A position, incidentally, it has held for the six weeks, ever since it was released. The Top Ten, in case you are interested, …

1
429
Member Avatar for happygeek

File under FAIL: social network widget maker RockYou has fallen victim to a SQL injection flaw and as a result some 32.6 million users are being urged to change their passwords as a matter of urgency. Security specialists Imperva discovered the problem at social networking development site Rockyou.com and issued …

Member Avatar for Alex_
1
836
Member Avatar for vegaseat

Python uses the Mersenne Twister as the core random generator. The module random contains a fair number of methods (or functions) that help you to do random things. Here are some examples ...

Member Avatar for sainandan
1
221
Member Avatar for gretty

Hello I have a static window control & I want to make the text inside that static window centre aligned. [B]Is is possible to do that with a static window?[/B] Or should I use another function? static window: [CODE] stBox = CreateWindowEx( 0, "Static", s.c_str(), WS_BORDER | WS_CHILD | WS_VISIBLE, …

Member Avatar for William Hemsworth
1
229
Member Avatar for C++ Beginner

Here is the problem: Write a program that displays the name of each month in a year and its rainfall amount, sorted in order of rainfall from highest to lowest. The program should use an array of structures, where each structure holds the name of a month and its rainfall …

Member Avatar for C++ Beginner
1
231
Member Avatar for rzhaley

Hello, I'm confused on how to put the Random.Next() method into my matrix array. First my matrix array is already messed up, I'm trying to create a 6 by 10 matrix of random numbers and then show the numbers times two. here is the code i've already done, ps my …

Member Avatar for ddanbe
1
134
Member Avatar for Derp2000

Hello. :) This is my first post and it's unfortunately to ask for help. The problem is as follows: [LIST] [*]The user types in how many names they wish to enter. [*]An array must be able to hold this many names. [*]The user then types the names. [*]Any characters over …

Member Avatar for Derp2000
1
125
Member Avatar for zachattack05

Hi! I'm new to the site! I've been searching for help on Google for a while and keep getting results that point to this site, so I figured I should jump on. I'm new to C#. I've been programming in VBA in MS Access for a while now and have …

Member Avatar for drifai
1
864
Member Avatar for BigTito89

Hi, I'm having a problem wrapping my head around a problem. Here is the problem: Develop a program that will input a binary string and then, using bitwise operations, do a two's complement on the string and display it. Use UNSIGNED data types for the bit strings. So far, I …

Member Avatar for r.stiltskin
1
1,000
Member Avatar for Clinton Portis

I thought this website on coding conventions was pretty cool.. learned some things that I never knew before: [url]http://www.possibility.com/Cpp/CppCodingStandard.html#init[/url] I was just wondering: If there are any conventions in particular you agree or disagree with (and why) If this would be worthy of being a 'sticky post' as I think …

Member Avatar for Lawand
1
153
Member Avatar for raghuhr84

Hi All, I am facing the scanf() function problem, below given is a small code snippet where am facing the problem. [CODE] int main() { char str1[100]; char str2[100]; printf("Enter 1st string\n"); scanf("%[^\n]s",&str1); printf("Enter 2nd string\n"); scanf("%[^\n]s",&str2); printf("1st string is %s\n", str1); printf("2nd string is %s\n", str2); return 0; }[/CODE] …

Member Avatar for Dave Sinkula
1
690
Member Avatar for grib

I'm attempting to use a specialized function to search an array of c strings for the longest (or first tied for longest) member. Right now, I'm getting [inlinecode]line 87 error: invalid conversion from `char' to `const char*'|[/inlinecode] on my comparison statement. If I switch the templates' inputs to const, I …

Member Avatar for DavidRead
1
125
Member Avatar for samarudge

Hi, What is the function/opperator to calculate a power with C# I tryed [code=c] powerof = anumber ^ anothernumber; [/code] and that clearly doesn't work (1^3 is 2, 2^3 is 1 etc.) How do I do it??? I looked under [icode]Math.[/icode] functions and there was nothing and I spent ages …

Member Avatar for ddanbe
1
184
Member Avatar for Cy137

So far, this has worked relatively nicely. However, I am having trouble in outputting to two separate files, and I'm hoping that you guys and gals can help me out. I'm reading in from a file, and outputting to two different files, based on what the input is. If anyone …

Member Avatar for Cy137
1
184
Member Avatar for fallopiano

Hi everyone. I'm currently working on a project with c#, and had some questions about classes. I'm a python programmer, so bear with me ;) How would I make a class that has pre defined arguments? I.e. even if the user doesn't pass that arguement, the default value of it …

Member Avatar for sknake
1
146
Member Avatar for chrishea

I'm a PHP guy so I still struggle with Javascript. The answer to this is probably easy. I need to add some animation effects and I'm experimenting with JQuery [B]animate[/B]. The sample routine is set up to run when you click on the Run link. I want to change the …

Member Avatar for phpbeginners
1
222

The End.