132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for SolidSora

I'm trying to write a program that prints out all prime numbers from 1 to 300. It isn't working the way I want it to. Right now it appears to have caused an infinite loop. Here is my code. [CODE]#include<iostream> #include<iomanip> using namespace std; int main(){ for(int i=0; i<=300; i++){ …

Software Development c++
Member Avatar for Mahfuz_1
0
320
Member Avatar for baconswife

I am writing a program that outputs whether or not a number is prime. Can anyone help me find where my syntax error is? Also, i get that i = 3; i <= num; i++ would be true for it being a prime number from the other forums I have …

Software Development c++
Member Avatar for Mahfuz_1
0
199
Member Avatar for Shinedevil

[code]#include <iostream> using namespace std; long int math; long int check; long int divider = 1; long int inputnum; void dividerp(); void counter(); void inputp(); void dividerp(){ math = inputnum/divider; if (math == 1 or inputnum == 2 or inputnum == 1){ cout<<"You do have a prime number there!"<<endl; system("PAUSE"); …

Software Development c++
Member Avatar for Mahfuz_1
0
399
Member Avatar for boogeyman77

I'm in serious need of help with a C++ based prime number generator. I have the program to create and run the code, but i dont have the knowledge to develop the code and I'm looking for one of you guys to build the code for me. I need a …

Software Development algorithm c++
Member Avatar for Mahfuz_1
0
641
Member Avatar for mikewyatt

I have 5 image files that I wish to incorporate or embedd inside a program. I am using netbeans and I have created a directory in the files table just under the database directory (I have embedded databases) with the 5 files inside them. For good measure, I have also …

Software Development java java-netbeans
Member Avatar for JamesCherrill
0
154
Member Avatar for Ann aiko

import java.awt.*; import javax.swing.*; import javax.swing.JComboBox; class grid extends JFrame { String[] Sex = {"Male", "Female"}; String[] Day = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"}; …

Software Development java java-swing
Member Avatar for mKorbel
0
116
Member Avatar for somjit{}

Remember High-school maths ? there was this greek letter Sigma ( if i remember correctly ) , followed by an algebraic function like `f(n)` , where `n = a to b` would be short-formed as `a` below the `sigma` , and `b` sitting on top of it. I want to …

Software Development java
Member Avatar for somjit{}
0
796
Member Avatar for khelkely

Q1: Trace the partial of program below: 1. int v = 8, *r, *s; 2. int *p; 3. int q = 100; 4. p = &q; 5. r = p; 6. *p = 20; 7. p = new int; 8. *r = 30; 9. q = v; 10. s = …

Software Development c++
Member Avatar for tinstaafl
0
157
Member Avatar for Xakzi

Hello! Sorry for the bad article title, was not sure what to name it since I couldn't figure out anything good to name it, that would be near my request. Let me begin.. I code with Visual Studio 2010 with C# Windows Form Application. I code everything in combobox1 and …

Software Development visual-studio
Member Avatar for Xakzi
0
118
Member Avatar for DuffManLight

Downloaded and installed latest RE2. When building simple test code with Xcode 5, build fails. #include <iostream> #include <string> #include <re2/re2.h> using namespace std; int main(int argc, const char * argv[]) { unsigned long ulValue = 0L; string sMultiple; string sMatch = "^(\\d+)([KkMm])"; string sData = "2M"; if (RE2::FullMatch(sData, sMatch, …

Software Development apple c++ os-x
Member Avatar for phorce
0
287
Member Avatar for cambalinho

see these class: class test { public: void virtual Created(){} void test() { Created(); } }; class test1 : public test { void Created(); void test1(): test { Created(); } } test1; void test1::Created() { cout << "created test1"; } (these code wasn't tested, but you get the point) can …

Software Development c++
Member Avatar for cambalinho
0
196
Member Avatar for Rawan_92line

i want to know what should i do first , or the main points that i should start with pleaes help me :( Project: General Distribution Center This project aims to develop a C++ program that support a General Distribution Center using object oriented concept. The General Distribution Center has …

Software Development c++
Member Avatar for Rawan_92line
0
258
Member Avatar for jvasher

Should I loop through tiles and delete each one? Or is there a better way? if(tiles->at(i) != NULL) delete tiles->at(i); std::vector<Tile*> tiles; //TODO: need to fix this to match sprite sheet tiles size for (int y = 0; y < 10; y++) { for (int x = 0; x < …

Software Development c++
Member Avatar for Lucaci Andrew
0
248
Member Avatar for reverend818

i need help with a complete source code for c++ program for newton raphson method .the program should have these attributes;one double data member,class,and also have a constructor to initialize the data member as it cannot be negative. The function should return the square root of the data member. The …

Software Development c++
Member Avatar for mike_2000_17
0
391
Member Avatar for Deegirl

Good afternoon, Can someone help to to understand how to write a student's name and final grade to a sequential file. I am doing this in Visual Basics. I see the syntax for write and read, but is not understanding how to use it in coding.

Software Development vb.net
Member Avatar for Deegirl
0
179
Member Avatar for 123pythonme

I am doing an assignment for university, so I can't exactly post the code. So I will have to explain the best I can. I have to draw 3 stars in a row, 5 points, 6 points, 7 points. We have to do it using a for loop and the …

Software Development python
Member Avatar for vegaseat
0
272
Member Avatar for Pashan

Hi guys I'm having major issues with this assignment of mine and I cant even figure out where to get started. Any help would be greatly appriciated. I must write a program that outputs that plays the game Hi Lo with a user until they decide to quit. The program …

Software Development c gaming session
Member Avatar for Pashan
0
2K
Member Avatar for Benjamin_4

hello guys, i have created a jform which contains these field; ComboBox_decCode(description code) ComboBox_itemCode(item code) combo_Area(Branch_Area) ComboBox_dept(Branch_Code) txt_sn(Serial Number) i want to generate a serial key based on these information in my database. Description Description_Code --------------- ---------------- Lands & Building LB(001) Branch_Area Branch_Code ------------ ------------- Labone LB(001) now the idea …

Software Development java mysql
Member Avatar for Benjamin_4
0
149
Member Avatar for Ann aiko

![3b819887a764833c3e81f2ec2e1812d5](/attachments/large/4/3b819887a764833c3e81f2ec2e1812d5.JPG "3b819887a764833c3e81f2ec2e1812d5") ![3b819887a764833c3e81f2ec2e1812d5](/attachments/small/4/3b819887a764833c3e81f2ec2e1812d5.JPG "align-right") ![d7a3344f965976e589fb6c6848d8d9e0](/attachments/small/4/d7a3344f965976e589fb6c6848d8d9e0.jpg "align-left") import java.awt.FlowLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JComboBox; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; public class OtakuHigh extends JFrame{ private JLabel label, label1, label2, label3, label4, label5, label6, label7, label8; private JTextField text1, text2, text4, text5, text7, text8; private JComboBox Mbox, Dbox, …

Software Development java java-swing
Member Avatar for Ann aiko
0
177
Member Avatar for nikolaos

One thread increases an integer named "counter" , and another decreases the same integer. Using synchronized statement on LockObject to control access to counter. If i understand correctly i have to use an Object reference. Can i use synchronized statement on counter somehow? public class Synchronized_Block_Demo { public static int …

Software Development java
Member Avatar for nikolaos
0
344
Member Avatar for Ann aiko

import java.awt.FlowLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JComboBox; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; public class OtakuHigh extends JFrame{ private JLabel label, label1, label2, label3, label4, label5, label6, label7, label8; private JTextField text1, text2, text4, text5, text7, text8; private JComboBox Mbox, Dbox, Sbox, Ybox, SCbox; private JButton Qbutton; …

Software Development java java-swing
Member Avatar for mKorbel
0
213
Member Avatar for logicslab

Dear pals, I installed Turbo c for windows 7 ultimate 64 bit , but it's not user friendly .When it use in full screen the mouse is not working . Any solution for it ? If you know any new C compiler setup let me know. Thanks, Anes

Software Development c
Member Avatar for deceptikon
0
394
Member Avatar for trishtren

Hello, im currently working on a program to split a string based on symbols only, i need to seperate the string around the symbols whilst keeping the symbols as well eg. test_String_123_^; would result in an array containing : [test] [_] [String] [_] [123] [_] [^] However although i have …

Software Development java regex
Member Avatar for masijade
0
278
Member Avatar for bullet_1

I am using the following code to create a log file but getting an error "User-defined type not defined" Help me Thanks in advance Sub main() Dim dDate As Date Dim boDP As busobj.DataProvider 'error occured Dim sLast As String Dim sFileName As String Dim sDir As String Dim dTime …

Software Development pdf visual-basic
Member Avatar for bullet_1
0
273
Member Avatar for Shodow

hi i have a code here that export my listview items to excel but i want to customize each cell size and i want to format the date and landscape environment Try Dim objExcel As New Excel.Application Dim bkWorkBook As Workbook Dim shWorkSheet As Worksheet Dim i As Integer Dim …

Software Development listview microsoft-office vb.net
Member Avatar for G_Waddell
0
325
Member Avatar for willgr

WinHttpGetProxyForUrl always returns ERROR_WINHTTP_BAD_AUTO_PROXY_SCRIPT when I test it with the below code. See [url]http://msdn.microsoft.com/en-us/library/aa384122%28VS.85%29.aspx[/url] for what I have tried to base this on. Can anyone see any flaw in my code that causes this error to always return? I have tested it with many pac files and this is always …

Software Development c++
Member Avatar for Massimo_1
0
1K
Member Avatar for AnhD675

I am using this lex program to analyze the usage of each register, whether they are used as a source, a destination, or used as an indirect addressing, these are my codes, i have to analyze all 12 registers...is there any other efficient way to do these as oppose to …

Software Development assembly ubuntu
Member Avatar for Assembly Guy
0
207
Member Avatar for Nebil

Hi guys, I just figured out the normalization problem.And i'm moving on to the application. But i'm facing a problem,i needed to check if an id exists in the db when an item is inserted. It's saying the title i just wrote on the article.Here's the code i used. 'Tocheck …

Software Development vb.net
Member Avatar for Nebil
0
370
Member Avatar for bkhp

I am to have the user input a temperature and have the computer output which season it (probably) is based on the temperature entered. I have written this much and when I run the program, it seems to have the user enter the temperature in an input box and then …

Software Development java java-swing
Member Avatar for JamesCherrill
0
657
Member Avatar for coolsdudes1992

i am confused about "Checked" in C#. I know it use for overflow checking. Can we use it for undeflow ? Or there is some thing else which an be use for underflow.

Software Development c#
Member Avatar for ddanbe
0
167
Member Avatar for SpottyBlue

I'm having a vowel count problem when I build the code. #include <iostream> #include <string.h> using namespace std; char str1[51]; int vowelA = 0, vowelE = 0, vowelI = 0, vowelO = 0, vowelU = 0; int vCount() { int ii; // Counter cout << "\nResult: " << endl; cout …

Software Development c++
Member Avatar for nullptr
0
157
Member Avatar for mahdihasani

i have in part of my program error "Use of unassigned local variable". long gg = weight << 7;(error 15)

Software Development
Member Avatar for coolsdudes1992
0
86
Member Avatar for Xakzi

Hello! I come here with a tricky question and I do not know how to code it at all. First off, I am coding in Visual Studio 2010 C# Windows Forms Application I need someone to help me code the following example: I have a text file which includes only …

Software Development visual-studio
Member Avatar for Xakzi
0
231
Member Avatar for asundar

Hey everyone, So, I need help understanding why I'm not able sort my code: here is my code (so far) for my selection sort. I have only written the iterative form of Selection Sort, but I know how to do it recursively as well (which is required for my homework). …

Software Development c++ programming-construct
Member Avatar for tinstaafl
0
835
Member Avatar for ReyJEnriquez

Hi Guys. I hope everyone in doing great today:-) I have some problem, this coe does not produce mi in aplhabetical oreder. I am using Heapsort as a sorting algo...and please help me Hope to hear from you guys;-) Public Class MyForm Private MyTable As New DataTable Private MySortedTable As …

Software Development vb.net
Member Avatar for ReyJEnriquez
0
210
Member Avatar for William_6

hello, I created a awk program to work witha data file to output a table and subtotal the rows and total up the collums and average I got it to work but when i added a presentation header before my totals go away. working code so far ------ can be …

Software Development shell-scripting
Member Avatar for William_6
0
232
Member Avatar for jared.geli

As the title says I'm having trouble in my Vehicle Maintenance routine where I will have a a monthly maintenance based on the last maintenance date. If the vehicle has reach 1 month since last maintenance it will show in a datagrid. Also it should select those vehicle that reach …

Software Development microsoft-access vb.net
Member Avatar for jared.geli
0
226
Member Avatar for renzlo

Hi, All, Good day! I would like to ask for help on how to solve below error: Exception: The ObjectManager found an invalid number of fixups. This usually indicates a problem in the Formatter. This is the piece of code where the error occurred: Private Function DeSerializeObject(ByVal PathFile As String) …

Software Development vb.net
Member Avatar for renzlo
0
473
Member Avatar for joester007

How do I count characters using substing and a do while loop? Im trying to make a pogram that will allow the user to type in a phrase and when they click on the search button an inputbox will appear asking for what character to search for. The user types …

Software Development vb.net
Member Avatar for joester007
0
216
Member Avatar for Michal_2

Hello Guys, If I have a string "Registration 00DL5876 Make" is there a way to match the first word and the last ("Registration" & "Make") and than pass the substring "00DL5876" to seperate string ? how about "Primera SR 2.0 D Colour" if i want "SR 2.0 D" ? I …

Software Development java
Member Avatar for Seldar
0
123
Member Avatar for owen99

hi can anyone help me i am trying to get a random character generator which generates 10 characters in ASCII range and then cast them into characters heres my code but its not working. it says error C2440: '<function-style-cast>' : cannot convert from 'std::string' to 'char' heres my code [code=c++] …

Software Development c++ storage
Member Avatar for Anilorap
0
1K
Member Avatar for Daneil

how to write an algorithm that converts deceimal to binary, using mod , div and an array to display the answer

Software Development algorithm c++
Member Avatar for tinstaafl
0
302
Member Avatar for Mafiamanandre

Hi all, I have a form in visual basic with about 62 textboxes. On this form is two columns of textboxes. Textbox 61 -62 is a total textbox for each column. When the user types in digits to 60 textboxes the program must add it up automatically to textbox61/62. My …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
951
Member Avatar for Deegirl

how can i save a .txt file in C:\? I keep on getting a permission box preventing me from doing so.

Software Development vb.net
Member Avatar for Reverend Jim
0
394
Member Avatar for anonlearner

I hace to design a fucntion that draws lines of charaters to create a picture, like a trangle or something. The parameters are: 1) The symbol (letter or blank) 2) The line length(the number of charaters of that symbol) 3) An end line flag to incate the new line started …

Software Development c++
0
127
Member Avatar for theguitarist

Hello, I have a graph that is represented in the form of a grid. For example: V--V --VV V---V VVVVV Each V is a node. If there is another V above/below/to the side of a V then there is an edge between them. I'm to form one single connected component …

Software Development c++
Member Avatar for gusano79
0
152
Member Avatar for nhrnjic6

OK.So i need to bild this table and so I did.But what I cant understand is why it works fine till I hit number 18.then sudenly like half of 1st number-s (array[x]) are missing. can someone please tell me whats the trick.Thank you. #include <iostream> using namespace std; int main() …

Software Development c++
Member Avatar for Schol-R-LEA
0
280
Member Avatar for Mafiamanandre

Hi all, I've got 2 columns with 28 textboxes in ech column. The user of the program I'm making has to type in digits into the textboxes. In each column theres a total box. I'd like to know how can I make coding to display the largest number of the …

Software Development vb.net
Member Avatar for Schol-R-LEA
0
159
Member Avatar for lostnewbie

Hi Guys, Thanks for your help in advance. I have an exe file from sniperspy that I would like to hide behind a picture or attach to a link on a pdf doc which automatically installs stealthily on one click or just installs upon opening of the file. I am …

Software Development pdf
Member Avatar for lostnewbie
0
149
Member Avatar for krystosan

In the scripts ddirectory of my dummy project I have created this file without extension and has given executable permission using chmod +x filterList #!/bin/env python print "Hello World!" 'python ~/Development/python/listFilter/python/filterList.py $1 $2' but still when I run this i get error message saying $ filterList -bash: filterList: command not …

Software Development python
Member Avatar for krystosan
0
809

The End.