132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tifka

Hey guys i just joined, I am sure this is a dumb question, but i been googling for the past week and cant seem to find a simple answer. I been trying to learn asm and I am trying to make a menu system. So like you type 1 and …

Software Development assembly
Member Avatar for Goalatio
0
316
Member Avatar for ddashtrois

i'm a complete beginner to C++. its my fourth week learning it. we have this for a homework assignment: "This program outputs all prime numbers between 3 and 100 using a doubly-nested loop." first off, i've done a lot of research online and from what i've seen the most efficient …

Software Development c++
Member Avatar for mrnutty
0
411
Member Avatar for estefania

I am suppose to move the code from the 1st program that actually plays the game into a new method. I am really new at this and have no idea... import java.util.Scanner; public class GuessingGame { public static void main(String [] args) { Scanner scan= new Scanner(System.in); int n; //a …

Software Development java
Member Avatar for Grn Xtrm
0
113
Member Avatar for LaurenR

I need to write a function splitMid that will split a linked list into two sublists of equal size. I have written most of the functions that I need to achieve this and some other things, but I am having trouble getting started on this function. Can anyone point me …

Software Development c++ linked-list
Member Avatar for VernonDozier
0
514
Member Avatar for swolll

I need to compute the number of nonnegative numbers from an input file. Everything works fine (for good input files and bad input files) except when there is a no data file (with nothing in it). Then, the number of nonneg numbers reads 1, even though it should be 0. …

Software Development c++
Member Avatar for Zjarek
0
178
Member Avatar for jdrei

i'm in a beginning c++ class and we have to write a program that finds all primes between 2 and 100 within a doubly nested loop. i feel like i'm really close but i think i've been doing it too long and can't figure out what i'm doing wrong...... help …

Software Development c++
Member Avatar for VernonDozier
0
2K
Member Avatar for hopeful man

Hi everybody, i am a new in c++ programming ,, and i am trying to answer this question to get the required result, but i could't till now .. i need your help in order to be able to answer this question correctly. the question is : write a program …

Software Development c++
Member Avatar for mrnutty
0
108
Member Avatar for PDB1982

I am a beginner level C++ student, so please forgive me if I use the wrong terminology here....I need to create a program that takes a set of integers from a source file, tells whether the numbers are odd or even integers, and then adds the odds and the evens …

Software Development c++
Member Avatar for PDB1982
0
102
Member Avatar for Phil++

What are instance variables please? Also, is this a good explanation for Encapsulation: Encapsulation or information hiding is all about hiding the details of the implementation of the interface. Encapsulation is used to prevent users from viewing the inner workings of the interface. A real life example of Encapsulation is …

Software Development c++ user-interface
Member Avatar for Tom Gunn
0
105
Member Avatar for itslucky

Dear Friends, i have developed a software which have Mdi contianer, the problem is that, 1. when i click on the empty space of the main form i.e (Mdi container FORM) all other windows goes behind this Mdi container window *I would like then to stay on top of the …

Software Development
Member Avatar for itslucky
0
136
Member Avatar for surfer2009

i am new in programming . i have a clock code. but want to modify it. when user press "0" it increment in time by 5min and when press "1" increment time by 10 min _______________ [CODE]//The complete program listing of the program that defines //and uses the class clockType …

Software Development c++
Member Avatar for Kashaku
0
1K
Member Avatar for k4kasun

Last month I completed my 3 year IT degree and now I am throwing Cvs for IT companies in my country. but still I am home, sitting duck! So until I find a job,I don't want to waste that time staying @ home...do nothing. so can someone suggest me something …

Software Development asp.net career
Member Avatar for Diamonddrake
0
236
Member Avatar for Phil++

Hey, I'm just wondering if it's possible to run an if statement through a class? The thing is, I wanna store users details and then when you search for a user, i.e "Phill" it returns all the information on that user. I'm using something like: [CODE] c1.GetName(); [/CODE] So something …

Software Development c++
Member Avatar for Nick Evan
0
93
Member Avatar for ingbat

Can you take a look at this code and see if there is anything obviously wrong with it. It’s just a simple update query to a backend Sybase DB, but it’s not updating and not returning any errors. My updates to an SQL DB are working, so I’m wondering if …

Software Development vb.net visual-studio
Member Avatar for ingbat
0
100
Member Avatar for MichaelSammels

Does anyone know how to change the colour of strings using x86 NASM Assembler? I've found tutorials like this: [CODE] mov ah, 09h mov al, 97 mov bx, 100b mov cx, 01h int 10h [/CODE] Which prints the letter "A" once in the colour you choose. This is a handy …

Software Development assembly
Member Avatar for NotNull
0
4K
Member Avatar for axn

I am migrating scripts from UNIX server to a Linux. In the perl script it calls rcp to transfer files. It worked ok in UNIX but not in Linux, which has scp, I dont want to do scp now as this is a temporary Linux Box I am using. I …

Software Development perl unix
Member Avatar for axn
0
915
Member Avatar for neithan

[ICODE] * Don't use system("pause") to pause your program if possible. Use getchar( ) if you are using C and cin.get( ) if you are using C++. [/ICODE] Why is that? A reasonable explanations for those tips would help to learn.

Software Development c++
Member Avatar for marco93
0
674
Member Avatar for ChaosBG

Hey guys i've tryed to find how to do this the best way but it failed. So i want to ask the experts here: How to add a new line of text to a edit control. Example: I have alredy some text in the edibox and i want to add …

Software Development c++
Member Avatar for marco93
0
400
Member Avatar for makymakaru

Is pass by value and call by reference the same? I mean i know theres no call by reference in C but there is similarity int he output of the two isn't it? why do we use call by value and pass by value? what are its uses?

Software Development c c# c++
Member Avatar for Tom Gunn
0
103
Member Avatar for javapal

Can anyone teach me on how to create a program that counts spaces entered in a string.....

Software Development java
Member Avatar for mrnutty
0
102
Member Avatar for amit.kumar

Please spot the errors and right the correct code back . Thanks in advance amit kumar[code]#include<stdio.h> #define max 10 typedef struct { char entry[max]; int top; }stack; int stackfull(stack *s) { if(s->top==max) return 0; else return 1; } int stackempty(stack *s) { if(!(s->top=-1)) return 0; else return 1; } void …

Software Development c++
Member Avatar for mrnutty
0
110
Member Avatar for killerqb

My code is an expression tree program, in which I make treenodes pointers and push them in the end all into the 1st spot of a stack, in which is declared in my header file of the program. I wipe all the treenode pointers with a recursive traversal. Is this …

Software Development c++
Member Avatar for csurfer
0
76
Member Avatar for Damirz

[B]Hello![/B] I am writing a c++ code for displaying a 3D cube. I have some small problems with arrays. I want to initialize just some interval of array. Example: [COLOR="Green"]int array[10][10]=0; //now I want to initialize just an interval array[0][5] TO array[0][8]=1;[/COLOR] ___________ I know that in place where the …

Software Development c++
Member Avatar for mrnutty
0
273
Member Avatar for sahmed

I want to implement FIX protocol in C#. Can anyone tell me what documents should I read to implement this protocol? Also, if there is any library available in C# to implement this protocol, it will be a lot help.

Software Development c#
Member Avatar for sahmed
0
99
Member Avatar for Jennifer84

I wonder something about finding a specific character in a string. What I am trying is to find "*" and if that character is found in the string, I will write "Found" to a file. When running the code below. All this is happening but the same thing is happening …

Software Development c++
Member Avatar for dpreznik
0
147
Member Avatar for geoffy0404

im just so stressed and having a mind block.. i have code please help [CODE]#include <stdio.h> /*pre-defined processor statements*/ #ifndef __OPERATION__ #define __OPERATION__ #define TOTAL 0 #define ADDITION 1 #define SUBTRACTION 2 #define MULTIPLICATION 3 #define DIVISION 4 #define MODULAR 5 #endif int main() { /*assign the variables*/ int num1 …

Software Development c
Member Avatar for Aia
0
128
Member Avatar for revski

hi i have a question about formatting combo boxes. i have 1 combobox on the form with a label and a calculate button, the combo box is layed out like this 180 / 50 like a tyre size. The calculation to be performed is the 1st number X the 2nd …

Software Development delphi pascal
Member Avatar for revski
0
149
Member Avatar for ayeshawzd
Member Avatar for SuperMetroid

The html code of the form, and my code are below. I can't get the value to post/submit. Can anyone help? HTML Code of Form: [code]<form method='post' autocomplete='off'> <input type='hidden' name='action' value='grant-revoke' /> <input type='hidden' name='creator_badge_index' value='1' /> <input type='hidden' name='token' value='92dcd92a8bc16f73f330d118ae1ed891' /> <input type='hidden' name='do-grant' value='1' /> <div id='grant-div'><span …

Software Development first-post python
Member Avatar for SuperMetroid
0
173
Member Avatar for vinnijain

Hi!!! I am using following code in which I am generating the latex format. Here I want to use the combination of characters[A-Za-z], numbers[0-9] ,special charactes(like Ï€ ,θ ,α ,β ,γ ,°,+, - ,×,÷,√ ,(,)etc) ,decimal numbers. For entering special characters I have used toolbar Can anyone tell me how …

Software Development regex
Member Avatar for vinnijain
0
337
Member Avatar for queen

I was wondering if anyone would tell me what I am doing wrong because I'm really stuck and getting really sad :sad: goal: copy contents of oldZipFile.zip and create a newZip.zip with contents of old zip file. Problem: If oldZipFile.zip just contains .txt files, it works. But if it contains …

Software Development java
Member Avatar for rg.crichton
0
143
Member Avatar for jamesrobb

Hi, Can anyone explain why my code enters a loop when the length of a file is zero. I would expect that the loop below would not be entered if strFile.Length is zero. strFile = strSubCommittees.Split("|") For i = 0 To strFile.Length - 1 Next i Thanks.

Software Development vb.net
Member Avatar for jamesrobb
0
113
Member Avatar for thehivetyrant

Hi there, I'm trying to create a class with whats below. I made it and it works but i need to be able to withdraw an amount from the balance. I'm just having trouble with the layout and whether i got the right idea? Is the underlined area on the …

Software Development python
Member Avatar for Gribouillis
0
138
Member Avatar for Reprise

My code so far opens a text file in a particular format and reads in the data into a structure called salesRecord. There is no problem there. The problem arises when I write the data to a new binary file. Here is the structure: [code=CPP] struct salesRecord { int custNo; …

Software Development c++ data-structure file-system ios
Member Avatar for dkalita
0
8K
Member Avatar for Sapreaver

I have been coding for a little bit in VB mostly and decided to try C right all is dandy until I try using a function I am getting a conflicting types error in function encrypt here is my beautiful code [CODE]#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) …

Software Development c
Member Avatar for Sapreaver
0
5K
Member Avatar for kool.net

how to i use master & detail table concept using datagridview in c#.net.

Software Development
0
84
Member Avatar for javaAddict

I encountered some code at work that got me thinking. There was a util - class that had some methods that had nothing to do with the state of the class. They were all "util" methods. Meaning that they could all be declared static with [U]no[/U] problem because the only …

Software Development java
Member Avatar for javaAddict
0
127
Member Avatar for ssDimensionss

hi all, im doing a project where i have to implment a rpg game... i have a class called item and the constructor looks something like public Item(int x, int y, String image_path, boolean z) { map_x = x; map_y = y; image = new Image (image_path); pickup = z; …

Software Development java
Member Avatar for JamesCherrill
0
89
Member Avatar for miasuhyla

Write a program that generates one hundred random integers between 0 and 9 and displays the count for each number. Your program must have method that returns the counts for each number. Hint: Use (int)(Math.random() * 10) to generate a random integer between 0 and 9. Use an array of …

Software Development java
Member Avatar for ejosiah
0
114
Member Avatar for kiranpreddy05

[code=c++]class StripChartWindow : public PegDecoratedWindow { public: StripChartWindow(const PegRect& Rect, const PEGUINT TitleId); virtual ~StripChartWindow() {} virtual PEGINT Message(const PegMessage& Mesg); private: PegStripChart* mpChart; PegStripChart* mpChart2; PEGUBYTE mID; PEGUBYTE mSin; PEGUBYTE mID2; PEGUBYTE mSin2; };[/code] This is the part which is givin me errors as below... error C2143: syntax error …

Software Development c++ gui storage
Member Avatar for kiranpreddy05
0
256
Member Avatar for hodaAgh

I've written a program like the follow: [CODE]int main () { . . . . ifstream file1; ifstream file2; ofstream simiralities; simiralities.open("P(0)_P(1).txt", ios::app); file1.open("test1.txt", ios::in); while (!file1.eof()) { . . . file2.open("test2.txt", ios::in); while (!file2.eof()) { . . . . } file2.close(); } simiralities<<number; file1.close(); simiralities.close(); return 0; }[/CODE] the …

Software Development c++ file-system ios
Member Avatar for hodaAgh
0
146
Member Avatar for vinnijain

Can anyone tell me how can I enable one and only one whitespace to be entered in the textbox such that user can press spacebar only once while entering the string in the textbox and not more than once........... Kindly provide me some solution.............

Software Development
Member Avatar for vinnijain
0
3K
Member Avatar for beshoyatef

I designed chess board game before , i did for loop for rows and i did for loop for column ... and the result appear good . But here i want to make the board by two inner loop inside them . I do that but the rows not appear …

Software Development java java-swing
Member Avatar for beshoyatef
0
125
Member Avatar for yamid

How to read a part of a text file and put them in an array in c# 0 #1 1 Day Ago I have a text file including several strings and doubles. I want to find a specific string in the text and read all double numbers after it which …

Software Development c# file-system
Member Avatar for sknake
0
757
Member Avatar for naej

#include <iostream> #include <cstdlib> i mean those

Software Development c++
Member Avatar for mrnutty
0
91
Member Avatar for Treezwithgunz

I am trying to write a program that will give me the volume of a cylinder when I run it. I already have a Circle class that computes the area of a circle. I am also using a seperate program to handle the input and output. Could someone tell me …

Software Development java
Member Avatar for Jocamps
0
112
Member Avatar for mnewsome

I am a total beginner that happens to own a copy of visual studio pro 2005. Would like to get a glue as to how to get the basics and advance myself. Is there anything on the daniweb site to guide novices to at least get a concept of how …

Software Development vb.net visual-studio
Member Avatar for mnewsome
0
77
Member Avatar for Dlearner

Hi , I want to know, how to implement vtable in C. This is achieved through virtual functions in C++. I feel we need to do what c++ compiler internally does, But i am not sure on the entire implementation. Thanks.

Software Development c
Member Avatar for Dlearner
0
5K
Member Avatar for NinjaLink

I am currently having problems with my getline in main. Whenever I use it, it prints out the last word in my input file twice. I do not know how to get rid of it. Any help is appreciated. [B]Input file:[/B] noon dog race car cat mom bob [B]Current Output:[/B] …

Software Development c c# c++
Member Avatar for NinjaLink
0
100
Member Avatar for aditayagarg

you can seee some example for beginners at [url]http://vbandc.tripod.com/[/url]

Software Development vb.net
Member Avatar for aditayagarg
0
99

The End.