64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for n.aggel

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 …

Member Avatar for n.aggel
0
418
Member Avatar for teppuus

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. …

Member Avatar for teppuus
0
235
Member Avatar for jdphenix

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 …

Member Avatar for jdphenix
0
687
Member Avatar for metalbassist56

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...

Member Avatar for Duki
0
153
Member Avatar for ptaylor965

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 …

Member Avatar for ptaylor965
0
149
Member Avatar for culebrin

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

Member Avatar for ptaylor965
0
176
Member Avatar for culebrin

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 …

Member Avatar for ptaylor965
0
179
Member Avatar for Donnovan

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 …

Member Avatar for Donnovan
0
200
Member Avatar for ryy705

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: …

Member Avatar for ryy705
0
113
Member Avatar for madhan

[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>> …

Member Avatar for Tom_Zeke
0
5K
Member Avatar for tycoonjamie

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 …

Member Avatar for tycoonjamie
0
109
Member Avatar for wendy2learn

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 …

Member Avatar for Salem
0
117
Member Avatar for culebrin

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 …

0
161
Member Avatar for theraven1982

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 …

Member Avatar for theraven1982
1
763
Member Avatar for AnzJ

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 …

Member Avatar for AnzJ
0
103
Member Avatar for KimJack

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

Member Avatar for KimJack
0
101
Member Avatar for rogelioz

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 …

Member Avatar for Narue
0
266
Member Avatar for Dell XPS

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

Member Avatar for jireh
0
110
Member Avatar for zagrijs

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 …

Member Avatar for zagrijs
0
111
Member Avatar for vinod_javas

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 …

Member Avatar for vinod_javas
1
145
Member Avatar for AnjaliThukral

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

Member Avatar for AnjaliThukral
0
298
Member Avatar for curt22

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 …

Member Avatar for Ancient Dragon
-1
76
Member Avatar for Duki

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 …

Member Avatar for Duki
0
189
Member Avatar for bajanpoet

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 = …

Member Avatar for bajanpoet
0
111
Member Avatar for KimJack

Can anyone provide any suggestions on how to copy an ArrayList of integers to an Array? Thank you

Member Avatar for masijade
0
94
Member Avatar for DeathEvil

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; /********************************** …

Member Avatar for DeathEvil
0
161
Member Avatar for MillStrike

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) …

Member Avatar for MillStrike
0
123
Member Avatar for MonkeyGarage

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) …

Member Avatar for MonkeyGarage
0
115
Member Avatar for deck55

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 …

Member Avatar for deck55
0
93
Member Avatar for kshrini

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

Member Avatar for jireh
0
517
Member Avatar for curt22

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 */ …

Member Avatar for curt22
0
143
Member Avatar for thompsongunner

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", …

Member Avatar for thompsongunner
0
3K
Member Avatar for neilyan

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 …

Member Avatar for neilyan
0
170
Member Avatar for daniweb2013

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?!

Member Avatar for daniweb2013
0
103
Member Avatar for KimJack

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 …

Member Avatar for KimJack
0
121
Member Avatar for Lost in Code...

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. …

Member Avatar for Narue
1
111
Member Avatar for cwarn23

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. …

Member Avatar for Ancient Dragon
0
108
Member Avatar for andrewktmeikle

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 …

Member Avatar for jireh
0
202
Member Avatar for nedwards

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 …

Member Avatar for nedwards
0
193
Member Avatar for jonathan.jbkt

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; } …

Member Avatar for jonathan.jbkt
0
123
Member Avatar for Duki

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 ( …

Member Avatar for Duki
0
92
Member Avatar for ceyesuma

[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 …

Member Avatar for ceyesuma
0
134
Member Avatar for Dell XPS

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 …

Member Avatar for Dell XPS
0
110
Member Avatar for plusplus

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 = …

Member Avatar for plusplus
0
106
Member Avatar for Pro2000

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?

Member Avatar for alpha_foobar
0
197
Member Avatar for wicked357

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 …

Member Avatar for Rashakil Fol
0
125
Member Avatar for rjmiller

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 …

Member Avatar for rjmiller
0
102
Member Avatar for wicked357

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 …

Member Avatar for wicked357
0
123
Member Avatar for ceyesuma

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] …

Member Avatar for ceyesuma
0
185
Member Avatar for OLer94

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: …

Member Avatar for OLer94
0
143

The End.