64,152 Solved Topics
Remove Filter ![]() | |
this is the final version of the priority queue i implemented {with some of your help!}... the problem is that when i profile the code with valgrind, it shows that i have a memory leak.... i can also see that, if in my code i make certain test_points{where i pause … | |
Hello, I need to complete a selection sort (descending order) on a string that contains 3 letters and one number. This is the function I wrote so far, but it doesn't sort properly. It is sorting, but I can't figure out its scheme. Any tips? Thanks! (The arrays are parallel. … | |
Hello everyone.. I small snippet about me. This is my first post, and I just decided to start coding in C++ a couple weeks ago, so needless to say, I'm a newbie. I bought a Beginning C++ book to help me with initial concepts. On to the reason for my … | |
Hey, I'm new to programming and I was wondering if anyone could tell me how to create a simple Yes/No interface for a program so I can figure out how to do things like that... | |
Hi, I have datatable with three rows of data that will increase I want each row to fill lables, checkboxes and textboxes on their own tab of my tab control I have created a Template tabpage but when i try to add the other dynamic tabpages they are all blank … | |
Hi hi! Just that, I want to hide a asp:button when a asp:dataview is empty and show it when it has records... Any Ideas? Omar | |
Hi again, I was wondering, how can I comment an asp tag, in HTML is <!-- -->, on ASP VB Code is ', but an ASP.NET tag like <asp:TextBox1 ></asp:Textbox1> how can I comment it?? I've tried with both HTML and ASP, but no luck. Is there a way to … | |
Hi, I'm using Microsoft Visual C++ and I keep getting this error referring to this one line in my main file . can someone HELP ME ? [code]#include <iostream> using namespace std; int main() { float tempFahrenheit; float tempCelsius; float Omrekenen; cout << "Geef de temperatuur in Fahrenheit: "; cin … | |
Hello, I have some questions about how to work with urls in java. Any help would much appreciated. When I execute the following code from my app it executes just fine. But when I move my app to a different directory and change the url accordingly, it fails. original code: … | |
[COLOR=#000000]I am executing all my c/c++ programs in VC++ cmpiler.[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=blue]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=maroon]<iostream>[/COLOR] [COLOR=maroon] [/COLOR] [COLOR=blue]using[/COLOR][COLOR=#000000] [/COLOR][COLOR=blue]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=blue]int[/COLOR][COLOR=#000000] main() [/COLOR] [COLOR=#000000]{[/COLOR] [COLOR=blue]int[/COLOR][COLOR=#000000] age; [/COLOR] [COLOR=blue]char[/COLOR][COLOR=#000000] sex;[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]cout<<[/COLOR][COLOR=maroon]"please input your age:"[/COLOR][COLOR=#000000]; [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]cout<<[/COLOR][COLOR=maroon]"please input your sex (M/F):"[/COLOR][COLOR=#000000];[/COLOR] [COLOR=#000000]cin>> age; [/COLOR] [COLOR=#000000]cin>> … | |
Hello I am trying to make an VB program to open an excel workbook and just open it. I have two forms. the first is a crude password system that if completed switches to form2. That is fine but i have no idea how to then make this form have … | |
I'm having problem with my program here. See, I have an array of char* as data member in Action class. With the help of getFirst() function, I'm returning the value of the first element in the array. But, when I tried to print out this value in the test.cpp, it … | |
Hi Friends, I'm having a kind of anoying problem, I have a ObjectDataSource with a Select with parameters, one of them receives its value from a DropDownList and the others from textboxes, this dropdownlist parameter seem to not working, and the textboxes are working fine... The gridview just dont show … | |
Hello, Since you all helped me so well the previous time, I have a second question for you. I think it's fairly simple, but for some reason I can't find the answer. I want to write to a file, in a certain format; however, it doesn't write it exactly as … | |
Hi all, need some help. I've just built a (REALLY) simple hit counter to add to my website, and was forced to use ASP.NET. (but im not using visual studio at the moment). I created a class file (counter.cs), and placed it in the App_Code folder. It was my assumption … | |
Hello All, I am trying to parse an ArrayList of Strings into an ArrayList of integers. Does anyone have any opinions on how this should be done? I can parse one element, but parsing the entire string where I am having problems. Any suggestions would be great. Thanks | |
Hi, I'm having a problem using GCC 3.4.2, I'm getting 2 warnings at these lines: [code] int check_format(char array[]){ int i= 0; -------->while(array[i]!='\0'&&array[i]!='\n'){ --------->if( (!isdigit(array[i])) && (array[i]!=' ') && (array[i]!='-') && (count==9 && array[i]!='X') ) program.c:50: warning: subscript has type `char' program.c:53: warning: subscript has type `char' [/code] On GCC … | |
I have an SSTab in my project. I want after I click a command button in Tab 1(now i am in tab1 of the ss tab) to be taken to tab2! Thank you Any help appreciated | |
Hi I am new to the forums and to Python! I am having trouble displaying a text menu in the following format 1: Name 2: Name 3: Name It displays it correctly but then it gives an error message: Below is the code with output and error message. #CreateMenu.py #Create … | |
hi everyone i have a very a very basic question in mind .. i wanted to discuss .. Difference Between these? String s1= new String("java") ; String s2="java" ; and also what for 2 different classes are there in garbage collection? System.gc and runtime.gc ( both are doing the same … | |
Can anyone help me anything related to --- how to draw 3D objects like sphere, cone, arrow, ring etc. I am new to python but know the basic language. Thanx, Anjali | |
Could someone explain how to use a list view in the windows api (Like when your in windows explorer in details view). I read an article about it and searched google, but I'm still not sure how to use it could someone explain it to me. I want a simple … | |
Hey everyone. I need to write program that builds an object of Pizza class and then pass that object to Order class. here's my Pizza class: [code]class Pizza { public: void setCheeseToppings ( int ) ; void setPepperoniToppings ( int ) ; void setSize ( string ) ; void setType … | |
I need to pull the Customer numbers from this string, where IDCUST is the fieldname and the customer code is in the brackets. How would I be able to pull all the customer numbers from it and store them elsewhere? [code] (CODECURN = "BDS") AND (SWACTV=1) AND (( IDCUST = … | |
Can anyone provide any suggestions on how to copy an ArrayList of integers to an Array? Thank you | |
part of the code [CODE] string phone_book[11] = {"Becky Warren, 678-1223", "Joe Looney, 586-0097", "Geri Palmer, 223-8787", "Lynn Presnell, 887-1212", "Holly Gaddis, 223-8878", "Sam Wiggins, 486-0998", "Bob Kain, 586-8712", "Tim Haynes, 586-7676", "Warren Gaddis, 223-9037", "Jean James, 678-4939", "Ron Palmer, 486-2783"}; int x, index; char lookup[50], *strPtr = NULL; /********************************** … | |
Goodday people! This time I am trying to index all files of a kind from any subdirectory. To index all files from a selected directory and 1 sublevel I use this code: [code] arrayCount = 0; DirectoryInfo di = new DirectoryInfo(SourceString); FileInfo[] rgFiles = di.GetFiles("*.mp3"); foreach (FileInfo fi in rgFiles) … | |
Any idea? I get this error: org.apache.jasper.JasperException: An exception occurred processing JSP page /test2.jsp at line 7 4: <title>DB Test</title> 5: </head><body> 6: <% DBConnect d = new DBConnect(); 7: ResultSet rs = d.getResult("SELECT name FROM items"); 8: 9: while (rs.next()) { 10: String name = rs.getString("name"); Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435) … | |
Currently I have a list that I have read from a file and it looks similar to... file = [S,D,S,D,S,D,N,S,D,S,D,N] What I was wondering is there a way to loop through the list so that I get multiple lists. For Example.... List1 = [S,D,S,D,S,D,N] List2 = [S,D,S,D,N] If someone could … | |
Dear All, I'm developing an application in visual basic 6.0. I'm using Crystal Report 11 developer. I've taken Report Viewer using which I can able to view the report but PrintReport method gives error. Anybody has solution for this? Shrinivas | |
How can I make this print the text in the edit box when you push the button instead of "You pushed a button." I have looked all over but I can't figure it out. [CODE] #include <windows.h> #include "resource.h" HWND hWndButton; HWND hWndEditBox; HFONT hFont; /* Declare Windows procedure */ … | |
I am trying to use the bit fields in a useful way to create packed fields that can be sent out as packets. Let's see if my code can help explain: [code] from ctypes import * class myPacketHeader(Structure): _pack_ = 1 _fields_ = [("seqnum", c_ubyte, 8), ("is_command", c_uint, 1), ("address", … | |
im trying to creat a class called Date that includes data members: a month, a day and a year (all type int). that have a constructor with three parameters to initialize the three data members. i have to use a set and a get function for each data member and … | |
Hi, I want to make media player with VB. the problem is when i lunch components window, there isnt any item called Microsoft Multimedia control 6 What should i do?! | |
Hello all, I have a text file with columns of words Boat Car Van Sue Bird Hue Billy Don Yoe... How do I read each separate column into separate arrays. Array 1 will read: Boat Sue Billy Array 2 will read: Car Bird Don... Any suggestions on how to accomplish … | |
Greetings, I'm working on this number guessing game which works, sort off... after it get the guess, it's suppossed to check that number in the void test(int guess, int target) function. It seems that it's totally skipping this. I've been looking at this for a while and don't understand why. … | |
I am a complete newbie to c++ and I am trying to find some tutorials. What I am trying to do is use a variable (from external text file) to rotate a 3D object. Then for the program to take a picture of the position the 3D object is in. … | |
Hey, i am having trouble with a project i have for school. The problem is as follows: I have one database(access), and it contains the specifications for 3 PC's( will be more but not atm), i have added a column stating the specification of the pc. I have an adodc … | |
Hi, I'm working on this project and it requires to manually control a digital camera. I have the dll that is supplied by Cannon, but the dll is unmanaged the the demo project they have with it is in C++ or C. I've been doing a lot of research and … | |
I have a php email form that is giving me greif. It is sending blank messages. Could anyone take a look at the code and help. It would be greatly appreciated. contact.php [code] <script LANGUAGE="JavaScript"> function Validate(form) { if (form.name.value == "") { alert("Please insert your name"); form.name.focus(); return; } … | |
Hey guys, I keep getting a link error in my code. It says this: [code]1>prob4.main.obj : error LNK2005: "private: static int HotDogStand::totalSales" (?totalSales@HotDogStand@@0HA) already defined in prob4.func.obj[/code] Here's my code, maybe someone can help me out. [code]#pragma once #include <iostream> using namespace std ; class HotDogStand { public: HotDogStand ( … | |
[code] public static Connection getConnection(){ if(connection==null){ try{ Class.forName("org.gjt.mm.mysql.Driver"); connection=DriverManager.getConnection("jdbc:mysql://localhost:8084","root","ceyesuma"); }catch(Exception exc){ connection=null;} } return connection; } [/code] Here is the bean to get connected. Should this work? [code] package db; import java.sql.*; import java.sql.DriverManager; import java.sql.Connection; /** * * @author James */ public class DBConnection { static String dbdriver; static … | |
I have made some(10) combo boxes in my project!!! i need to make them depend the one on the other... i mean if the first combobox is a car brand (e.g Ferrari) then the second combobox must only contain ferrari models! is there a way to hide the rest selections … | |
I need help with sql statement that includes two tables one table has id and name, lets call it tbluser second table has id and all other info, lets call it tblinfo Something like this Select id from tbluser where name = txtname Select * from tblinfo where id = … | |
I saw a chat prog on the Internet The web page shows the messages quickly without reloading the web-page... Can anybody do that or teach me how to do that? | |
First if I choose A it take the qty and the only number and shows it as the largest. I believe the smallest works correctly but not sure since I get a warning message about it. The warning messages I get are: [code] loop.cpp(67) : warning C4700: uninitialized local variable … | |
ok, I have a list of numbers and i want to return values in a range that are not in the list of numbers... I'm thinking of something like this: [ number for number in range(1, 10) if != nums ] However, This always prints all the numbers in that … | |
I have to take my current code which displays a menu and repeats until the option 'c' is chosen which quits the program. Now I have to modify that same code to include a function for both A and B. The function for A should have the quantity of numbers … | |
I would like to return a connection to a Bean to make statements to mysql database "ccdb" I'm really not sure of [code] public static Connection getConnection(){ if(connection==null){ try{ Class.forName("org.gjt.mm.mysql.Driver"); connection=DriverManager.getConnection("jdbc:mysql://localhost:8084","root","ceyesuma"); }catch(Exception exc){ connection=null;} } return connection; } [/code] Here is the bean to get connected. Should this work? [code] … | |
Im trying to figure out how to compute a product of ordered pairs. So if I have two sets (1,3) and (2,4), I want to generate the following tuples (1,2), (1,4), (3,2), (3,4). Now I wrote the following [INLINECODE]def orderedproduct(set1, set2): op=[set()] for x in set1: for y in set2: … |
The End.