Our Software Development forum encompasses topics related to native application programming design and development.

43,484 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for AhmedHan

I want to change cursor position in my C++ program. As you know, C++ does not have any command to do this. By I think, one of the h files can be used for this purpose. My Bloodshed compiler has lots of "*.h" files. But I don't know how to …

Software Development assembly c++
Member Avatar for Dave Sinkula
0
4K
Member Avatar for Ghost

Hi, I was wondering if there is a way to control hardware in C++, such as opening and closing a CD drive. Thanks in advanced, C++

Software Development c++ hardware-purchase
Member Avatar for Ghost
0
829
Member Avatar for bluegoo06

I got most of this too work, i talked to my teacher and he gave me some hints but i cannot get it full. The idea is to get the program to count specifically how many "a"'s there continueing through all the 26 letters. I cannot figure out exactly out …

Software Development c++
Member Avatar for Dave Sinkula
0
183
Member Avatar for ikanku15

my programme has the strcmp. but i dont understand what it is use for. while((strcmp(current->bed_num,beddelete))!=0) bed_num and beddelete i have declared as an integer variables. when i run the programme, it stated that invalid conversation from 'int' to 'const char*' what does it mean?? thank you

Software Development c
Member Avatar for Narue
0
262
Member Avatar for jeymine

Hi guys, I am working on a project on playing cards using enum and class. I really need help with the function defination in this project, Here i will attach the question, your help will be highly appreciated. You can get bac to me trough jeymineb at yahoo.co.uk. Thanks. If …

Software Development c++
Member Avatar for marinme
0
2K
Member Avatar for Fasola

I HAVE SPECIFIC QUESTIONS!!! 1. Why do you need [b]Self-Referential Classes?[/b] Please provide a "real" life example of when it would be used. [code]class Node { public: Node(int); void setData(int); int getData() const; void setNextPtr( const Node *); const Node *getNextPtr() const; private: int data; Node *nextPtr; };[/code] 2. ^^^What …

Software Development c++ data-structure linked-list
Member Avatar for Fasola
1
986
Member Avatar for mikecoyner

i teach a high school c++ course. i would like to use a window for user interface instead of dos console. could anyone provide me the basic code to display "hello world" in a window? and if possible a link to the code necessary to use window api for c++ …

Member Avatar for Narue
0
238
Member Avatar for s-sriram

Hi I am trying my first try at Python. I want to do something very similar to what sprintf does with C. I want to concatenate a string with a number and store it into a new string. I wrote a snippet like this username='user' for i in range (1-100) …

Software Development python
Member Avatar for s-sriram
0
351
Member Avatar for nizar4445

Please could you give me an example of sorting an array and[B] how to call the [/B] [B]function at the main [/B] thanks a lot :o :rolleyes: :rolleyes:

Software Development c
Member Avatar for vegaseat
0
230
Member Avatar for cblue

Can anyone give me an idea how to convert an int or decimal number into hexadecimal? I know how to do it for binary by dividing by 2 and using the modulus % operator, but how do you take into account a b c d e f if the integer …

Software Development c++
Member Avatar for Narue
0
189
Member Avatar for bobr_1013

The problem I'm having is this: I have a table [MAX_ELEMENTS] [18] where the MAX elements can be as high as 100,000. The length of each element is 18 characters. What I doing is simply loading in full 18 character records into this table. The problem I'm having is that …

Software Development c++
Member Avatar for bobr_1013
0
181
Member Avatar for dallin

when using #include <iomanip> ; what is the syntax for formating numerical values for currency - example 123456, format to $123,456. Using the cout << command.

Software Development c++
Member Avatar for dallin
0
182
Member Avatar for Acidburn

hello, I kep getting : [quote] C:\computer science programming\excerise sheet 6\cheque account\3 - Bank.cpp(100) : error C2614: 'cheque' : illegal member initialization: 'Balance' is not a base or member Error executing cl.exe.[/quote] [php] #include <iostream> using namespace std; class BankAccount { public: //void setAccount(int num, double amount); taken out replaced …

Software Development c++
Member Avatar for Acidburn
0
160
Member Avatar for mikecoyner

whenever i use cin.get in a loop it skips over the first cin.get. for example, in the code below, the programs skips over the cin.get for the stu.name?? [code]#include<iostream.h> #include<fstream.h> struct student { char name[20]; char ssn[20]; char dob[20]; float gpa; }; main() { student stu; ofstream outfile; char choice; …

Software Development c++
Member Avatar for mikecoyner
0
264
Member Avatar for JoBe

Hi ladies and gents, I wanted to start a new exercise, but after reading it several times, I actually don't know what the exercise is all about :!: The translation into English is this: [quote]Write a function wich can be declarered as the following: unsigned int datecode(int year, int month, …

Software Development c++
Member Avatar for Narue
0
439
Member Avatar for Auto

After fixing some pointer problems with my structures, I decided to move the functions performed on them to another .cpp file. Here's the definition in my [B]main.cpp [/B] above the int main() of course [CODE][B]struct[/B] employee { [B]char[/B] name[[COLOR=Navy]20[/COLOR]]; [B]int[/B] schedule; [B]int[/B] level; }; [B]struct[/B] employee salesdept[[COLOR=Navy]10[/COLOR]];[/CODE] then in my …

Software Development c c++
Member Avatar for Auto
0
262
Member Avatar for Auto

I have a program that calls a function to generate an array of structures( data_set ). The structures consist of a char[20] and 2 int data types. Now what I'm trying to do is randomly pick from an enumerated data type and here is the code I have with a …

Software Development c c++
Member Avatar for Auto
0
164
Member Avatar for tenoran

Could anyone define "Memory leaks" well ? 'cause pretty hard for me to understand with C++ books.

Software Development c++
Member Avatar for Acidburn
0
106
Member Avatar for dave2point0

Hi, I am making some software for microchips. I am currently developing some algorithms or the PC, and was wondering if there is a way to access a mouse button in very simple C, not c++, in the form of a variable, either on or off. Also, switch bounce is …

Software Development c c++
Member Avatar for dave2point0
0
172
Member Avatar for JoBe

Hi ladies and gents, I'm trying the next exercise: Write a function value, wich adds the decimal numbers of 'n' together and return the result of this into main? For example: 0.1234 = 10 0.01234 = 10 0.3286 = 19 What Ive got so far is this: [CODE] short amount …

Software Development c c++
Member Avatar for JoBe
0
318
Member Avatar for shouvik

"THINKING IN C++" a real cool book in C++ is available online and can be down loaded free of charge. The site is!!! [URL=http://www.codecuts.com/mainpage.asp?WebPageID=315]http://www.codecuts.com/mainpage.asp?WebPageID=315[/URL]

Software Development c++
Member Avatar for Saelice
0
320
Member Avatar for Turiya

"Invalid procedure call or argument" As I try to remove an item from a listbox call List1 I try this code... If List1.List(i) = List1.List(i + 1) Then List1.RemoveItem (i) if the list contents are identical, remove one of them but it doesn't work!

Software Development visual-basic
Member Avatar for Turiya
0
419
Member Avatar for tommy1988

i wanna start programming with c++ what would you guys suggest is the best compiler program out at the mo? :twisted:

Software Development c++ ide
Member Avatar for Raven11
1
139
Member Avatar for sinB

[SIZE=2][B]TO CALL OTHER PROGRAMS FROM WITHIN OTHER PROGRAMS-[/B][/SIZE] Just include the standard c header file cstdlib (no .h!!). You can now use the function system( :eek: ). It takes only one parameter- the name of the program you want to call! Here is an example [CODE]#include <iostream> #include <cstdlib> // …

Software Development c++
Member Avatar for aj.wh.ca
0
202
Member Avatar for Asif_NSU

I want to make a program that will start off by opening a text file(blank). The user will put an expression in the file and as he hits the enter(enters a newline character) the result will be shown in the next line of the same open file. Itz almost like …

Software Development c++ file-system
Member Avatar for Narue
1
289
Member Avatar for ok555

Ok, im new to c++ and i looked around and couldn't find anything on it.. I have a global char such as the one below, i made a loop to go through and basically "grab" each name in the names list and then display it to me.. but instead of …

Software Development c++
Member Avatar for ok555
1
175
Member Avatar for Phreak

Hi, i am currently wanting to create a VBS script that will do the following in this order: run gpedit.msc then close delete the default user folder in "c:\documents and settings" delete the gpedit folder in "c:windows\system32" copy the "default user" folder from my "memory stick" to the "documents and …

Software Development visual-basic
Member Avatar for Comatose
0
252
Member Avatar for NewVBguy

Hi, I want to know the date when is a file was created plus the size of the file. Can somebody show me a vb code that handle this things. Thanks in advance. Newvbguy

Software Development .net:vb.net file-system
Member Avatar for NewVBguy
0
187
Member Avatar for dbarcode

How do you start/launch a 3rd party *.exe from within a VB.NET application. The program we want to run do have a few command swithces.

Software Development .net:vb.net
Member Avatar for dbarcode
0
137
Member Avatar for NewVBguy

Hi, I'm trying to make a backup program but suddenly i got stock with this problem. I want to search all the .txt file in my drive c: and make a zip file on their respective folders. Can somebody share a code for this one? Thanks in advance. Newvbguy

Software Development visual-basic
Member Avatar for NewVBguy
0
154
Member Avatar for vegaseat

I am not shamelessly promoting this book, I just happen to like it and use it a lot! "Standard C++ Bible" by Stevens and Walnum, published by Hungry Minds. This 800 page plus book is loaded with samples and comes with a CD-ROM containing all the samples and a nifty …

Software Development c++ ide
Member Avatar for wbk
0
190
Member Avatar for fastcarz3

can anyone come up with a solution for this ? real quick for me? the factorial of a nonnegative integer n is written n! ("n factorial") and is defined as follows: n!=n*(n-1)*(n-2)*.....*1(for values of n greater than to 1) and n!=1 (for n=0 or n=1). For example, 5!=5*4*3*2*1, which is …

Software Development c c++
Member Avatar for Narue
0
670
Member Avatar for JayseR

I'm trying this new project, like this. Write a program which will use functions to compute the distance between 2 points on a plane given their coordinates. If one point is located at (x1,y1) and the other is located at (x2,y2) then the formula for computing the distance is sqrt(sqr(x2-x1) …

Software Development c++ file-stream
Member Avatar for JayseR
0
542
Member Avatar for dallin

I have random numbers such as 1 6 8 5 7 3 9 2 4 in a 1 dimensional array what for loop do I use to reorder the numbers from 1 through 9? thanks.

Software Development c c++
Member Avatar for Narue
0
360
Member Avatar for Layla_2401

Hello Everyone, I'm a problem with a recursive C function. Before I explain the functionality of the code, I'd like to give a brief explination of what I'm trying to do. I'm working on a general tree data type which represents entities, each of which has a list -array- of …

Software Development c
Member Avatar for Layla_2401
0
357
Member Avatar for xfruan

Hello, i'm a novice who have some ideas of the basic concepts and some advanced topics like templates and exception handling. I now want to improve my programming skills. I would very appreciate if anyone could recommend some good books to me. :)

Software Development c++ career
Member Avatar for xfruan
0
193
Member Avatar for Sphyenx

some one recomended i learned python too, wwhat it is??

Software Development python
Member Avatar for vegaseat
0
269
Member Avatar for kloony

Hi Guys, it's me again! I have been posing memory-related problems for the past few days because I don't seem to understand what is the problem with my code. I kind of figured it's due to memory issues....so here's my question. Suppose I have a (first in first out) queue …

Software Development c queue
Member Avatar for kloony
0
399
Member Avatar for tat2dlady

Does anyone know how to compare a old style character string with a character in qoutes? Example: I want to compare the first character in a record that is stored in an old style character string with a `*`. Here's what I have in my code: char FirstCharacter[1]; // Character …

Software Development c++
Member Avatar for tat2dlady
0
150
Member Avatar for dallin

I'm stuck, I have a base class String, derived class Pstring, and trying to develop another derived class Pstring2. Pstring2 needs a function called left. Main will call the function by Text.left(Text1,N) // Text2 is assigned the leftmost N characters from Text1. I'm having a hard time understanding how to …

Software Development c++
Member Avatar for dallin
0
117
Member Avatar for new comer

hi i have just got my self a Borland 4.5 from ebay and would like some help in using it. i am very new to programing and i would like to be able to put a shoping cart on my website but i know nothing about it all help very …

Software Development c++
Member Avatar for vegaseat
0
166
Member Avatar for trevs234

in a book there is a code that i am trying out and my compiler keeps giving me diferent errors (compiler is Borland C++) and i dont know how to fix them. the code is [code] //----------------------------------------------------------------- // Skeleton Application // C++ Source - Skeleton.cpp //----------------------------------------------------------------- //----------------------------------------------------------------- // Include Files …

Software Development c++
Member Avatar for vegaseat
0
170
Member Avatar for oxyi

Hi, looking for an assmelby programmer for x86 today . Yes March 11. for a small project take only an hour or so. I am paying $30 or oOB paypal for it, please emaile me oxyigen@gmail.com Again, it is today only, and need it done by 6pm PST. This is …

Software Development assembly
0
123
Member Avatar for Maple_Tiger

In this book I'm using, Sams Teach your self C++, it says to: Start compiler, choose file, choose Win32 Console Application, choose empty project, choose C++ source file, edit source code, choose build, check that you have know build errors and run the program. Whats the difference betweeen Build and …

Software Development c++
Member Avatar for Maple_Tiger
0
196
Member Avatar for NewVBguy

Hi there, I'm trying to print an ms word file using vb. Before it will go to printer, I want the document file to be viewable but not editable. Can anyone help me. Thanks, Note: I was able to view the doc file but it is editable. I am using …

Software Development visual-basic
Member Avatar for Comatose
0
181
Member Avatar for dani1982

i am suppossed to write a program using an array of strings to hold the words of the ICAO alphabet, and index the array by the positions of the letters of the alphabet. I started it off but cannot figure it out please help!! #include <iostream> const int n_row=26; const …

Software Development c++
Member Avatar for Tight_Coder_Ex
0
263
Member Avatar for kloony

I have a first-in-first-out queue implementation such that when it is first initialized, a malloc is called to set aside memory for items that will be placed on the queue. When I am done with the queue, how do I free up the memory? My code for the queue is …

Software Development c queue
Member Avatar for kloony
0
553
Member Avatar for Acidburn

[php] #include <iostream> #include <cmath> using namespace std; class point { public: point(int xcoord , int ycoord); //constructor point(); int getX(); int getY(); double getDistance( point otherPoint ); void setpnt(point p); private: int x, y; }; class rectangle { public: rectangle(point p1, point p2, point p3, point p4); void perimeter(); …

Software Development c++ object-oriented-programming
Member Avatar for Narue
1
199
Member Avatar for firion

hi administrator, I'm a beginner in c++.I need to draw a graph(x vs y type).I used graphics.h and ended up with a very primitive version of a graph.The graph appears like a scribbling in the top left corner of the screen.I don't know how to draw the x and y …

Software Development c++ graphics
Member Avatar for vegaseat
0
122
Member Avatar for Lapari

Hi there, I am working on an assignment that I have to create a menu. The user is suppose to select the menu and change form color. But I have no idea how to that. Help please. Anyone?

Software Development visual-basic
Member Avatar for Lapari
0
270

The End.