199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for trantran

I've look in the C++ standard and, when listing list of compound stuff, it does not mention anything like "pointer to [B]data [/B]member of an instantiated class". So the question is: [CODE]struct test{ int a; double d; ..... //more complicated stuff here to make it a NON-pod structure) .... }; …

Member Avatar for trantran
0
122
Member Avatar for WackyZ

Can someone please help me - I need to write a function that will validate UK postcodes written in a textbox but every tutorial and example source code I find for it is in other languages such as VB and Javascript. The VB code looks extremely small: 1. Public Function …

Member Avatar for Ionelul
0
479
Member Avatar for BobC22

Hi, I have been working on a Reversi/Othello game using QT and have got stuck when trying to implement a new game function which will return the game state back to its original state. reversigame.cpp [CODE]/** @file reversigame.cpp @author Rob Charrett @brief ReversiGame implementation. */ #include "reversigame.h" ReversiGame::ReversiGame(QWidget *parent, Qt::WFlags …

Member Avatar for BobC22
0
183
Member Avatar for YeMiller

Hi there, I'm getting on pretty well with a project for uni I've got to do, although I'm currently slumped at a bit. I'm running a loop to constantly read numbers into a set of equations and I'm required to output these to an excel file. I've sussed making the …

Member Avatar for YeMiller
0
603
Member Avatar for Dex02

Hello guys I am making a speel check program in Turbo/borland c++ and i have a problem with the libary #include <vector.h>. Is this labary in Turbo/borland c++ difrent or what? Here is the program: [CODE] #include <iostream.h> #include <fstream.h> #include <vector.h> #include <string.h> vector<string> explode( const string &znak, const …

Member Avatar for Dex02
0
139
Member Avatar for jozz3

I am trying to define a function that draws a triangle of a given size using the turn method. I've never used turtle graphics before and am not sure how to go about this. Thank you

Member Avatar for vegaseat
0
824
Member Avatar for Mz3g

Hi guys, I'm doing a program that reads from two files and write to 16 files. The idea of the program is to rout packets across a network that contains 16 nodes. I still working in the routing mechanism but I just wrote the codes for the source node and …

Member Avatar for daviddoria
0
187
Member Avatar for gorgey506

[CODE]// Word Jumble // The classic word jumble game where the player can ask for a hint #include <iostream> #include <string> #include <cstdlib> #include <ctime> using namespace std; int main() { enum fields {WORD, HINT, NUM_FIELDS}; const int NUM_WORDS = 5; const string WORDS[NUM_WORDS][NUM_FIELDS] = { {"abbott", "part of colton's …

Member Avatar for Grn Xtrm
0
167
Member Avatar for TechGen

hi please I have managed to create a user and allow a user to login however Im confused as to how I can use the profilecommon class to save user info, please assist my web config is also listed below [code] Protected Sub btnLogin_Click(ByVal sender As Object, ByVal e As …

Member Avatar for kvprajapati
0
136
Member Avatar for sachintha81

I have a service (say BS.exe) written using C# of which the installer is created using Wix and C# (which means it has a Custom Action program associated with the Wix installer program as well). Now, after the program in installed there is a need to go to Windows Firewall …

Member Avatar for privatevoid
0
520
Member Avatar for sseo

I'm relatively new to programming. Problem: I'm creating an ASP.NET app the needs to read a CSV file and filter the data. I searched the net and only found classic ASP examples or all DB driven examples. Does anyone have sample code. Or is there any other suggestions on how …

Member Avatar for kvprajapati
0
1K
Member Avatar for inAweofOOP

Hi All, Hi All, I'm in a bit of a pickle here. I'm Binding the name of file to a LinkButton and intending to open that file on the LinkButton' click. I have the LinkButton in the TemplateField of a GridView control. Below is the code I'm using : <asp:TemplateField …

Member Avatar for inAweofOOP
0
171
Member Avatar for ITGuy2010

I need help creating a batch of Grand Totals each time enter my value and click Calculate. The code below gives me my Grand Total, now I would like to enter a new set of values and store the previous amount(s) until I'm ready to populate them in a Message …

Member Avatar for Oxiegen
0
155
Member Avatar for ana_eht

hi again problem with listbox :( i really tried to find help from google but i couldn't My problem is this : I have 3 listboxes quantity , MenuItem , Price then user must enter data into them then when user clicks on one item in one listbox the same …

Member Avatar for Oxiegen
0
141
Member Avatar for meowbits

I dont want to have to use a case (1-9) to fill pictureboxes with images, is there any way I can reduce this to one? If so.. please explain, basically be able to [CODE]For i = 0 to 8 if player = 1 picturebox(i).image = my.resources.x else picturebox(i).image = my …

Member Avatar for Oxiegen
0
122
Member Avatar for adam2009

Hey all, I have a winServer 2008 machine. I have created a new local user. In order to make him an admin all I have to do is to add it to the "administrators" group. right? now, I wrote a c# code that supposed to connect that local user and …

Member Avatar for kvprajapati
0
564
Member Avatar for hmortensen

hi all, I'm new to PHP and Java script, but would like to get som experience with em'. Im trying to make a search for a dropdown list, but it doesnt work? It is based heavily on this code [url]http://www.rgagnon.com/jsdetails/js-0089.html[/url] (wich works fine?) I have testet to see if the …

Member Avatar for hmortensen
0
138
Member Avatar for duke.tim

okay so I am having an error with the code below and don't really know how to fix it, according to what I've looked up it should be right. I am using g++ on a linux system. (P.S. i'm a newbie ) okay and the error is: random.cpp: In function …

Member Avatar for duke.tim
0
717
Member Avatar for Jfunch

I'm suppose to write a program that asks the user to enters numbers which will be stored in a dynamic array. Then once they enter their first set of numbers they are asked whether they would like to enter another number or remove a number from their list. You can …

Member Avatar for tetron
0
148
Member Avatar for Lee21

guyz i need your help. I want that everytime I press the ESC "ESCAPE key" there will be a message box popping out then will ask if I want to exit? then if I click the Yes button my Progrma Ends. I also used the form_closing event heres my code. …

Member Avatar for Luc001
0
7K
Member Avatar for indu_ss4

Hi! i'm a new user of jsf. I'm developing a web application in jsf 2.0 . There is a page in my application for which i have given session scope. In this page i retrieve values in a datatable from mysql database according to the chosen combo box values. I …

Member Avatar for indu_ss4
0
1K
Member Avatar for emaduddeen

Hi Everyone, Can you tell me how to change this code so the value in my DatePicker control will update to the database in this update statement? [CODE] strAttendanceUpdateStatement = _ "UPDATE Attendance " & _ "SET DateOfClass = " & DatePickerDateOfClass.Value & ", " & _ "Absent = " …

Member Avatar for emaduddeen
0
123
Member Avatar for hellskier

Hello, I have a little program that needs to get data from two separate .csv files for afterwards parse them and translate info to vectors. Everything works fine when I am working with just one file (so just one ifstream), but when I try to use another ifstream to read …

Member Avatar for hellskier
0
178
Member Avatar for avatarkk

Question: Write commands to declare character variables named faculty_last_name, faculty_first_name, and faculty_phone. Assign the value ‘COX’ to faculty_last_name, ‘KIM’ to faculty_first_name, and 7155551234 to faculty_phone. Write program commands so that the program displays the output exactly as follows: Kim Cox’s phone number is (715) 555-1234. everyone can teach me???

Member Avatar for anatolse
0
203
Member Avatar for pankajpriyam

Hi, I am using Python 2.3.4 in Linux environment. I have some sql files, I execute sql files in a loop. I want to generate seprate log files for every sql files in loop. How can I do this. regards pankaj

Member Avatar for jice
0
101
Member Avatar for satimis

Hi folks, I use following script:-[code] #!/bin/sh # cd Linbread TODAY=`date +"%m%d"` DATA=`grep $TODAY linbread.dat` HOUR=`date +"%H"` if [ $HOUR -le 11 ] then TOD="Morning" elif [ $HOUR -ge 12 -a $HOUR -lt 18 ] then TOD="Afternoon" else TOD="Evening" fi echo $DATA | gawk -F"|" '{printf("%s\n\n%s",$2,$3)}' > $$tmp fold -s …

Member Avatar for Robert Robinson
0
111
Member Avatar for k2k

just wondering if anyone could explain this... [code] if(loginF.equals("root") && passwordF.equals("root"))[COLOR="Red"]; [/COLOR] ---> if this semicolon is here, my program works.. but i can't have an else statement if i take out this semicolon, the code within the if statement don't execute.. but i can then have an else statement …

Member Avatar for JamesCherrill
0
108
Member Avatar for mks200

ok im kinda stuck in this homework, i dont know where to go next, please help me i need this done soon! heres the problem Your swim school has two swimming instructors, Jeff and Anna. Their current schedules are shown below. An "X" denotes a one-hour time slot that is …

Member Avatar for thomas_naveen
0
420
Member Avatar for close_encounter

I'm brand new to C++ and I'm having a difficult time. I'm working on a project for school and I'm very confused with functions all together. How do I get my arrays from main so I don't have to have them in each function and how do I call each …

Member Avatar for Banfa
0
146
Member Avatar for zainz

I am tring to draw a house & street & garden but i stop....? could plz someone help me and complete my job this is my code import java.awt.*; import javax.swing.*; public class Zzzzzzzzzzzzzz extends JApplet { public void paint(Graphics a) { house(a); door(a); roof(a); rode(a); } void house(Graphics b){ …

Member Avatar for jwenting
0
114
Member Avatar for jiraiya

Hi everyone, I have a single string - let's call it string A. I have an ArrayList of objects. Each object contains three strings. I want to iterate through the ArrayList of objects and check if any of the strings contained within the objects are the same as string A. …

Member Avatar for jiraiya
0
94
Member Avatar for bazer

i cant seem to figure out how to get the computer to know even / odd numbers using it for a prime factors. not looking for someone to do it for me just need a nudge in the right direction create code that asks the user to supply an integer …

Member Avatar for bazer
0
75
Member Avatar for "ICode"

These days, as we all know, graphics is probably the most important thing. I made a program using C# and the only graphics im using is that of WFA, but i want to apply EXTREME graphics to it, like that of windows media center, or something like that. What would …

Member Avatar for "ICode"
0
321
Member Avatar for cproud21

I have created the following code to act as a buffer between two threads. I am trying to add support to handle empty and or full buffers, and am not sure how to address this. Would it be done through condition variables? Thanks. [CODE]#include <stdio.h> #include <pthread.h> #include <unistd.h> //for …

Member Avatar for vijayan121
0
239
Member Avatar for z 4

This def has too many IF, i don't know how to optimize this code for more simplier and professional. Please take a look. [CODE]def cfg_wlan(self, wlan_cfg): """ Configure a new wlan for Zone Director. Input: a dictionary, supplied in DUT.py Output: none """ if wlan_cfg['auth'] == "PSK": auth = "open" …

Member Avatar for Gribouillis
0
113
Member Avatar for magic88

Hey guys, In JSP I used to create my sessions in my servlet like this: [CODE]session.setAttribute("user", username);[/CODE] and then call it from a JSP page like this: [CODE]<%= session.getAttribute("user") %>[/CODE] However this does not work in JSPX pages and its driving me crazy. Can any one help me? Any help …

Member Avatar for peter_budo
0
98
Member Avatar for adsegzy

Hello Fellas, Am designing a sign and there is a page (INVITE FRIENDS) where members can invite there friends. All the member has to do is just to enter the friends name and email into the form and click invite. the form is below; [CODE]<form id="form1" name="form1" method="post" action="<?php echo …

Member Avatar for karuppasamy
0
109
Member Avatar for lifeworks

Hi I wasnt sure where to stick this, so Im asking this crowd I am putting together a website which works on an MVC principle, my own framework, and need some help with the .htaccess file. Specifically, if I want to make a pdf available for download, my url parser …

Member Avatar for lifeworks
0
6K
Member Avatar for kodera

This is just the beginning of my name sort prog... I am starting with just reading in the names and then outputting each name... As of right now, it is crashing after displaying the first name... I think it's something with my array.. rectangular, instead of square, but don't know …

Member Avatar for jonsca
0
71
Member Avatar for michael123

Is there php function to remove the space inside the string? for example: $abcd="this is a test" I want to get the string: $abcd="thisisatest" How to do that? thanks.

Member Avatar for bhebs_quines
0
4K
Member Avatar for Pityu

Hey guys, I have a question: So... I want to do a product page with new product, edit product and delete product feature. While I'm on the modify or the deletion page, I would like to and [B]categorise [/B]by [B]date[/B]-desc, asc ; by [B]category [/B]and [B]alphabeticaly[/B]-desc, asc the retrieved content …

Member Avatar for karuppasamy
0
117
Member Avatar for TaoistTotty

I have been able to create the PDF without too many problems, but it is not formatted the way I would like/need. I am producing the PDF from a web page TextBox which the end user is running TinyMCE on (and is effectivly using it was a word processor), but …

Member Avatar for dharmbhav
0
168
Member Avatar for timbomo

I cant seem to figure out why this program wont write to a .txt I commented out the meaning of each step and it looks like i am doing everything correct. If i can get it to write it and goto the following steps. [CODE] float price,curr_total=0.0; int itemnum, wrong=0; …

Member Avatar for VernonDozier
0
137
Member Avatar for hinks

hi all I am creating a Visual basic gui which shows an databse which has been created by using the microsft access database feature within visual basic 6. here is the problem i am close to hanfing in my project when i try and use the .exe on another computer …

Member Avatar for kinwang2009
0
101
Member Avatar for rch1231

I am attaching a word document I put together with screen snapshots on how to connect to MySQL on a remote server using putty. I hope it helps those of you how have questions.

0
112
Member Avatar for chandruswami

Hi, In C#, i got sql Exception which consists of 2 lines. I need only the 2nd line of that Exception only. Ex: The transaction ended in the trigger. Table Validation failed - Name: x; Condition: m!=0 i need "Table Validation failed - Name: x; Condition: m!=0" only. I have …

Member Avatar for chandruswami
0
147
Member Avatar for timbomo

[QUOTE]in the files in_stream2 and 4 they wont open correctly but the rest of them will and i cant move forward until i fix it. i dont even no where to start when trying to fix it could someone help?[/QUOTE] [CODE]ifstream in_stream; // reads itemlist.txt ofstream out_stream1; // writes in …

Member Avatar for timbomo
0
122
Member Avatar for genki01

I'm not sure if this is the right place as I'm referencing JS. I'm new this but I'm trying to learn. Right now I'm using a script on a page, where the link will resize the window to a certain size. [CODE] <SCRIPT> <!-- function cont() { window.resizeTo(900, 750); window.location="[COLOR="Green"]redirect.php[/COLOR]"; …

Member Avatar for almostbob
0
204
Member Avatar for Mandana_bgh

hi i use log4j for logging i want the file that logs append to it , in every day be separated .for example my logs for today input in 2010-04-20.log and tomorrow in 2010-04-21.log file!! or any way that i can understand that this log file related today and that …

Member Avatar for Mandana_bgh
0
100
Member Avatar for IndranilM

Hello i have a login page so once the user enters the correct details he enters into the home page. Now i want to implement 2 things 1. once he clicks the button 'log out' he must be redirected to a page saying" logged out successfully " n even if …

Member Avatar for IndranilM
0
248

The End.