43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for theoryforlife

Hello, I'm taking a 100-class (beginner) in C++ Currently I'm stuck in one of the assignments due where it asks for the program to have the user return to the beginning if there's an error, as well as create an out put of: + ++ +++ (...) The current code …

Software Development c++
Member Avatar for theoryforlife
0
249
Member Avatar for jugadengg

hi please solve my problem i am getting linking error in following program. i am using devc++ for copilation linking errors: C:\Users\shiv\AppData\Local\Temp\ccaMbaaa.o(.text+0x286) In function `ZN4list7delnodeEi': C:\Users\shiv\AppData\Local\Temp\ccaMbaaa.o(.text+0x286) In function `ZN4list7delnodeEi': [Linker error] undefined reference to `list::search(int, Node**, Node**)' C:\Users\shiv\AppData\Local\Temp\ccaMbaaa.o(.text+0x62c) ld returned 1 exit status [CODE]#include<iostream> #include<conio.h> #include<string.h> using namespace std; class …

Software Development c++ linked-list
Member Avatar for gerard4143
0
227
Member Avatar for ntrncx

Use a two-dimensional array to solve the following problem. A company has four salespeople (1 to 4) who sell five different products (1 to 5). Once a day, each salesperson passes in a slip for each different type of product sold. Each slip contains the following: a) The salesperson number …

Software Development c++
Member Avatar for VernonDozier
0
466
Member Avatar for rhoit

I am trying to move the huge no of file into different folder.. the files in the style of "HNI [0-9]{3}.*.jpg" i.e [ICODE]HnI 001.Sunday Party.jpg HnI 002.Car.jpg . . . and so on[/ICODE] I want to place the certian no of files in the single folder like.. .[ICODE]mv file1 file2.... …

Software Development shell-scripting
Member Avatar for rhoit
0
451
Member Avatar for atticusMom

I have all figured out I think except exercise 7.20 Extend zuul by adding an Class called item. Each item is created with a description such as rock or stick and a weight. When creating rooms and setting their exits, items for this game should also be created. When player …

Software Development java
Member Avatar for atticusMom
1
5K
Member Avatar for dnk

how to clear all text box?? i always use this : [CODE]text1.text = "" text2.text = "" text3.text = "" ....[/CODE] but how about if i have many text box? there are an other way to do this??? Please help. ASAP. best regards

Software Development visual-basic
Member Avatar for the_h
0
108
Member Avatar for arkanoid

I did not see anything about how to have multiple colors in a textbox. Is this possible, or must I use a richtextbox?. I would like to keep it simple if possible by setting it up in a standard textbox. Can someone help me with this? As an example of …

Software Development vb.net
Member Avatar for arkanoid
0
121
Member Avatar for tcl76

hi, assume data looks like this: cell Bit 0 1 1 X 2 1 3 0 4 X 5 X 6 X 7 X 8 1 9 X 10 0 11 0 12 X 13 X 14 1 15 1 And i want to group 4 bits into each group …

Software Development python
Member Avatar for tcl76
0
249
Member Avatar for rbduck09

This is the algorithm that I am working from Algorithm Name: UPDATE_CHECKBOOK [B]Problem Input(s):[/B] start_balance - the beginning checkbook balance. xact_amount - the amount of the transaction. xact_type - the type of the transaction (credit or debit). [B]Problem Output(s)[/B]: new_balance -- the ending checkbook balance. Relevant Formula(s): Adding a credit …

Software Development algorithm c++
Member Avatar for rbduck09
0
145
Member Avatar for rockstat

Hello Everyone I am new to this forum and hope I can get some help and vice-versa. I am doing this little project for my self in C Sharp and it involves WMP. I have provided my code at the bottom and appreciate any help I can get. I am …

Software Development file-stream
0
130
Member Avatar for thebigbroski

I was working on Problem 17 on Project Euler: [url]http://projecteuler.net/index.php?section=problems&id=17[/url] and I'm stuck; my answer is close, but not correct. I got the answer 21108 with the following code: I do realize the code can be optimized, but I would like to simply get this to work, and not try …

Software Development java
Member Avatar for thebigbroski
0
527
Member Avatar for abarrett86

I have a C#.NET Website that stores status logs from hardware installations. A report is stored in a report_info table and it's data entries are stored in report_data. I first insert into the report_info table and retrieve the insert ID using: [CODE] cmd.CommandText = "SELECT @@IDENTITY"; // Get the last …

Software Development
Member Avatar for abarrett86
0
159
Member Avatar for CHOCHOCHO
Member Avatar for CHOCHOCHO
0
87
Member Avatar for 24x24

First off: I am not looking for somebody to do my homework. Although it would make it easier for me in the short term, please don't "help" me by writing my code for me. I would rather lose points for being late and understanding the code than get the grade …

Software Development java programming-construct
Member Avatar for peter_budo
0
138
Member Avatar for jember

I need immediate help here. Please help me! :) I just can't figure out why my program is crashing while executing it. The compiling of the program is fine. (no syntax errors) I used Dev C++ 4.9 for this version. [QUOTE][CODE] #include <iostream> #include <conio.h> #include <iomanip> #include <string> using …

Software Development c++ visual-studio
Member Avatar for jember
0
159
Member Avatar for lexusdominus

i would never ask for debugging help usually but i am totally lost and have wasted far too much time on this. both peices of code compile correctly. the original function works fine with my program and the second one crashes. the original code checks a textfile in the root …

Software Development c++ ios
Member Avatar for lexusdominus
0
319
Member Avatar for Oblivious21

Hey guys and gals I need alittle help. i have an assignment that needs to print a certian number of stairs according to a user input. Example program run (user input is in bold): Please enter the number of rows: 4 Please enter the number of stars in row 1: …

Software Development java
Member Avatar for Oblivious21
0
165
Member Avatar for alex9292

hi i have a project to do for school and im not sure if im on the right track i would like some opinions here is the description of what i have to do [U]INSTRUCTIONS Part A 1. Start a new C# project named SalespersonDemo.cs, as shown in Exercise 9 …

Software Development
Member Avatar for Momerath
0
165
Member Avatar for dimProg

Hello, I'm new to c++ and we're just starting classes and objects in class. I've done a bit of programming in Java and I'm struggling to initialize an object using a variable. I must be missing something fundamental but I can't for the life of me figure it out. Here's …

Software Development c++ oop
Member Avatar for rickster11
0
1K
Member Avatar for revjim44

I have a form that has two text boxes. The first is visible, and the second one is not. How do I go about having the second text box become visible if the user tabs out of the first text box? I wrote a KeyDown event handler to check for …

Software Development
Member Avatar for ddanbe
0
204
Member Avatar for carlitosway17

I am creating a C# forms application, a gradebook in particular everything is fine except I keep getting this error : [COLOR="Red"]cannot convert type string into int[/COLOR] Here is my code [CODE] // Fig. 18.9: CreateFileForm.cs // Creating a sequential-access file. using System; using System.Windows.Forms; using System.IO; using GradeBook; public …

Software Development
Member Avatar for carlitosway17
0
1K
Member Avatar for Sundayy

[B]I'm new to C++ and I need help in writing code:[/B] Lucy likes to jog in the morning. As she jogs, she counts the number of strides, she makes during the first minute and then again during the last minute of her jogging. She then averages these two numbers together …

Software Development c++ ios
Member Avatar for Sundayy
0
169
Member Avatar for draven07

..Hi to all...just want to ask.. ..I have already created an ideal layout for my calculator..my problem is...I dont know how to insert a value into a field everytime I press a button(0 to 9)..without deleting the previous integer after I press my operator.. ..how shall I do so..??..

Software Development java
Member Avatar for draven07
0
97
Member Avatar for jlego

kind of directed towards adatapost... in most of my applications, i have a public function called DBUpdate() [CODE] Public Sub DB_Update(ByVal strQuery As String) Dim ADOCmd As New ADODB.Command Try If ADOConnect.State = ConnectionState.Open Then Call CloseConnection() ADOConnect.Open(dsn, user, pass) ADOCmd.ActiveConnection = ADOConnect ADOCmd.CommandText = strQuery ADOCmd.Execute() Catch ex As …

Software Development vb.net
Member Avatar for jlego
0
152
Member Avatar for yeticannotski

Dear All, I am struggling to write my first "useful" python script, which is a backup tool. After hours and hours of trial and error, I finally got it to create two different lists. The first list is that of the files to be copied: [CODE]['C:\\Folder\\Foo.txt', 'C:\\Folder\\Folder1\\Foo1.txt', 'C:\\Folder\\Folder1\\Folder2\\Foo2.txt', 'C:\\FolderB\\FooB.txt', 'C:\\FolderB\\FolderB1\\FooB2.txt'][/CODE] …

Software Development python
Member Avatar for yeticannotski
0
3K
Member Avatar for Dadkhah

Hi. I using this Thread "Serial port communication using C++ = "http://www.daniweb.com/forums/thread56329.html" and I change it for solved the some error in program. This is my source code: serial.h #[CODE]define FC_DTRDSR 0x01 #define FC_RTSCTS 0x02 #define FC_XONXOFF 0x04 #include <stdio.h> #include <time.h> #define VC_EXTRALEAN #include <string.h> #define ASCII_BEL 0x07 #define …

Software Development c++
Member Avatar for Dadkhah
0
251
Member Avatar for commando1200

Im trying to make a tax and tip calculator and whenever the tax comes up it goes 10 or more decimal places and im trying to restrict it to two. [code=java] public static void main(String[] args) { double cost, total, tip, taxtotal, tiptotal, subtotal, grandtotal; Scanner myScanner = new Scanner(System.in); …

Software Development java
Member Avatar for commando1200
0
197
Member Avatar for riotburn

I just got a program that does forward substitution. It is working fine but I would like to make it so the user can enter size of both 2D n x n array and a n x 1 array and then be able to enter the elements of the arrays. …

Software Development c++
Member Avatar for attefeh
0
5K
Member Avatar for xxxferraxxx

Hi, I need to make "Keygen" that gen text not randomly with two text boxes, i need to use it for "username and "password" gen that i puted to gen. Please help with the code :)

Software Development vb.net visual-basic
Member Avatar for xxxferraxxx
0
209
Member Avatar for strungoutfan78

Hey everyone. I'm brand new to C++ and programming in general and this is my first post here. I've found lots of good info here and these forums helped me a lot last semester. I've got a problem here though. This is a small bit of code I had to …

Software Development algorithm c++ visual-studio
Member Avatar for strungoutfan78
0
399
Member Avatar for SavnetSinn

Hey all. I'm in the process of learning Java in my spare time, and I've bumped into a problem that I'm having a hard time wrapping my head around. I'm writing a small game (currently little more than an animation) involving a handful of blocks moving on-screen. I've created a …

Software Development gui java
Member Avatar for SavnetSinn
0
4K
Member Avatar for eikal

Hi guys, my program im working on ends when it shouldnt..... here's the main method. [code] public static void main(String[] args) { String answer; do { boolean whole=false; boolean whole2=false; Scanner sc = new Scanner(System.in); int one=0, two=0; do { try{ System.out.print("Enter the first whole number: "); one = sc.nextInt(); …

Software Development java
Member Avatar for ztini
0
153
Member Avatar for MaDo4

Hi, I have an assignment where i'm supposed to read from a Input File and save it to an output file. The final expression should only contain alphanumeric characters. The code that I have so far gives me both symbols and alphanumeric characters. I was wondering if anyone saw anything …

Software Development c++
Member Avatar for MaDo4
0
182
Member Avatar for techningeer

I am using the CodeLite IDE. I compiled the following program using CodeLite (It is a C++ program): [CODE]#include <iostream.h> int main() { cout << "Hello World\n"; return (0); }[/CODE] It returns this message: g++ -c "/home/keagan/.coding-work/Hello/printamessage.cc" -g -o ./Debug/printamessage.o "-I." "-I." /home/keagan/.coding-work/Hello/printamessage.cc:1:23: error: iostream.h: No such file or directory …

Software Development c++ ide
Member Avatar for techningeer
0
398
Member Avatar for crapgarden

[B]QUESTION 1[/B] In this line of code, I get that it's using the date/time to seed the code for a more random number each time, I'm just wondering what the < > operators are doing? [CODE]srand(static_cast<unsigned int>(time(0))); [/CODE] I realize, they're making time into an unsigned int, but why not …

Software Development c++
Member Avatar for pseudorandom21
0
467
Member Avatar for LKMaxwell

All, I’m new to C++ and trying to figure out the best way to do a multidimensional array of pointers to a class. The code I am presenting demonstrates several questions I had and am hoping to get some help with each question. The basic idea is to create myMatrix, …

Software Development c++ visual-basic visual-studio
Member Avatar for pseudorandom21
0
240
Member Avatar for carlitosway17

I am trying to create a grade book form using the following class createfileform.cs I keep getting the following errors [COLOR="Red"]1:The name 'GetTextBoxValues' does not exist in the current context 2.Cannot implicitly convert type 'string' into 'int' [/COLOR] Here's My Code.[CODE] // Fig. 18.9: CreateFileForm.cs // Creating a sequential-access file. …

Software Development
0
78
Member Avatar for RenanLazarotto

Hey people! I've saw many many times lots of custom controls, so I decided to build mine. I just don't know how :$ what do I need do to do to build a custom listbox control? Thanks!

Software Development vb.net
Member Avatar for RenanLazarotto
0
1K
Member Avatar for carlitosway17

Hi I am New to C# i Am trying to create a grade book form but I cannot build successfully because of the following error. [COLOR="Red"]The name 'InitializeComponent' does not exist in the current context [/COLOR] [code] // Fig. 19.7: GradeBook.cs // A reusable Windows Form for the examples in …

Software Development c c# c++
Member Avatar for carlitosway17
0
2K
Member Avatar for carlitosway17

Hi Am currently taking a Java class and we are supposed to use turtle graphics to draw the following shape rectange made of Asterix ************* * * * * * * * * * * * * * * ************* My program builds and compiles successfully but I cant get …

Software Development java
Member Avatar for carlitosway17
0
258
Member Avatar for bettybarnes

Conversion from string "Widow/Widower" to type 'Integer' is not valid. here is my code [CODE]classLibrary.addParameter("@Sex", SqlDbType.VarChar, txtSex.TextLength, txtSex.Text) classLibrary.addParameter("@Room_ID", SqlDbType.VarChar, txtRoom_ID.TextLength, txtRoom_ID.Text) classLibrary.addParameter("@CivilStatus", SqlDbType.VarChar, cboxCStatus.SelectedItem, cboxCStatus.Text) classLibrary.addParameter("@Nationality", SqlDbType.VarChar, txtNationality.TextLength, txtNationality.Text) classLibrary.addParameter("@Religion", SqlDbType.VarChar, txtReligion.TextLength, txtReligion.Text)[/CODE]

Software Development vb.net
Member Avatar for jlego
0
240
Member Avatar for prvnkmr194

I have a 2d array of size 4X4 that is [CODE] int arr[4][4]; [/CODE] i want to initialize this from 1-15 but in random manner not sequential example 7 8 9 5 1 2 12 14 3 6 10 13 11 4 15 0 I try [CODE]random()[/CODE] function but iam …

Software Development c
Member Avatar for prvnkmr194
0
438
Member Avatar for Lord_Migit

Hey folks, just a quick question i can't seem to find the answer to. If i overwrite a container with a pointer in it, does the pointer and therefore the object it points to still exist, and would that be considered a bad handling of memory. For instance. I have …

Software Development c++ motherboards-cpu-ram
Member Avatar for Lord_Migit
0
145
Member Avatar for lishannx

the above code pasted can only drag the button but not into the picturebox. pls help.[code]hi, i need to drag a button into a picturebox and when the button is dragged inside the picturebox, i want it to be able to move around also. but my code i did only …

Software Development
Member Avatar for fkomment
0
151
Member Avatar for elsiekins

Hello Using : [CODE] cout << "enter 5 letter"; getline(cin, letter); [/CODE] executes fine but when running PC- Lint: getline(cin, expectedLabel): error 534: (Warning -- Ignoring return value of function 'std::getline(std::basic_istream<char,std::char_traits<char>> &, std::basic_string<char,std::char_traits<char>,std::allocator<char>> &)' error 830: (Info -- Location cited in prior message) I was wondering if anyone could tell …

Software Development c++
Member Avatar for Narue
0
259
Member Avatar for RenanLazarotto

Hey guys! Some time ago, I saw someone asking about trial software protection, and my first thought was a '30-day evaluation' mode. I was thinking on how it can be done without using any third-party programs. How can I detect the first run and count down (or up) the number …

Software Development vb.net
Member Avatar for CodeWord
0
348
Member Avatar for Arbus

Hello friends, I am having a trouble with dosbox 0.72. I opened turbo c++ using dosbox and tried a program. But it throws an error 'unable to create hello.obj'. my program [CODE]#include<iostream.h> #include<conio.h> void main() { cout<<"hello"; }[/CODE] I gave this while opening turbo c++ in dosbox... Z:\>mount c d:\turboc3\ …

Software Development c++
0
64
Member Avatar for Annettest
Member Avatar for Jake.20

I'm having a problem with the error in verifying the usernames that are already existing in the record/database. When you inputted a username that already existing it will throw an exception, and when you change the username, it still throws the exception.

Software Development vb.net
Member Avatar for Jake.20
0
173
Member Avatar for alex55

I have a program which i need to run with 2 input files 1 is no problem but i have no idea where to start with having it run with 2 anyone have any ideas? basically heres how it goes 1)have the program run with data01.dat 2)outputs results to output.dat …

Software Development c++
Member Avatar for alex55
0
226

The End.