132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Towely

I'm trying to create a program that takes 2 numbers from a user (a numerator and a denominator), displays one ontop of the other separated by dashes, and then shows the answer of one number divided by the other. Inside an If statement, I want to output several lines using …

Software Development c++
Member Avatar for Towely
0
233
Member Avatar for grudgemuch

hello. this is my first post in here :) im new to programming and im learning C as my first language. I need help on this problem, i am making a running clock and it prints out in this format: 1:1:11 but i would like to make it look like …

Software Development c
Member Avatar for Dave Sinkula
0
285
Member Avatar for number87

I got a question about c++ strings. Let's say string text = "0R14" and I access each element using text[0],text[1] etc does text[0] return an integer 0? or a character '0'? if it doesn't return an integer, how do I convert individual string element to integer type if I need …

Software Development c++
Member Avatar for number87
0
165
Member Avatar for summey

I wrote a small app that dl youtube vids but like most company's they dont allow you to view youtube so i would like to incorporate a proxy option into my app to dl the youtube vids through a supplied proxy ip and port. Thank you for your time.

Software Development
Member Avatar for summey
0
94
Member Avatar for Zero-Method

hello smile.gif i am having trouble with the 2D array i am making.......it is supposed to be an address book of sorts Miller, Joseph, 910 Auburn Avenue, McLean, VA, 7035551234 Frank, Michael, 1 York Road, Baltimore, MD, 4105551234 Roland, Frank, 346 Bellona Avenue, Lutherville, MD, 4435551234 Smith, Jan, 432 Burke …

Software Development java java-swing
Member Avatar for JamesCherrill
0
92
Member Avatar for loolyn

Hi All. I have created a message box using Win32 API messageBox() function. Now I want to move a button on that message box a little higher. I'm trying to get that by the following code, but when executing the code only the button is moving, leaving its background in …

Software Development api c++
Member Avatar for K0ns3rv
0
84
Member Avatar for IndyColts

First off, you should know I just started learning C++ today. Anyway, whenever I type in my code to Dev_C++ Compiler, and then try to run it, it always says "Source file not completed." Here's my code: [CODE]// operating with variables #include <iostream> using namespace std; int main () { …

Software Development c++ operating-system
Member Avatar for TheComputerGal
0
129
Member Avatar for sjcomp

Hello, This is not a c++ question per se, but I do not see a better forum to ask it. I have a binary executable (compiled with Visual Studio C++ 2005) and the source code for this file. I need to change a constant, but for various reason I do …

Software Development c++ visual-studio
Member Avatar for William Hemsworth
0
790
Member Avatar for Cheesy74

I'm writing a collision algorithm based on the Separating Axis Theorem that works like so for each side: - Gets the separating axis of the side - Measures the object's width on that axis and places the width on the axis. - Measures/places width for object that is being collision-tested. …

Software Development algorithm java
Member Avatar for VernonDozier
0
362
Member Avatar for farsen

Hi. I have this console based Asynchronous VS project that works fine. And then i have a remoting project which also works fine. I want to edit the remoting project so it is non-blocking, using asynchronous calls. I´ve tried different examples, but I cant get it to work. None of …

Software Development client-server
Member Avatar for farsen
0
367
Member Avatar for avirag

I need one more help DdoubleD.In my application I have applied functionality for searching various string(form text) which are the combination of characters and math symbols. Now for varoius symbols like squareroot, cuberoot , fraction, exponent, power,we cannot enter them directly from keyboard.So I have made form text in such …

Software Development
Member Avatar for DdoubleD
0
112
Member Avatar for programmingnova

This next practice problem has me implementing functions into code I completed before calculating data about students. I'm getting an error message, and am looking for where my problem(s) are. Objectives of this problem: -Collect data from user: major, last name, credits completed, gpa, tuition paid. -Call a function to …

Software Development c++
Member Avatar for dkalita
0
166
Member Avatar for saradha

hi all, i am new to c# ... i seek your help for a code snippet which can validate a form that is using asp tags like text box,a read only text box with a calendar control associated with it,a submit button which when clicked must validate the above said …

Software Development c#
Member Avatar for saradha
0
120
Member Avatar for amadain

Hi I was hoping I could get a bit of help here. I am trying to break a number of strings up into arrays on particular words. For example in the following strings I want them broken on the words GET and/or POST: [CODE] "POST at the start without the …

Software Development python
Member Avatar for jice
0
274
Member Avatar for lotrsimp12345

Don't think you can pass any parameter unless you create a point in your main. [CODE] template<class T> void my_list<T>::show_sllist(my_node<T>* p) { if(p!=0) { cout<<p->data; show_sllist(p->next); } } [/CODE] Would i have to create a pointer of type my_node in main to show the list. [CODE] #include <iostream> using namespace …

Software Development c++ linked-list
Member Avatar for dkalita
0
104
Member Avatar for RunTimeError

hey everyone, I've been a bit bored lately and have made a 'snake' game. I've made made a 10x10 grid of picture boxes and I'm holding the snake positions in a linked list. I'm changing the picture box to either 'snake.jpg' or 'blankSpot.jpg.' I have a pretty decent implementation working …

Software Development apple linked-list
Member Avatar for Geekitygeek
0
380
Member Avatar for nicholasamh

I am using C++. I use mkdir("C:/test") to create a directory to store my files. I want to hidden the folder that i created. Don't want to let anyone know about this directory/folder at all. Can someone help me out? Thanks alot.

Software Development c++
Member Avatar for nicholasamh
0
90
Member Avatar for Gaurav arora

Hi all, Iwant to know is there any way to add a new column in datagrid depending upon the value of a combobox. I have columns in a table whose names are same as combobox's items names. I need to add that column in datagrid which value is selected by …

Software Development
Member Avatar for Geekitygeek
0
253
Member Avatar for zackie

Hi guys, im new in C++ programming and hope anyone could guide me to understand C++ and be able to code my assignment out :) what the program does: 1. user inputs text file name, 2. user inputs key word 3. program goes about replacing character/strings in the text file …

Software Development c++
Member Avatar for iamthwee
0
110
Member Avatar for JungWoo

I got stuck in this program and dont know how to start to phase 2, i finish phase 1 quite good bt i dont understand connection phase 1 and phase 2. so i hope some one can help me pls, thank you very much..... phase 2:Expand Phase 1 to translate …

Software Development c++ ios
Member Avatar for iamthwee
0
103
Member Avatar for therstonsplace

i have been trying to do any interrupts in protected mode and i have been using msdos interrupts so it makes sense that they are not working i have been working through the threads so as not duplicate this but i haven't found any and i figured i would just …

Software Development assembly
Member Avatar for therstonsplace
0
218
Member Avatar for gotm

So I have a lot of code so I guess I'll just post the couple classes that seem to be giving me problems and where the problem is occuring. [CODE=java]// line class to store lines from .ps file class line { // for outcodes private int RIGHT = 2; private …

Software Development java
Member Avatar for javaAddict
0
172
Member Avatar for UmH

hi i'm new in program i want to write code in c .. and i'll convert it to c++ but i've problem this is the code [CODE] #include<stdio.h> #include<conio.h> typedef struct std { int id; char name [10]; char status; }STD; void main() { STD m; printf("Enter id : "); …

Software Development c++
Member Avatar for UmH
0
143
Member Avatar for javed123

Hi , I have problem related to ArrayList...... ArrayList object may contain 1 or more ArrayList Objects and those inner ArrayList Object may contain 1 or more ArrayList Object and it is extendable to n levels. Condition is also added as ArrayList may contain different type of Objects too, i.e. …

Software Development java
Member Avatar for balumohan2
0
152
Member Avatar for tomtetlaw

I am trying to make a program that prompts the user for input then outputs it to them(back to the good old days :D). It all works, except it doesn't output what the user inputs, it outputs a bunch of crazy numbers, can someone help me? Btw I am using …

Software Development assembly
Member Avatar for tomtetlaw
0
71
Member Avatar for vegaseat

Tired of the Tk icon in the corner of the form. It's easy to replace with any fancy icon you have. Here is the code ...

Software Development python
Member Avatar for The-IT
0
1K
Member Avatar for yasaswyg

Hey guys I am stuck with this program and i need help with it this is what i got until now [CODE] #include <stdio.h> #include "checkit.h" double vectorDotProduct(double x1, double y1, double z1, double x2, double y2, double z2) { return(x1 * x2 + y1 * y2 + z1 * …

Software Development c
Member Avatar for yellowSnow
0
116
Member Avatar for Nickair

Hi i am looking for a good C compiler for windows vista. I found Visual Studio C++ 2008 express edition, will this work if im writing in c?

Software Development c c++ visual-studio windows-vista
Member Avatar for Nickair
0
103
Member Avatar for phuanon

I needing a program increase/decrease a day every 5 second or 1 min for clock system I use date function to set day but I so weak in timer function :) and 1 loop fuction to when it to day 30 it will return 1 thk:)

Software Development visual-basic
Member Avatar for phuanon
0
119
Member Avatar for lotrsimp12345

problem is that it prints out backwards, can't figure out a way to flip it. prolbem is with numbers[siz-1] which begins at last index not first. [CODE] template<class T> T my_vector<T>::show_vector(unsigned int siz) { if(siz==1) { cout<<"enter size of array is 1\n"; return numbers[0]; } else { cout<<"enter this statement"<<endl; …

Software Development c++
Member Avatar for lotrsimp12345
0
89
Member Avatar for gauri_phatak_87

hello everyone, I am trying to read the same file twice,but after the first reading it is not taking the value again. what i need to do is read the file once and count the number of lines in the file, then read it again and do further computations...... but …

Software Development c++ file-system ios
Member Avatar for kvprajapati
0
178
Member Avatar for StarZ

I got the first part correct but how do I put the get height into the second part? Like would I just repeat everything the base did.. like "private double height" " public void setHeight " etc... [B]The design is this: [/B] RightTriangle variables: base, height methods: setBase - changes …

Software Development java
Member Avatar for BestJewSinceJC
0
731
Member Avatar for gretty

Hello I am studying for my exam & I came across this question that is stumping me. [CODE=cplusplus] class X { public: X(); private: int x1, x2; }; class Y : public X { public : Y(); private: int y3; } // the class Y does not end in an …

Software Development c++
Member Avatar for kvprajapati
0
4K
Member Avatar for complexcodes

Hello, I am writing a class that can handle large number of digits. I am trying to overload >> operator so that it can store the user input value and if user entered nondigit then it should print an error message and display the default value of 1 ; overload …

Software Development c++
Member Avatar for dkalita
0
304
Member Avatar for wyett

So, I created a program that allows a user to create student, delete student, display all students, search students, and quit. They are labeled 1 - 5, respectively. However, if a user were to enter 1, create the student, be taken back to the main menu and typed in x. …

Software Development c++
Member Avatar for wyett
0
191
Member Avatar for avirag

Hi!!! I have made a window application in which when a string is entered in textbox , the related links are displayed in listview. Since ,there can be any number of links related to that string. So,I want to display only 5-7 links at a time in listview and on …

Software Development display listview
Member Avatar for avirag
0
146
Member Avatar for Web_Sailor

Hi, I am used to array of hashes in perl. So I was trying to do something like that in c++. Suppose I have created an array and now I want to store multimap in it. How can I do that ? I need to get some clues about this. …

Software Development c++ perl
Member Avatar for Web_Sailor
0
169
Member Avatar for IndyColts

Ok, I wanted to learn C++, so I went and found a tutorial. I started reading it, but now I have so many questions! FYI, I have little to no prior programming experience, so please don't laugh at me. 1) What is a compiler, how do I use it, where …

Software Development c++
Member Avatar for IndyColts
0
126
Member Avatar for Ponomous

So i want my program to loop while the user continues to say yes and i figured that my code below would work but for some reason it says that y is an undeclared identifier. [CODE]# include <iostream> # include <fstream> # include <cstdlib> # include <string> # include <cmath> …

Software Development c++
Member Avatar for NathanOliver
0
113
Member Avatar for pelupelu

I am trying to compute some lexical statistics from a given text. For instance, how many lines, sentences, words, how many times a given character is repeated. Can anyone help me with this?

Software Development python
Member Avatar for vegaseat
0
277
Member Avatar for dqddani

Hello. This problem occured in a program that used dynamic memory, and the arrays were deleted and reallocated several times with varying length. It seemed to me that after deleting the arrays, the pointer is still pointing to some data with the same length. (And of course i didn't want …

Software Development c++ motherboards-cpu-ram
Member Avatar for jbennet
0
516
Member Avatar for StarZ

I copied this code from the textbook, so the code should have no mistake? I typed the contructor file(I think thats what its called) and the actual codes. So the code looks like this: [code]public class TestCircle { public static void main(String[] args) { Circle spot = new Circle(); spot.setRadius(5); …

Software Development java
Member Avatar for StarZ
0
405
Member Avatar for Ponomous

So I am trying to write a program that will give creditcard balance information and it is aparent when I compile that there is some sort of error ( error c2784 ). I think that I might not be including something that I need but I am not sure what …

Software Development c++
Member Avatar for Ponomous
0
177
Member Avatar for EntangledDesi

The InputBox function needs to be used in a command button to prompt the user for a number. I know that the syntax is ([I]prompt, title[/I]), where[I]prompt[/I] is the message you want displayed inside the dialog box [in this case - "Enter a number"], and [I]title[/I] is the next you …

Software Development visual-basic
Member Avatar for EntangledDesi
0
99
Member Avatar for kayot1k

Hi there, i need to know how to access my elements in a set of integers. i have private data for the following: private: vector <bool> setlist; // indicates set elements as true int cardinality; // number of items in set im creating a function that 'dumps' the elements of …

Software Development c++
Member Avatar for kayot1k
0
86
Member Avatar for NICEGUY123

I tried my code below, and i am getting a output of 0. I added lines like cout << p; and cout << alpha to see if the values are getting stored into the variables. My output looks like this -18811398930we are in the loop0 Can anyone help me?? i …

Software Development c++ ios
Member Avatar for NICEGUY123
0
234
Member Avatar for MrNoob

Hello here in k&r excerise of primitive calculator i get it and all but there something i think its weird and i don't somewhat get it here the getch and ungetch functions i don't get it's routine [code] #include <stdio.h> #include <stdlib.h> /* for atof() */ #include <ctype.h> #define MAXOP …

Software Development c
Member Avatar for MrNoob
0
314
Member Avatar for Ripture

Hello all, I'm trying to learn how to make just a basic windows app with some buttons and text windows to make the programs I normally create and interface with through DOS a little more interesting. I'm following the tutorials at [url]http://www.winprog.org/tutorial[/url] and [url]http://www.functionx.com/win32/[/url] . I can manage to get …

Software Development api c++ windows-api
Member Avatar for Frederick2
0
914
Member Avatar for vs49688

Hey, Does anybody know of a way to generate a random number without using srand(time(NULL)). I need it for a program I'm writing. srand(time(NULL)) is seeding it based on the computer's clock, but it's only accurate to the nearest second, so it's not fast enough. I've had to put Sleep(1000) …

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

Code: [CODE]hWnd = CreateWindow( L"3ngine", L"lars", WS_OVERLAPPEDWINDOW, xPos, yPos, xSize, ySize, NULL, NULL, wc.hInstance, NULL );[/CODE] I want to make L"lars" variable. Searched on google, but i cant find the right answer. Is there a simple solution? thanks!

Software Development c++
Member Avatar for Oritm
0
83

The End.