64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for plusplus
Member Avatar for MasterGberry

I took my deck of Cards (class Card) and shuffled the. But every time i ran the program it gave me the same shuffled results.... [CODE]void Deck::shuffleDeck() { std::random_shuffle(deck.begin(), deck.end()); }[/CODE]

Member Avatar for erikandr
0
131
Member Avatar for MasterGberry

I am trying to take a std::vector<Card> and organize it by one of the int values stored inside the Card class. How could I go about doing this with iterators and the sort() method? Or is it not possible? Ty :)

Member Avatar for MasterGberry
0
102
Member Avatar for weasel7711

I have a small company Database that tracks our repair orders. I have a query that I would like to execute based on criteria that the user inputs. I am new to VBA so most of my code is based on google research. I took a technique of wrapping my …

Member Avatar for weasel7711
0
253
Member Avatar for blenkhn

I have been trying to no avail to load a ui file and insert it into a tabWidget as a new tab. I commented out a try that I thought would work, I was wrong. I have tried several different ways but I always seem to get the same error. …

Member Avatar for blenkhn
0
896
Member Avatar for cufisa

Hello there everyone. I am having a bit of trouble with my C programming. I do not know anything about C programming and this is my first semester and already my professor is putting pressure on me. Anyone that can help would be appreciated. So I am supposed to create …

Member Avatar for cufisa
0
1K
Member Avatar for LianaN

Hi! Please, tell me how to make the JDialog close button working in a proper way. Now it does not work. [ICODE]System.out.println(value);[/ICODE] produces 0. But if I write [ICODE]if (value == 0)[/ICODE], then nothing happens. Any ideas? Thanks! [CODE] public static void about() { final JOptionPane optionPane = new JOptionPane( …

Member Avatar for LianaN
0
225
Member Avatar for dikri100

I can code it with this account just click on a link I need one that relies on various link on the same page. codigo need cookie. <script type="text/javascript" src="file:///D|/Downloads/cookie.js"> </ script> <script type="text/javascript"> var = CookieUtil { get: function (name) { var cookieName = encodeURIComponent (name) + "=" cookieStart …

0
68
Member Avatar for joeyfm

So heres my issue... I am a student studying php and as a project am making an online php phonebook. It is database driven, and currently I am having issues with the delete page. the code for this is below and the website is online and said page can be …

Member Avatar for nuttyniall
0
115
Member Avatar for gomathi007
Member Avatar for PM312

How can i add treeview control to my project. I cannot find this in components.

Member Avatar for AndreRet
0
222
Member Avatar for JDevelop

Hello there, I've just started on C and what I'm trying to do is copying one string to another (which has not been initialized before) without using any string.h functions. Here's my code. [CODE] #include <stdio.h> #include <stdlib.h> void copyString(char*,char**); int main(){ char* string1="Hello there"; char** string2; printf("string1: %s\n",string1); printf("Copying …

Member Avatar for JDevelop
0
285
Member Avatar for ben.marks

Hi there, Got some form validation but doesn't seem to even be running through it. First off the form is displayed, if you click in 'Name:' the 'ID:' box disappears so that you cant type in both, after it disappears (and vice versa), the validation should check its correct, but …

Member Avatar for ben.marks
0
211
Member Avatar for newprogrammer14

Hi guys I'm new to XSLT programming and the question I ask may appear very easy to you guys. Please help me out. This is the XML code : [CODE]<book id="12345"> <title>A<caps>New Voyage</caps>:Africa</title> <desc>abcdefgh ijklmnop</desc> </book> <book id="12346"> <title>A<caps>New Voyage</caps></title> <see id="12345">ANV</see> </book>[/CODE] I have to display the title and …

Member Avatar for iceandrews
0
207
Member Avatar for masterfact18

[CODE] Private Sub cmdAdd_Click() Dim sConn As String, xQuantity As Integer, xStockTotal As Integer Set oConn = New ADODB.Connection Set rsAdd = New ADODB.Recordset sConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\inventory.mdb;Persist Security Info=False" oConn.Open sConn If LenB(cmbItemName.Text) = 0 Then MsgBox "You have to select an item from the …

Member Avatar for AndreRet
0
193
Member Avatar for RenanLazarotto

Hey guys! How can I get the progress from a console window? Like... running UPX and get the current compression progress to use into a progressbar? Thanks!

Member Avatar for RenanLazarotto
0
61
Member Avatar for kruxena

Hi guys need help here. Scenario: I have a function in my textbox1 with the got focus event. I have a 40 textbox in my goupbox1. Here is my code so far. [CODE] Private Sub Textbox1_GotFocus(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Textbox1_GotFocus ... ... For Each x …

Member Avatar for codeorder
0
21K
Member Avatar for docfnt

I'm writing a text editor for my own use ( I'm "home learning") where I want to be able to leave comments for myself, like in code section of the VB express IDE. I have figured out how to get the Integer Location of the apostrophy, but can't get it …

Member Avatar for GeekByChoiCe
0
172
Member Avatar for Netcode

How do I create a Dynamic crystal report? That is, I want my codes to select and filter the content of the datagrid at runtime. I need help seriously, Thanks

0
82
Member Avatar for Senefelder

I hope that this question is not out of place here. I have an access 2007 database for which I made a perfectly functioning simple "front end" program in VB6. That was back in XP or Vista days. I hadn't used it since the switch to Windows 7, and when …

Member Avatar for AndreRet
0
134
Member Avatar for fawadkhalil

Hi people I have radio button list populated from database. By default first value is selected. How can i call JavaScript function if user selects another value in radio button list.

Member Avatar for jbisono
0
136
Member Avatar for ello

Guys, just a quick question, is there any way to get this AJAX to be called on a button click? I know how to use buttons to call JS functions but I'm not sure where to add the open and closing parentheses with this AJAX...I've tried encasing different parts, but …

Member Avatar for McLaren
0
224
Member Avatar for NewOrder

i am building a chat and i have this code: [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.Net.Sockets; using System.IO; using System.Threading; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { TcpListener server = new TcpListener(IPAddress.Any, 5000); server.Start(); Console.WriteLine("Server …

Member Avatar for NewOrder
0
1K
Member Avatar for kirtan_thakkar

I want to get details of user when he registers with my website for security reasons. I need ip and date and time I guess. Is there anything else I need to cache while registering? How to get ip,time and date? And time will be in which timezone? I want …

Member Avatar for kirtan_thakkar
0
2K
Member Avatar for paulablanca

Hi! Hope my title is understandable. I have four comboxes all containing A,B,C,D. My problem is if I have chosen letter A on the first combobox, the last three won't have letter A anymore, then on the second combobox, if letter B is chosen, the last two will have C …

Member Avatar for sandeepparekh9
0
169
Member Avatar for 123mehran

Hi I wanna when checkbox checked write 0 to 5 in my list box please help me thanks

Member Avatar for Pgmer
0
106
Member Avatar for beejay321

Im supposed to write a program that reads in 10 c strings and will sort them alphabetically using (strcmp(list[h],list[j])>0) which basically says if list h is closer to the start of the alphabet then it is true else it is false here is my code [CODE]#include <iostream> #include <cstdlib> using …

Member Avatar for peter_budo
0
2K
Member Avatar for track&price

I cannot get the my application (AA_Coins.exe) to run on a different PC. I have 2 pc's are using Visual Studio 2010 and Net Framework 4 Client Profile. My .exe works fine on both as expected. I put it on a 3rd PC that does not have VisualStudio with Net …

Member Avatar for Pgmer
0
113
Member Avatar for nndung179

I create the Fraction Input and Output it was fine, and then I try to put the array of the Fraction. Everything work fine until I Compile and execute the Program. This Error appear: Nullreferenceexception object reference not set to an instance of an object. Help me this error! Thanks …

Member Avatar for Ketsuekiame
0
106
Member Avatar for bkv.kannur

I am using ajax to pass php variable to javasccript function as shown below for my particular application. i am using the foolowing function from ajax.js freely available from net to implement the ajax functionality as var abc = new sack(); PHP portion which passes the response text: ************************************ <? …

Member Avatar for SatishU
0
666
Member Avatar for newcoder310

how to modify the contents of a file Example:: If there is a file with hello #how are you Then how to delete the # and maintain the same file

Member Avatar for masijade
0
108
Member Avatar for Agent Cosmic

Hello, I'm currently designing a simple movie database. In a table I have a column called status. And for that there will only be a few possibilities like "pending", "watched" etc... What would be a good way to design it such that I have some kind of constant? Should I …

Member Avatar for griswolf
0
134
Member Avatar for newcoder310

I've recently posted a thread called file modification and the problem has been solved........now could some1 kindly explain why is it necessary to delete and rename the file to insert or delete a character into the file at a particular location Thanks

Member Avatar for griswolf
0
79
Member Avatar for linux.buzz

Hi all, I got stuck into a problem. I have a variable in which the data is stored as below: variable_test=0m0.001s 0m0.001s 0m0.001s 0m0.001s 0m0.001s 0m0.001s .....an so on. There are lots of values in format like "3m1.057s" are stored in variable_test separated with an space between two such values. …

Member Avatar for cfajohnson
0
146
Member Avatar for oree

I am trying to have a search bar where user will input a string ($var) which after i will search that sting in the field named: "itemname". i will search all the different tables in the database and create a new temporary database named: searchtable. seachtable should contain all the …

Member Avatar for oree
0
115
Member Avatar for pandaEater

Is there a way to disallow access to a Parent function in the Child class? For example, the Parent class has a function, myFunc(). In main() after I instantiate a new Child object I don't want myFunc() to even be an option. So child.myFunc() would cause a compilation error.

Member Avatar for Momerath
0
144
Member Avatar for Buppy

Hi, I have a HTML document with form. The form has several radio buttons. I want different elements of HTML (including <input> elements) to appear when each radio button is selected. Also, it is intended to show only those elements for a specific radio button. For example, if i select …

Member Avatar for Troy III
0
723
Member Avatar for beejay321

so for my computing project we have just started to work with using input and output of text files, the tutorial my teacher gave said to include these libraries, which i did [CODE]#inclue <fstream> #include <iomanip>[/CODE] and explains how to use [CODE] ifstream fin; //fin is my file input variable …

Member Avatar for beejay321
0
336
Member Avatar for Latvija13

How would you go about skipping non-numeric characters in a string and only adding the sum of the numbers a multi line string?

Member Avatar for Latvija13
0
113
Member Avatar for ben25x

I am quite stumped on something in C. I found this code on the Internet, and it only gives me one error; however, I cannot seem to fix it. The variable in the function the compiler's complaining about is: [CODE]char ConvertTime[8][/CODE] and the function itself is a windows one: [CODE]GetWindowTextW(GETITEM(IDC_CONVERT_TIME), …

Member Avatar for ben25x
0
347
Member Avatar for VernonDozier

OK, here's what I want to do (I realize the code below doesn't work, but it's what I would LIKE to do). I've converting things from C++ [code=JAVA] public void ChangePrimitiveArray(byte bytes[]) { bytes[0] = 1; } public void foo() { byte bytes[] = new byte[2]; bytes[0] = 4; ChangePrimitiveArray(bytes); …

Member Avatar for VernonDozier
0
216
Member Avatar for biljith

how to write a program that can accept a date from user and print the day on which it occurs

Member Avatar for Ancient Dragon
0
107
Member Avatar for f_atencia

I have a client-side form and it submits to itself using the 'GET' method. When the form is submitted, I can get the results, but I can't seem to hide the form itself. Is there a way of doing this using Javascript in an ASP file? The document.getElementById("myDiv").style.display="none" doesn't seem …

0
70
Member Avatar for CSharpUser

I'm using the method below as a button-click event on an ASP.NET 4.0 page. The first alert box (ClientScript.RegisterStartupScript(...)) works fine, the second I haven't tested yet; but the third doesn't produce an alert - and it doesn't produce an error either. Can anyone suggest what I'm missing here? I'm …

Member Avatar for CSharpUser
0
426
Member Avatar for eikal

Hi im working on this program im getting a runtime error that says this ArrayIndexoutofbounds exception 0. heres my code [code] import java.util.Scanner; public class MillerCalculateTime { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Enter miles: "); double miles = sc.nextDouble(); System.out.print("Enter Miles per hour: "); …

Member Avatar for naief
0
180
Member Avatar for z00t

i have to construct a rectangle, print the location, then translate/print it 3 more times such that if they were drawn, they would form one large rectangle. [][] <- like so [][] here's the code & the error. C:\java>javac FourRectanglePrinter.java FourRectanglePrinter.java:11: [COLOR="Green"]incompatible types[/COLOR] found : void required: java.awt.Rectangle Rectangle box1 …

Member Avatar for Akill10
0
1K
Member Avatar for cjay175

Using Wordpress with update_user_meta and php array. Had a quick question regarding dynamic input fields and posting it to php. [CODE] <input type="text" name="test[]" /> [/CODE] These fields get added dynamically as well using jquery which works fine, the issue im having is posting the array individually. To save this …

Member Avatar for cjay175
0
104
Member Avatar for MaddTechwf

Is there a way that I can use like F1, F2, F3, etc to open a specific form? I would like to have an options form but not have it to where anyone can access it unless they know the Function key to use.

Member Avatar for Unhnd_Exception
0
117
Member Avatar for MaddTechwf

I'm wanting to create a small application that will allow me to schedule a machine to shutdown at a specific time. Any suggestions on how I can make this .exe run at a specific time besides using the Task Scheduler?

Member Avatar for MaddTechwf
0
84
Member Avatar for Smalls

What my question is, Is it plausible to have a listview item search a specific folder that has nothing but text files in it, pull the first 2 lines from the text file(s) and display them in columns 1 and 2 if so, how would one go about doing it, …

Member Avatar for Smalls
0
399

The End.