132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for valestrom

Just wondering, how high can c++ really count? Because I made a fibonacci program, and it starts acting weird and printing negatives at about 10-11 places. With both long, and int variables? Is it impossible to count higher? If not, how?

Software Development c++
Member Avatar for Clinton Portis
0
263
Member Avatar for khentz

Hi, Please help me how to pass value from database to a variable. This is my query: [CODE] Dim it As String = "Mouse" Dim itNo As String SELECT * FROM tblITEquipmentName WHERE equipmentName LIKE '" & it & "%'" [/CODE] I would like to get the ItEquipmentNo and pass …

Software Development vb.net
Member Avatar for khentz
0
9K
Member Avatar for arson09

I'm having trouble creating a function with one parameter that reads from a file and then creates and returns a dictionary based on what's in the file. And example of whats in the file: [ICODE]115 139-28-4313 1056.30 135 706-02-6945 -99.06 143 595-74-5767 4289.07 155 972-87-1379 3300.26[/ICODE] What i have: [CODE]open('balance.txt', …

Software Development python
Member Avatar for arson09
0
566
Member Avatar for Procx

Hello, I'm currently working on a small database project with various search algorithms. Right now I seem to be a little stumped. Basically what I need to is to read a huge file of strings, such as these 2 lines: Abram,Smith,70,M,Nursing Unit,324b Ace,Lewis,7,M,Intensive Care Unit,324c I then need to delimit …

Software Development java
Member Avatar for Procx
0
91
Member Avatar for namratag

What is advantage of Component object Model(COM) over DLL?

Software Development c++
Member Avatar for Zssffssz
0
88
Member Avatar for Stokes37

I can not figure out how to go to the next line. In the data we read in number of test on the 1st line then student names followed by their test scores on the following lines. My problem is I can only get the first student and his average …

Software Development c++
Member Avatar for Stokes37
0
143
Member Avatar for ben1996123

What I want to do is read a whole paragraph of text from a custom file. How would I do this without doing something silly like this? [CODE]while(someFile >> word1 >> word2 >> word3){ //etc. }[/CODE] I need to be able to read 3 numbers for todays date, then read …

Software Development c++
Member Avatar for Zssffssz
0
930
Member Avatar for RedexProGamma

Hey all (who see this), I am currently writing a Login Script, and I am having trouble making StreamReader read a specific line in a text file. This is what I have so far (not the entire script, just the reader lines): [CODE] Dim path As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) Dim …

Software Development vb.net
Member Avatar for RedexProGamma
0
191
Member Avatar for Zssffssz

Ok when I use gcc (all th time) the program it makes in c++ with debug on is around a megabyte when off it is around half a megabyte when working with c with debug on it around 50 k with it off it's at about25 k this doesn't seem …

Software Development c++
Member Avatar for mike_2000_17
0
188
Member Avatar for sandman64

[CODE] #include <iostream> #include <fstream> #include <string> using namespace std; string constestantName(istream &); void getJudgeData(istream &, string); void CalcScore(ostream &, string, double, double, double, double, double); double findLowest(double, double, double, double, double); double findHeighest(double, double, double, double, double); int main() { int loopnum, counter, nestcounter; string name; ifstream infile; infile.open("starsearch.txt"); …

Software Development c++
Member Avatar for Mr. K
0
213
Member Avatar for Mr. K

I make a program that reads a file and then it stores the information in two char.The problem is related to the char Elements and symbol. What is causing errors in my program? Thanks in advance. [CODE]#include "stdafx.h" #include <iostream> #include <fstream> char* Elements;//The problem char * symbol; using namespace …

Software Development c++
Member Avatar for Mr. K
0
212
Member Avatar for Hikari123

Hi, I am a beginner so bear with me. I have an assignment in which I have to create an array with numbers and then have a loop with condition to check in which order the user has inputed the numbers. Asc=1, desc=-1, other=0. This loop isn't working, i know …

Software Development java
Member Avatar for Hikari123
0
124
Member Avatar for csterling

I have a large number of files that begin with numbers (e.g., 10admin_boundary_x) and would like to rename the files so that they do not begin with a digit (e.g., admin_boundary_x). I am working with shapefiles (.shp, .shx, .dbf, etc) and thought a python script could save me some time. …

Software Development python
Member Avatar for TrustyTony
0
2K
Member Avatar for sandman64

[CODE]#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; string constestantName(istream &); //Calls the the input file from main() by refrencea and returns the name of the contestant void getJudgeData(istream &, string, int); //gets the scores from starsearch.dat and stores them in five veriables void CalcScore(ostream &, string, …

Software Development c++
Member Avatar for sandman64
0
139
Member Avatar for abrahami

[QUOTE=;][/QUOTE] Hi, every one. Through the help of talented programmers and contributors, I have been able to get some were with the program design and coding process. Thanks to you all. I want help in resolving this problem, Pls. I created a database with the following information, but I wanted …

Software Development database-design visual-basic
Member Avatar for abrahami
0
175
Member Avatar for tyricec

I'm trying to compile this simple dot program with C++ that uses OpenGL. I made a struct GLintPoint to hold just points x and y. It seems I didn't delcare the struct according to the errors. [CODE]#include <GL/glut.h> #include <stdlib.h> #include <time.h> struct GLPoint { GLint x; GLint y; }; …

Software Development c++ opengl
Member Avatar for tyricec
0
945
Member Avatar for dan1992

i have [CODE]program p1032; const n=10; num=4; var i:integer; a:array[1..n] of 1..n; procedure tipareste; var i:integer; begin for i:=1 to num do write(a[i],' '); writeln; end; procedure permuta(k:integer); var i,x:integer; begin if k=1 then tipareste else begin for i:=1 to k do begin x:=a[i];a[i]:=a[k];a[k]:=x; permuta(k-1); x:=a[i];a[i]:=a[k];a[k]:=x; end; end; end; begin …

Software Development c pascal
Member Avatar for hkdani
0
105
Member Avatar for compulove

Can someone help me convert my .cs file to aspx.cs I thought I could just put my same cs code into this file that would open a webpage but apparently things are different. I need this because I have a login file that has three options for the user, the …

Software Development file-system vb.net
Member Avatar for compulove
0
2K
Member Avatar for pendo826

[CODE]#include <iostream> #include <string> using namespace std; //char inventoryRequest = 'i'; //Function Definitions. void exitGame(); int playGame(); int main() { //Menu Text. cout<< "\t******Menu******\n\n"; cout<< "Please choose one of the following:\n"; cout<< "1 -Play Game.\n"; cout<< "2 -Exit.\n"; int choice; cout<< "Choice: "; cin>> choice; string name; switch (choice) { …

Software Development c++
Member Avatar for pendo826
0
2K
Member Avatar for daniel1977

I know a FOR loop is for definite loops when you know the starting value and ending value. It use step value (number use to alter a loop control variable on each past of the loop) in which the control value changes after the body executes. A for statement is …

Software Development
Member Avatar for Taywin
0
169
Member Avatar for flynismo

Hi.. this is not a "which is better" thread, although if you happen to have a reason for thinking so, please share your thoughts. First I just want to say that I do not want to have any flame wars or arguments or anything like that. Please keep emotional arguments …

Software Development c++ career python
Member Avatar for rubberman
0
201
Member Avatar for slightlyMad

I have searched high and low and cannot find anything that I understand on how to pass data from one form to another in c#. I am completely new to this language and I felt like I was really grasping it up until now. The situation: I have a project …

Software Development
Member Avatar for slightlyMad
0
142
Member Avatar for Awah Mohamed

hello people. how are you all doing? my problem is i have been programming in c++ for almost a year now but i have always used windows with microsoft visual studio and dev c++ but now i discovered that programming in ubuntu is much more fun couz it is way …

Software Development c++ ubuntu visual-studio
Member Avatar for Awah Mohamed
0
209
Member Avatar for JOSED10S

1)Write Python code that asks the user for two angles of a triangle. Then, first determine if the triangle can exist (make sure that the third angle can be found such that the sum of the three angles is 180°, with all angles both given and computed conforming to the …

Software Development python
Member Avatar for Cireyoretihw
0
1K
Member Avatar for alone882

I want You to ask for a help. how to adapt this VB.NET code to Visual Basic 6 ? [CODE] Imports System.Collections.Generic Imports System.IO Imports System.Net Namespace blogtest Class Program Private Shared Sub Main(args As String()) Dim http As New simplehttp() ‘testing on ipcheckit.com so we can make sure we’re …

Software Development vb.net visual-basic
Member Avatar for hkdani
0
423
Member Avatar for bettybarnes

Hi need help with regards to deducting from customers purchases. The fields look like this: tblStocks: Name Type Qty Pencil 2 15 Pen G-Tech 5 When the customer would purchase 2 pencils, the datagrid field qty would be 13..Does anyone here know how to do this?

Software Development vb.net
Member Avatar for adam_k
0
134
Member Avatar for Himajin Breaker

Hello everyone. I am having a problem with my program; it is supposed to read values from an input text file, put the data into a structure, then output the data from the structure into a binary file. The first 2 parts work fine, but I keep ending up with …

Software Development c++ data-structure file-system ios
Member Avatar for Himajin Breaker
0
420
Member Avatar for joker22xx

heres my C code this was easy: -Chris g [CODE=c]#include <stdlib.h> #include <stdio.h> extern int numodd( int array[], int size ) ; int main( int argc, char * argv[] ) { int numarray[] = { 2, 3, 1025, 3024, 4057, -3, -1025, -3578 } ; int size = sizeof(numarray) / …

Software Development assembly
Member Avatar for joker22xx
0
1K
Member Avatar for applejax77

write a java program that prompts the user to input and integer and then ouputs both the individual digits of the number and the sum of the digits. This is what I have but it is not working when I input a negative number. Why? Need help! import java.util.*; public …

Software Development java
Member Avatar for applejax77
0
151
Member Avatar for Mopikope

Hello everyone I am a college student learning c++ and I am not understanding why you put a "For loop" inside of another one. What advantage does it have and what can you use it for. For example: [CODE]for (int i = 0; i < 5; i++){ for (int g …

Software Development c++
Member Avatar for Mopikope
0
129
Member Avatar for elmoe26

Hi. I have to write a program that solves the Knight's Tour in C++. The Knight's tour is where the Knight Chess piece has to move to every space on the chessboard only once. I am new to programming and I'm having trouble figuring out why my program has stopped …

Software Development c++
Member Avatar for elmoe26
0
3K
Member Avatar for gourav1

[CODE]#include<stdio.h> #include<conio.h> int n,a[10]; void display(); void insert(int); int del(); int main() { int i,item=0,j; n=1; printf("enter the numbers:"); for(i=1;i<6;i++) scanf("%d",&a[i]); for(j=1;j<5;j++) { insert(a[j+1]); } } while(n>1) { item=del(); a[n+1]=item; } display(a); getch(); } void display() { int i; for(i=1;i<6;i++) { printf("%d ",a[i]); } } void insert(int item1) { int …

Software Development c
Member Avatar for gusano79
0
113
Member Avatar for RenanLazarotto

Hello there! I was tired of having to edit my hosts manually, so I just started a small app that will open a nice user interface to it for me. Most of the code is done. It opens the hosts, edits, saves, has cut, copy, paste, undo and redo functions. …

Software Development assembly listview user-interface
Member Avatar for RenanLazarotto
0
134
Member Avatar for Chuckleluck

I'm using the Win32 API to create a game, and I want to give the player as big of a field of view as possible. The problem is, with the game engine I've developed (from Michael Morrison's [I]Beginning Game Programming[/I]), I can minimize and close the program, but I can't …

Software Development api c++ windows-api
Member Avatar for Fbody
0
168
Member Avatar for gourav1

my problem is highly conceptual problem. when i write: node *new1=malloc(sizeof(node)); it works properly. but when i write : node *new1=malloc(sizeof(node*)); it starts giving errors. // node is the structure having a integer and pointer to itself.

Software Development c
Member Avatar for gourav1
0
161
Member Avatar for sunn shine

i want to write an algo about stack example.. that is, ""When a person wear bangles the last bangle worn is the first one to be removed and the first bangle would be the last to be removed. This follows last in first out (LIFO) principle of stack."" how to …

Software Development c++
Member Avatar for sunn shine
0
124
Member Avatar for nered

Hi, To explain once my app is added to windows path you can simply call it from CMD and you know how when you run a console it opens up a default folder and you can navigate to a new on by using cd .. and cd path command. I …

Software Development c
Member Avatar for nered
0
201
Member Avatar for linhj

Hi All, I am new to C++, I am tring to generate the random number from 0-99, and save it to a matrix array with the size of 10x10. Below is my code, the resule comes out funny. Can you help to see what goes wrong? [CODE]#include<stdio.h> //Header file #include<stdlib.h> …

Software Development c++
Member Avatar for linhj
0
4K
Member Avatar for skylinedrifter

Hey guys im trying to write a code to give me Arthimetic mean and standard deviation for 4 Integer values... i don't know what im doing wrong it's not letting me compile any ideas?? [CODE] #include <iomanip> #include <iostream> #include <cmath> using namespace std; int main(void) { int X1; int …

Software Development c++
Member Avatar for jhonlarry12
0
191
Member Avatar for Laxman2809

Alright so I have to Save and Load an array, and I am unfortunately running into issues at saving, where it keeps giving me the error[QUOTE]Exception in thread "main" java.lang.NullPointerException at java.io.FileOutputStream.<init>(FileOutputStream.java:186) at java.io.FileOutputStream.<init>(FileOutputStream.java:84) at SocialEventList.saveAppointmentData(SocialEventList.java:41) at Test.main(Test.java:120)[/QUOTE] [CODE]import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.PrintStream; public class SocialEventList { private SocialEvent[] …

Software Development java
Member Avatar for hiddepolen
0
294
Member Avatar for hegde1997

hello there it my first thread on this forum. well i need some help. See i am thinking abt making my own video player not for any project kinda thing but for my wish and knowledge. I am good in C and java, with help of C i learnt c++ …

Software Development audio c c++ video
Member Avatar for hkdani
0
278
Member Avatar for Arjun_Sarankulu

I m running the Sql job as background thread and at the same time showing data from sysjobhistory table in gridview. While debugging the code its shows the data in old and new rows affected from table in gridview but when i put the application in debug or release mode …

Software Development dataset
Member Avatar for Mirfath
0
146
Member Avatar for cgen

I need some idea how to correct this program. Though I think I understand the concept, my implementation is wrong. My program only prints the orignal string and does nothing with it. [CODE] public class ArrayStack<E> implements Stack<E> { protected int capacity; protected static final int CAPACITY = 1000; protected …

Software Development algorithm java
Member Avatar for JamesCherrill
0
1K
Member Avatar for bonzo2008

Hello again I'm dealing with a problem in VB6 I have the swedish version in the national enverionment as default and the [U]LabelDatum.Caption = StrConv(Format$(MyDate, "dddd dd mmmm yyyy"), vbProperCase)[/U] is saying SÖNDAG in the first form but I will change that with some code in the form2 that the …

Software Development visual-basic
Member Avatar for bonzo2008
0
312
Member Avatar for Mirfath

Hi i am currently creating a login screen for my project.The logical error with this code is that it does not display the message "invalid password" although i have written a code for it.Can anyone please tell me whats wrong with this code.Thanks in advance [CODE]using System; using System.Collections.Generic; using …

Software Development c c# c++ open-source
Member Avatar for Mirfath
0
297
Member Avatar for anand01

Hi all, I did some basic method overloading program, when I run the bellow program i got output as int long but expected is short long.. can Any one explain me My code is : [CODE]public class MyClass { public static void disp(Long n) { System.out.println("Long "); } public static …

Software Development java
Member Avatar for anand01
0
85
Member Avatar for c++_fem

Hi, Does anyone know a function that prints out binary tree in this form example : ................15 .........12.............17 .......10 14.........16 18 ? my Node class : [CODE] class Node { double Node_Data; Node Left_Child; Node Right_Child; Node Parent; }[/CODE]

Software Development data-structure display
Member Avatar for Narue
0
364
Member Avatar for DragoDraco

I am trying to get the program to print how many of each letter of the alphabet is in the bible but it is throwing and error. I am just using a small part of the bible until I get it to run properly. Please help. import java.io.File; import java.io.FileNotFoundException; …

Software Development java
Member Avatar for DragoDraco
0
161
Member Avatar for marge0512

Hello, I am using Delphi2010 and TOracleDataSet to access tables in Oracle. My question is how do I insert rows to multiple tables? I was told to use the AppendRecord method. Here is an example: [B]Example of value statements (this has been shortened obviously):[/B] Suffix := trim(edSuffx.text); Salutn := trim(edDear.text); …

Software Development oracle pascal
Member Avatar for marge0512
0
179
Member Avatar for xocpnytsirhc

hi, i'm trying to make a simple program to calculate the area and perimeter of a circle, but there's a little problem, whenever i enter a floating point number as the radius, like say 2.5 it calculates as if i entered only 2(without the .5) ( i hope that makes …

Software Development c++
Member Avatar for xocpnytsirhc
0
182

The End.