43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for lastbencher

C++ course has started in my college. I would like to know the best beginner book for C++. My teacher has referred Robert Lafore and The Complete Reference. Since there are a lot of suggestions given in the sticky thread, I am confused. Thanks in advance :)

Software Development c c# c++
Member Avatar for lastbencher
0
227
Member Avatar for morred

Heya, still rather new to programming, I'm having trouble understanding NullPointerException. The code below throws NullPointerException at rows 30 and 92. I do not quite understand why (as I understand it row 30 won't be run before the objects are created)? Any help would be appreciated!! [CODE]public class Uppg5_OH { …

Software Development java
Member Avatar for morred
0
157
Member Avatar for MrBillyUK

Hi all! I am having some trouble displaying the whole of a file within a JTextArea. The problem is that every new line of code that's read is showing within its own JTextArea rather than the text being displayed within a single JTextArea. I assume that the problem is something …

Software Development gui java java-swing
Member Avatar for MrBillyUK
0
148
Member Avatar for Reeseoo

Hi all new to this forum, just thought i'd post in here because i am having a bit of trouble with an assignment... basically i have this class in a header file called Product.h... [CODE] class Product { private: int _id; unsigned int _price; public: }; [/CODE] I access this …

Software Development c++ oop
Member Avatar for Reeseoo
0
535
Member Avatar for joydsouza90

:?: Is there any way, in Turbo C++, by which we can make the mouse disappear when it enters a certain area of the screen ? I have tried this but it doesnt seem to work completely.... ------------------------------------------------------------------------------------[code=c] void initmouse() { union REGS in,out; in.x.ax=0; int86(0x33,&in,&out); } void showmouse() { …

Software Development c++
Member Avatar for sourabhjaiswal
0
1K
Member Avatar for skix

Hello, I am fairly new to Python. I have only skimmed the surface in an introductory class I just finished in college. As my first program in Python, I am attempting to make a text editor. I am wondering if there is a universal command to bring up a Save …

Software Development python
Member Avatar for Notouch
0
11K
Member Avatar for the_kitoper

I have a problem, whenever I attempt to use the following expression it returns -3. Can you please explain why this is? [CODE] int level = ((RoD * 10) - 50) / 15; std::cout << "Level = " << level << std::endl; [/CODE]

Software Development c c# c++ mathematics
Member Avatar for LRRR
0
176
Member Avatar for superjj

Hi I want to save a txt file in a folder in AppData. Fist how can i make a folder in AppData. ""Environment.SpecialFolder.ApplicationData" I know that this exist, but how to use it now. when the folder is ready, how to save something in it. I'm using streamwiter. thanks in …

Software Development
Member Avatar for superjj
0
439
Member Avatar for D33wakar

If there's a list like below [CODE]s=['b','a','r','r','i','s','t','e','r'][/CODE] and if I tried to remove every 'r' from the list like this [CODE]>>> for x in s: if(x=='r'): s.remove(x)[/CODE] it gives the following result. [CODE]>>> s ['b', 'a', 'i', 's', 't', 'e', 'r'][/CODE] Why isn't the last 'r' removed from the list.

Software Development python
Member Avatar for D33wakar
0
104
Member Avatar for manhthaodn

I'm having problems with the progress bar in my project :( [U]Introduction[/U]: I made a small program to send notice via email to each member in a list (Excel file - sequential reading user name of account in excel file will be made ​​by the program)and the attached file corresponding …

Software Development
Member Avatar for hericles
0
100
Member Avatar for VidyaYadav

Hi, In my application i am taking multiple image files from user using openfiledialog and display those image files in flowlayoutpanel. After pressing on Insert button i used to copy all those images in a folder (C:\Images). When there is no file exists the file get copied easily, but if …

Software Development c# file-system
Member Avatar for technext
0
683
Member Avatar for kshahnazari

Hello everyone , i am new to c# so please don't get upset with my question . I'm working with system.Io look here [URL="http://msdn.microsoft.com/en-us/library/system.io.directory.aspx"]http://msdn.microsoft.com/en-us/library/system.io.directory.aspx[/URL] now what does Directory.CreateDirectory(path); means , why when we have a path we create a directory . please make me understand

Software Development
Member Avatar for kshahnazari
0
95
Member Avatar for thing2

Hello, I am building a web browser with tab control using VB 2010. I have everything working good so now I want to have it save the browser tabs when I shut down the browser and have them re-opened when I run the browser again like Chrome or Firefox would …

Software Development vb.net visual-basic web-browser
Member Avatar for codeorder
0
571
Member Avatar for hovestar

Hello I'm working on printing a grid of any size and labeling it numerically or alphabetically I have the code that creates the grid, but I have no idea how I would label it... Here is the code that crates the grid: [CODE] def grid(): y = 5 #int(raw_input("How tall …

Software Development python
Member Avatar for TrustyTony
0
494
Member Avatar for daveydrake

Hey. I am working on some sort of client + project management system. Each client can have many projects, many projects can have many staff. The Link (Junction) table allows for many staff members to be linked to the projects. I have attached the relationships which have been put together …

Software Development dataset vb.net
Member Avatar for daveydrake
0
245
Member Avatar for ben25x

This code prints coordinates for a square that another program uses. For space's sake I have cut out all the other program's code, but I believe it is a simple syntax mistake with my if() statements. I have followed the rules and looked just about everywhere and followed all of …

Software Development c programming-construct
Member Avatar for Adak
0
174
Member Avatar for 2concussions

hello. i am trying to make a text editor. i can't figure out how to get the file that i select in the JFileChooser to show in the JTextArea. and I also can't figure out how to get the text from the JTextArea to save into a .txt file. [code=java] …

Software Development file-system java java-swing
Member Avatar for 2concussions
0
444
Member Avatar for pwolf

okay, so i was doing an exercise for this beginning python course i got my hands on, and i just completed the exercise (took longer than it should have though) and for some reason, when i run it, it returns data i didn't expect, and when i run it again …

Software Development python session
Member Avatar for pwolf
0
173
Member Avatar for TheForeRunner

i want to build an application that automatically floods a text box with text from another text box on button click. i dont even know where to begin

Software Development
Member Avatar for TheForeRunner
0
111
Member Avatar for Fireprufe15

I am making a small game, just to sharpen up my Delphi knowledge before school starts again, and also to show of to my friends. So in this game I have five integers and I need to check if at least three of them equal each other. How would I …

Software Development delphi pascal
Member Avatar for pritaeas
0
139
Member Avatar for shandoosheri

Hi i need to view all files with their names and icons From a specific directory in a grid style inside my c# winform app Any help would be appreciated Thank you for your time

Software Development
Member Avatar for thines01
0
713
Member Avatar for Karlwakim

Hi, i am new to java and just want to know if java is heavily used in software. And if we use it to make large applications, will it run slow ??

Software Development java
Member Avatar for Karlwakim
0
380
Member Avatar for BDove

I'm having trouble finding how to write to a C++ WinAPI TextEdit control programatically. Here is my code for the TextEdit control: [CODE] case WM_CREATE: { OutputBox = CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", "", WS_CHILD | WS_VISIBLE | WS_VSCROLL | ES_MULTILINE | ES_AUTOVSCROLL, 10, 90, 410, 235, hwnd, (HMENU)OUTPUTBOX, g_hInst, NULL); break; } …

Software Development c++ visual-basic
Member Avatar for BDove
0
215
Member Avatar for johnnydarten

Dear all, I'm a C++ beginner and I'm facing a problem with C++ program running on Dev C++ 4.9.9.2. The following program builds and compiles just fine however when I try to execute it it stops before getting any output. Actually the line causing the problem might be the "y_pos[][]" …

Software Development c++
Member Avatar for johnnydarten
0
1K
Member Avatar for Cenchrus

I've been googleing the syntax, function, and examples for these keywords, but to no avail: 1. as 2. with 3. assert 4. pass 5. yield 6. break 7. except 8. class 9. exec 10. in 11. raise 12. continue 13. finally 14. is 15. for 16. lambda 17. try Help …

Software Development python seo
Member Avatar for Cenchrus
0
166
Member Avatar for dennysimon

Hello all I have classes all bundled in a package The name of the package is components All the classes placed in a directory c:\LJava\build\components The names of the clases are a.class b.class and c.class How to jar this package ? I use dos prompt(not net beans) main class is …

Software Development java
Member Avatar for dennysimon
0
146
Member Avatar for agent154

I'm trying to programatically set IE options such that when I print a page from my control, it will not print the header and footer, as is the default setting for printing a web page from IE. I found out how to do so from [URL="http://support.microsoft.com/kb/313723"]http://support.microsoft.com/kb/313723[/URL], however I am having …

Software Development printer
Member Avatar for agent154
0
1K
Member Avatar for bohling

OK, first off I have figured out the prime number algorithm...I guess. What I am needing help with, or wanting the answer to, is how to count how many primes are being displayed. To wit: Enter a Number: 10 There are 4 Primes. The Primes are: 7 5 3 2 …

Software Development algorithm c++
Member Avatar for bohling
0
228
Member Avatar for Dmiller071

Hi all! I've come very close to finishing this applet of mine but I'm stuck on one last part. The main purpose of this applet is just to fetch some data from a URL (read in 1 line, parse it, and display the data.) After starting this project, I found …

Software Development java java-swing
Member Avatar for NormR1
0
317
Member Avatar for rhguh

I am working on a project that requires a CSV file to be read into a multidimensional array. I loop through the array, and set multidimensionalarray[x][n] to the corresponding data in the CSV file, but I keep getting IndexError: list index out of range. I can't figure out why, and …

Software Development os-x python
Member Avatar for rhguh
0
294
Member Avatar for adityatandon

Hey guys, I'm having this problem of trying to open shortcuts, i.e (.lnk) files and am also trying to open powerpoint slideshows (.pps) files through turbo c++. It didn't work so what i did was write a .bat file to open those programs and then converted that .bat file to …

Software Development c++ file-system
Member Avatar for adityatandon
0
900
Member Avatar for Falcon25

Hi guys happy new year, hope you all have a great year ahead of you Anyway I'm a little bit stuck on a question and thought I'll ask for a bit of help: So I'm using a Windows Forms Application and the user types in some text within a textbox, …

Software Development
Member Avatar for lxXTaCoXxl
0
193
Member Avatar for abhishek_s_n

Here is a simple code of chat between two peers. According to me, the code does what it should have but I am facing difficulty solving this SocketException error. This code worked fine till i made the last modifications. And now I am finding it difficult to trace the error. …

Software Development java java-swing socket-programming
Member Avatar for abhishek_s_n
0
291
Member Avatar for HASHMI007

[CODE]// Sorting Techniques.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include<iostream> using namespace std; void Bubble(int x[],int n ){ int temp , j , pass; int flag=1 ; for(pass=1;pass<n-1 && flag==1;pass){ flag=0; for(j=0;j<n-pass-1;j++){ if(x[j]>x[j+1]){ flag =1; temp=x[j]; x[j]=x[j+1]; x[j+1]=temp; } } } } // Env\d …

Software Development c++
Member Avatar for HASHMI007
0
136
Member Avatar for spach79

Hello, Could you please tell me since I spent so much time on this, how to create multiple text boxes based on the selected combo box value (eg. 1,2,3,4,5....). I tried for loop but I only get one text box created. Basically if I select value 4 from the combo …

Software Development
Member Avatar for link_umer
0
190
Member Avatar for shandoosheri

Hi guys I need a little help in viewing all .txt files in a folder in a thumbnail view and allowing the user to open it in the default txt editor Any help would be appreciated Thank you

Software Development
Member Avatar for hericles
0
192
Member Avatar for Smartflight

The aim is simple: Input a string from the user, input a word that is to be searched in the string, and return "Found" or "Not found" I have worked down the following code, and it works. [CODE]#include <iostream.h> #include <stdio.h> #include <string.h> void main () { char para[200], word[20]; …

Software Development c++ programming-construct
Member Avatar for Smartflight
0
15K
Member Avatar for Dmiller071

Title says it all. I'm loading my image with the statement below [CODE] //logo = getImage(getDocumentBase(),"http://fromdustelune.com/FD_Logo.png"); logo = getImage(getDocumentBase(),"FD_Logo.png"); [/CODE] *The commented one won't work until I sign this applet (or so I believe that's how it's done* Then I call the paint method: [CODE] public void paint (Graphics g){ …

Software Development image java java-swing
Member Avatar for NormR1
0
220
Member Avatar for rotten69

Hi everyone, I'm just wondering why this method below causes an infinite loop to happen. I thought it would run once and then stop. Anyone can explain this? that'll be great. [code] public String printer(String s){ if (s.length() >= 5){ System.out.println("I'm " + s + " And my length = …

Software Development java printer
Member Avatar for rotten69
0
124
Member Avatar for R32@

Hello, My prof asked me to write a program that takes some information and save them for further uses. But I do not know how to save and keep information for a long time in java. I think I have to use arrays, but I don't know what should I …

Software Development java
Member Avatar for R32@
0
3K
Member Avatar for axwell

Hy, i'm trying to get the output text from a page, but i receive the following error: System.Null.ReferenceException : Object reference not set to an instance of an object. [CODE] webBrowser1.Navigate(URL); try { string doc; doc = webBrowser1.Document.Body.OuterText; if (doc != "Invalid Arguments !") { //DO something } } catch …

Software Development
Member Avatar for lxXTaCoXxl
0
242
Member Avatar for animefun2

[CODE] #include<stdio.h> #define MAX 4 main() { float A[MAX]; int i; for(i=0;i<MAX;i++) scanf("%f",&A[i]); return 0; } [/CODE] im using Visual C++ and doesnt give me any compilation error it keeps giving me a run time error after i enter the 1st number i can't figure out whats wrong :S help?

Software Development c
Member Avatar for abhishekjha
0
259
Member Avatar for dr_iton

I need help in the following C# programming: [I]Vehicle manufacturers always offer new saving fuel cars to new drivers. The Renault manufacturer has taken this in consideration and offered new car Renault Clio to a driver Syle LeSylani for one year use. Syle has kept evidence of past kilometers at …

Software Development c#
Member Avatar for thines01
0
143
Member Avatar for pwolf

so im trying to make it so that pressing enter without inputting any value, will break the loop, however, an empty string can be used because of [ICODE]for i in range(len(x_str_array)): x[i] = int(x_str_array[i]) bit.[/ICODE] [CODE] 'Exercise 7.3' # modified program from exercise 7.2 a=1 z="" while x !=z: x_str …

Software Development python
Member Avatar for pwolf
0
212
Member Avatar for archelle

Anyone here who knows how to convert system month,Day,Hour,Minutes,Seconds each into number format like month=12 (If December) Day=30 Hour=12 (In 24 hour format) Minutes=55 Seconds=45 Thanks for help in advance...

Software Development vb.net
Member Avatar for archelle
0
135
Member Avatar for DJSAN10

Why do we have to suffix long literals by 'L' or 'l' even though we have specified the datatype ? Does it serve any special purpose?

Software Development c
Member Avatar for DJSAN10
0
159
Member Avatar for dev90

i want to go back to main menu while hitting escape key in my programme. for that i have make a function. [CODE]void exit (char[]) { if(char==27} { exit(0); } } [/CODE] but i have many user inputs which are of type int,float,char..... so i have tried, [CODE]while(kbhit!=27) { //coding …

Software Development c
Member Avatar for adityatandon
0
2K
Member Avatar for PeTo.

hey , I'm a beginner & need some help in C++ , I want to generate 4 unique numbers " any number isnt repeated within itself " I figured a way to generate 4 random numbers but they arent unique [CODE]srand((unsigned)time(0)); int number= (rand()%9999+1000);[/CODE] , I also need to put …

Software Development c++
Member Avatar for adityatandon
0
2K
Member Avatar for aquamarine_kath

I am writing a program that manipulates text file using console application. What I want to do is to delete 1 specific line based on the ID entered by the user. For example: DR-01|Coke|25.80 DR-02|Sprite|25.80 DR-03|Sarsi|25.80 DR-04|Coke|25.80 When the user entered DR-02, the result would be like this: DR-01|Coke|25.80 DR-03|Sarsi|25.80 …

Software Development vb.net
Member Avatar for aquamarine_kath
0
692
Member Avatar for sarya_w

Could someone help me to convert this Scheme Code to Objective-C? (define-type RCFAE [num (n number?)] [add (lhs RCFAE?) (rhs RCFAE?)] [id (name symbol?)] [fun (param symbol?) (body RCFAE?)] [app (fun-expr RCFAE?) (arg-expr RCFAE?)] [with (id symbol?) (named-expr RCFAE?) (body RCFAE?)] [if0 (cond RCFAE?) (then RCFAE?) (else RCFAE?)] [rec (id …

Software Development objective-c
Member Avatar for sarya_w
0
375

The End.