64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for rcbhat

I have the following code, [code=C] main() { char *p="abc"; int x; x=++*p++; printf("%d",x); } [/code] My question is, when I try to do x=++*p++, the program crashes. If my associativity rules are right, first the address pointed to by p should be incremented by the postfix (p++) and then …

Member Avatar for Alibeg
0
518
Member Avatar for abu taher
Member Avatar for jhai_salvador
0
121
Member Avatar for wingers1290

Hi, I am having problem with a particular process of commands. My program begins with detecting whether a textbox is empty at the press of a button and if it is it will display an error code which i scripted to do, you can create up to 10 textboxes which …

Member Avatar for wingers1290
0
123
Member Avatar for Zurompeta

Hi all, Having a strange issue here. To help explain my situation, I have some images I'd like to include. This first image is of one of two user input forms. Notice in the top left of the picture, the second tab is selected. [IMG]http://www.abexal.org/image_1.jpg[/IMG] The arrow is pointing to …

Member Avatar for Airshow
0
205
Member Avatar for grr

[code=sql]SELECT DISTINCT COUNT(*) AS occurences, post_name, post_content FROM wp_posts WHERE ((post_name LIKE '%ihop%' OR post_content LIKE '%ihop%') OR(post_name LIKE '%pancak%' OR post_content LIKE '%pancak%')) ORDER BY occurences DESC[/code] I use wordpress and am writing a script. Here is the table: post_name ihop post_content pancake house Thanks, Ian

Member Avatar for grr
0
112
Member Avatar for agent154

I'm having trouble finding a clear tutorial on how to use regular expressions, and its driving me insane.. However, based on an example I saw, I am trying to construct my own pattern and I cannot figure out why it is not working. Can somebody here give me some help? …

Member Avatar for agent154
0
117
Member Avatar for serkan sendur

this smart listview is multiselect and sortable. i attach the entire project too. SmartListView.cs : [CODE]#region Name Spaces using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Collections; using System.Reflection; using System.Text.RegularExpressions; #endregion namespace SmartControls { public partial class SmartListView : ListView { #region …

0
65
Member Avatar for ddanbe

Hi all, I can easily add this using clause with no errors to my program. [B]Using System.Numeric;[/B] I have VS 2008 C#. But I'm not seem to be able to use it. The Object Browser gives no clue either. Any suggestion is very welcome.

Member Avatar for lighthead
0
136
Member Avatar for Shuel

Hi, i have installed apache 2.2 and have installed php 5.2.9. The installation has taken place succssfully. However when I try to test my php script with a simple <? phpinfo(); ?> I dont get any output in my browser. I have looked throuh the folurms and have tried a …

Member Avatar for djjjozsi
0
128
Member Avatar for kdhare

I'm trying to have a form submit to a url with the users selection input from a dropdown. When I submit the form it goes to the search.html page as in the code but is not picking up the prodMFG from the dropdown. Any ideas how to make it work...a …

Member Avatar for kdhare
0
607
Member Avatar for akulkarni

i wish to add another column using code in JDBC.I have one column columnname i wish to add a text type(data type in access) column in the access file my code is [code] import java.sql.*; public class Test3 { public static void main(String[] args) { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); /* the …

Member Avatar for akulkarni
0
155
Member Avatar for bgk111

Hello, I am having some terrible issues getting data formatted in a way that is useful for me. All I am trying to do is read a file that has several points of data in comma delimited format, and break each line into multiple variables (just need to grab each …

Member Avatar for bgk111
0
110
Member Avatar for diafol

Hi all. Have been trying to get my head around a problem in my custom messaging system. This is my msg table: id (PK) datetime_posted (datetime) from_id (FK for user id) to_id (FK for user id) title (the title obviously) msg (the body) status (0 = inbox, 1 - removed) …

Member Avatar for diafol
0
83
Member Avatar for |\|asrin

Hi I want to have a n*n matrix is there sombody to help me?? how i can write it??

Member Avatar for |\|asrin
0
109
Member Avatar for MrNoob

hello i m given a question in book i m reading that i copy element but using ptr to copy and other choice will be using normal integers to copy i did normal integer but copy i think i got a problem with it [code] #include <stdio.h> int copyarr(const int …

Member Avatar for MrNoob
0
94
Member Avatar for gingank

Hi guys i'm writing a vb program which got using the sql statement i know the sql statement is using method insert but my one is much different. The code concept is like this If cmbActive= true then sql=insert into staff_badgeTrackingNew = txtEmpID, txtEmpName, TxtID Else sql= insert into staff …

Member Avatar for vb5prgrmr
0
115
Member Avatar for whiteyoh

Hi all, The following code should select all data, grab the highest value row (i.e. the newest), and display that exact rows number, contained text and time/date of creation. It is correctly grabbing the row number, but still only grabbing the contents of the first row. I am not getting …

Member Avatar for whiteyoh
0
90
Member Avatar for vuyiswamb

Good Day all I have an SP that is defined like this [CODE]ALTER PROCEDURE [dbo].[sp_Constraints_Update] @xml ntext, @TTBLType varchar(5) AS set nocount on DECLARE @xmldoc int DECLARE @sql varchar(8000) -- In one long sql string do all of the following --Create an internal representation of the XML document. EXEC sp_xml_preparedocument …

Member Avatar for vuyiswamb
0
582
Member Avatar for StephNicolaou

Hi everyone, I'm new to C and have been given a C program to complete but found it includes many versions of the titled error for each class file. Can anyone please explain why it occurs and how I could get rid of them? Thanks, Cleo [code] q2.c:5: error: expected …

Member Avatar for Leo71
0
423
Member Avatar for foosion

Is there a way to place widgets on pixel coordinates rather than row, column coordinates in tkinter? For example, if I'm using grid, if I have a 20x10 Text box at row 0, column 0 and want to place three buttons to the right of the textbox, one button over …

Member Avatar for Aiban
0
151
Member Avatar for whiteyoh

Hi All, The title of this thread is the error i am recieving when running the script below. Im hoping to get it to show all entried from the selected row. [code] <?php $dbh=mysql_connect ("------", "--------", "-----------") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db …

Member Avatar for Menster
0
209
Member Avatar for gingank

Hi guys i dont know why i can get the datas from the sql 7.0 Can help me check this code>>> [CODE] If txtFBadgeID = "" Then Exit Sub Else sql = "select from staff_badgeTrackingNew INNER JOIN staff_badgeTracking" End If Exit Sub Set rsTrack = New ADODB.Recordset With rsTrack .ActiveConnection …

Member Avatar for vb5prgrmr
0
170
Member Avatar for jooa

Hi, I have written two classes. One is a pixel grabbing class the other allows the user to open and display an image. What I now want to be able to do is use the image which the use opened in the RunProgram class and grab pixels from it using …

Member Avatar for jooa
0
120
Member Avatar for keziaebitner

using dialog boxes : input month in "99" form date in "99" form year = 2009 then display the date in 'MMM 99, 2009' form otherwise, display 'invalid date' Valid date 01-12 = Values for month 01-28 = for month - 2 01-30 = for months - 4,6,9,11 01-31 = …

Member Avatar for campbellm
0
95
Member Avatar for Angeline5

I have two arrays, Forms and formsShared. [code] <?php foreach ($Forms as $r): ?> $("#shareform<?=$r['Form']['id'];?>").hide(); $(".Share<?=$r['Form']['id'];?>").click(function(){ $("#shareform<?=$r['Form']['id'];?>").toggle("show"); }); <?php endforeach; ?> [/code] Currently, I have this hide and toggle function for each Form in the Forms array. I want these functions to be enabled for the forms in the formsShared …

Member Avatar for Menster
0
303
Member Avatar for lotrsimp12345

When you use getline(input,inputline) and you delete part of the inputline does it also ignore from the input file?

Member Avatar for m22
0
85
Member Avatar for duka96

How can I check if CPoint (or any other) variable has been initialized? I'm getting error for this: if(m_pointVar != NULL) saying binary '!=' : no operator defined which takes a left-hand operand of type 'class CPoint'

Member Avatar for duka96
0
110
Member Avatar for wingers1290

Hi, Is it at all possible to detect if a user has inputed text into a text box for example. [code] if (textbox1.Text == ("detect if text is in textbox") { // do something } [/code]

Member Avatar for wingers1290
0
265
Member Avatar for OmniX

I would like to know how to display XML in a browser. Also if possible to maniuplate the XML elements. Havent touched based with XML in awhile and still abit rusty. Thanks, Regards X PS: Below is the listed code and below is the wished output. Code : [code] <?xml …

Member Avatar for OmniX
0
2K
Member Avatar for metdos

I want to add my header file as #include <vcinpl.h> instead of #include "vcinpl.h" how can I manage this? Thanks.

Member Avatar for metdos
0
177
Member Avatar for _dragonwolf_

I have tried different things to modify the following code and have been unsuccessful. The following code is to get the julian date number. I need to alter it to make it return the day number (between 1 - 366) within a given year. Can anybody help? (fyi - this …

Member Avatar for _dragonwolf_
0
245
Member Avatar for pltndragon

This program should accept array of integers and integers that indicate the number of elements in the array. the function should then determine the median of the array. Using pointer notation. I did research to see if someone had similar problem like me, but their was only other one, it …

Member Avatar for pltndragon
0
3K
Member Avatar for Jammie

Hi, Could someone tell me if there's a better way of doing this? I was asked this question in an interview and I wrote a piece of code of O(n2). // This function returns a new string of the common alphabets found in a and b char* intersection(char*a, char* b) …

Member Avatar for Jammie
0
867
Member Avatar for tmv105

Hi all, I am a student trying to access a database that is on a different server than where my web pages are stored. My webpages running PHP scripts are here (128.118.142.34 through 128.118.142.46) and my database is here (146.186.83.60) Here is the code that I implemented: [code]$con = mysql_connect(146.186.83.60, …

Member Avatar for spthorn
0
1K
Member Avatar for hughesadam_87

Hey guys, Say I had the following list: [1, 2, 2, 2, 3, 4,4] Let's assume that the list will always be integers. Does python have a built in feature which would take a sorted list, and then return the frequency that each element occurred. For example: 1 -> 1 …

Member Avatar for jlm699
0
157
Member Avatar for bigbadbag33

hi; I am trying to create a program that will return information stored as long as the word stop is not entered for the employee name, I cant get the program to work can some one help me with this. this what I have so far. // payroll program upgrade …

Member Avatar for bigbadbag33
0
106
Member Avatar for Hiroshe

Hey guys. I decided to do another project euler problem, and got this problem: [CODE]You are given the following information, but you may prefer to do some research for yourself. * 1 Jan 1900 was a Monday. * Thirty days has September, April, June and November. All the rest have …

Member Avatar for Hiroshe
0
743
Member Avatar for papanyquiL

I've made an extremely basic program on my WinXP (x86) SP3 comp. All the program does is convert feet to meters, etc... I put it on my buddies computer that has vista (x86) installed on it, and it says 'the program has stopped working, windows is checking for a solution.' …

Member Avatar for serkan sendur
0
412
Member Avatar for sravan953

Hey guys... I was recently working on a program, which opens a music file using Windows Media Player...so I tried: [CODE]subprocess.call("C:\Program Files\Windows Media Player\mplayer2.exe",loc) # Where 'loc' is the location of the file[/CODE] But then I got to know that it won't work and that I have to use: [CODE] …

Member Avatar for zachabesh
0
111
Member Avatar for tdeck

I'm trapping the onKeyPress event of a textarea, and I'm wondering if there's a way to prevent the key from also being typed into the textarea if it's a certain key. I have tried stripping off the last character from the value property, but it seems that the character is …

Member Avatar for tdeck
0
91
Member Avatar for pluring

Hi! I'm trying to search a html site for a spefic word and print the result thats x rows after that word. If the html page looks like: "Hello welcome to daniweb" I want to search for welcome and look for what the next word is ("to" should be the …

Member Avatar for pluring
0
106
Member Avatar for pythonbegginer

I have a lot of directories that start with "td." for example i have: td.10000 td.11102 td.00384 td.35454 td.32356 Is there a way in which i can tell python to remove all directories that start with "td." ? If so, how?

Member Avatar for pythonbegginer
0
188
Member Avatar for serkan sendur

how do you sort dictionary in c#? the key will be string, the value will be listviewitem. i want to sort by the key. i cant use sorted dictionary. give a complete working example please, preferably attach full project for me :) Thanks in advance.

Member Avatar for serkan sendur
0
152
Member Avatar for poeticinsanity

So I feel rather foolish for this, but I haven't used command line often. I'm using sys.argv to gather arguments from the command line. I'm saving one in particular to a variable called test. It is suppose to be a boolean; however, passing in True or False still renders if(test): …

Member Avatar for poeticinsanity
0
6K
Member Avatar for sonia sardana

I drag Tabcontrol.& add two tab pages. I have contextmenu Strip, dat i bound to tabcontrol.I select the ContextMenuStrip & set it to ContextMenuStrip1 Now i right click on tab headers.Suppose i right click on tabpage1,contextmenu is displayed.I want that when i right click on tabpage..I want to get the …

Member Avatar for sonia sardana
0
3K
Member Avatar for cheapterp

Is there a way to grab data from alternate records in a ColdFusion query? Essentially, what I am trying to do is this: I am querying my database to grab some data. 2 rows of data are returned here. Now I want to set 2 variables - [I][B]var1 = row1.columnA[/B][/I] …

Member Avatar for macslayer
0
141
Member Avatar for atrophiedsoul

Ok so basically I am creating a ftp loop, that takes dynamic inputs from a previous page (all variables should be present, but naturally may not be formatted correctly... or i wouldnt be posting) So.. I can get it to loop through a connection just fine, but I seem to …

Member Avatar for atrophiedsoul
0
128
Member Avatar for smasher

Hi ive got this bit of code, trying to reteach myself stuff about PHP ive forgotten and having a general play. However i can only get this code to half work [CODE]<?php include_once("connect.php"); $username=$_POST['username']; $password=$_POST['password']; $email=$_POST['email']; $existing= "select * from CSLE_User where Username = '$username'"; $exist=mysql_query($existing) or die (mysql_error()); $num=mysql_numrows($exist) …

Member Avatar for smasher
0
200
Member Avatar for walter clark

We use Windows Form1.h to interface an existing C++ program. The existing program is changed by other people and I have to update the interface. To do that I copy all folders of the older project to a different place and then introduce the changes there. The problem is, that …

Member Avatar for walter clark
0
93
Member Avatar for slatk3y

Hello, I have a problem when I try to double the length of the array if it is already full. For example, array arr has length 5, and I want to insert 7 elements in it. This is what should I get: arr = [1, 2, 3, 4, 5, 6, …

Member Avatar for slatk3y
0
106

The End.