49,756 Topics

Member Avatar for
Member Avatar for new programer

Hello, I've been wondering about how to make shapes out of stars (*). Like a rectangle and different stuff. Is there a way for that ? and how ? Thanks all,

Member Avatar for VernonDozier
0
158
Member Avatar for kiryoku

Get the remarks of ten employees on three items... the remarks is determined by comparing the total sale of an employee to the average of the group.. i've done this already..dont know to add the items...and get its average... its only the input... #include<iostream> #include<conio.h> using namespace std; int i,n[10],it,item[3]; …

Member Avatar for Sky Diploma
0
83
Member Avatar for minkoko

i want to about C and C++ project? show me a window GUI project for me i not understand about this i make project for my frist learning it include main.c , .h, .rc ,and i not know about this please explain me ,if possible tutorial for me sorry bad …

Member Avatar for kvprajapati
0
90
Member Avatar for qamarullah

Assignment Write a C++ program to implement employee directory, which will let the organization to perform the following functions: 1) Insert the record of new employee 2) Delete the record of an existing employee 3) Find the record of an existing employee 4) Display Report Following information of each employee …

Member Avatar for kvprajapati
-1
141
Member Avatar for Jigg1yPuff

ok, so i've read most of the stuff here to help with sorting string arrays in alphabetical order, but i got more confused... i need some1 to take a look at my program and see where i went wrong. also, i need help in getting the largest,smallest,and average... yes, i'm …

Member Avatar for John_conner
0
187
Member Avatar for samsons17

Hi people... I'm still new in c++.. I got the problem with the recent assignment that i have to do... This is the assignment that i got... [ATTACH]12228[/ATTACH] my problem is i dont know how to display all the value that the user entered into a single receipt...when i tried …

Member Avatar for samsons17
0
128
Member Avatar for SgtMe

Hi. Firstly, I am a complete noob, and cannot understand complicated answers. OK. I'm making a noobish space game, called Galactic Armageddon. I'm just testing the variables right now (for getting hit by lasers, missiles, etc.). I'm compiling using Dev-C++ and the default compiler. The program is written using the …

0
144
Member Avatar for MedianHansen

[code] #include <SDL.h> #include <iostream.h> int main(int argc, char* argv[]) { //initialize SDL and the video system. if (SDL_Init( SDL_INIT_VIDEO)<0) return -1; //signal SDL to change the text of the main window to SDL "Hello World". SDL_WM_SetCaption("Hello world","Hello World"); //Create an SDL_Surface object, which represents, the game window. SDL_Surface* screen=SDL_SetVideoMode(640,480,0,0); …

Member Avatar for SgtMe
0
931
Member Avatar for volscolts16

I'm writing code for an address book that the information will be output to a text file in alphabetical order. I have most of the code, and I have done this kind of thing before, but it has been over a year since coding. So, just a start would be …

Member Avatar for ariel1304
0
101
Member Avatar for INTIKHAB
Member Avatar for Krstevski

Hello guys, I have one question about Qt... I`m fairly new in Qt and... I create the application in Qt in Linux and now I want to make a version for Windows, but do not know how to do it. I have read and follow tutorials for cross-over compiling but …

Member Avatar for Krstevski
0
86
Member Avatar for bluegoo06

i have a homework assignment using the calculatecharges function...we use C++...but my book doesnt have the actual usage for it in it. we have to calculate parking charges for cars in a parking garage...could someone please explain exactly how you would use this function to do that ... thank you

Member Avatar for dydx
0
260
Member Avatar for rtomona

Hi, I have a program in C++ that has a void main and I like to call ftp from inside of this C++ program to bring some files from a machine on the known network to me. Is there robust C++ code that I can use? Thanks, Ray

Member Avatar for ithelp
1
32
Member Avatar for new programer

Hi all, This program is compiled successfully but it does not do what it is meant to do [CODE]# include <iostream> using namespace std; int main () { double interest_py, interest_pm, month_pay, loan, interest_due=0; int counter=0; cout << "Loan amount ="; cin >> loan; cout << "Interst per year ="; …

Member Avatar for ithelp
0
85
Member Avatar for nurmuhamad88889

Hi Could somebody help me doing this question...:confused: I'm a beginner in c++........ TQ:):):):):) [U]Handphone[/U] -phoneNumber:string -message: string -credit:double -sms_rate:double -inbox:string[N*] -object_counter:int +<<constructor>> Handphone(no:string, cr:double, rate:double) +smsEdit():void +smsRead():void +operator>>(recipient:Handphone&):void +getCredit():double +getObjCounter():int +operator+(topUp:double): Handphone 1. Constructor initializes the phoneNumber (default value 012345), credit (default value 50) and sms_rate (default value 2.5). …

Member Avatar for ithelp
-2
99
Member Avatar for thescroll

Hi there, I'm a new poster to these forums. A group of amateur programmers and I, some with C++ knowledge, others with Java knowledge, are planning to create a group project. My question is, is there a way to combine segments of Java and C++ code together into one program …

Member Avatar for restrictment
0
38
Member Avatar for mrrko

Ok, here's the problem [i]Write a program that gives and takes advice on program writing. The program starts by writing a piece of advice to the screen and asking the user to type in a different piece of advice. The program then ends. The next person to run the program …

Member Avatar for manojlogu001
0
148
Member Avatar for GSEninja

Hello everyone, my name is Daniel and as the title says I am new to C++, programming and DANIWEB. I attend Cal State San Marcos, going for a major in Computer Science and looking to learn a lot through the school and hopefully this forum. I am an active duty …

0
24
Member Avatar for ashin

help me to make c/c++ for this quest... [U]THE QUESTION IS MAKE C/C++=[/U] <<Make online banking registration>> hint: ask user to enter yes 'y' or no 'n'... if 'y' user can go to the next step if 'n' user out from program... if 'y' user will go to the next …

Member Avatar for ithelp
0
137
Member Avatar for Fenrir190

I did some searching and I think it might be a buffer overflow but I'm not sure. Could someone tell me what's wrong with this? [CODE]SafeGuard:: SafeGuard(int agent) { for(int index = 0; index < 26; index++) { upperCase[index] = 'A' + index; lowerCase[index] = 'a' + index; } for(int …

Member Avatar for r.stiltskin
0
119
Member Avatar for phanboy4

I'm somewhat new to C++, only having written some smallish C++ programs. Currently I'm having a bit of a syntax issue: I'm trying to design a virtual CPU, and I'd to have 16 index-able bitsets of 32 bits each for use as simulated registers. After searching the net and this …

0
41
Member Avatar for phizzalot

Hello Iam using xcode c++ cmd line to build a program that will 1. read all files in a directory 2. use the last 9 charcters in the Filename to Make a Directory with that name. 3. Move that file to the new directory. My function works well with going …

0
44
Member Avatar for Carrots

Hi, I'm storing base class pointers in a vector, the pointers are pointing to objects from the derived class ( Leads ). I'm unable to access the 'getter' functions of the derived class. How can this be done? I'm trying to save the derived objects in a text file (database.txt) …

Member Avatar for Carrots
0
115
Member Avatar for restrictment

Hello all, I am currently making an rpg type game in C++. The code is bellow: [code] #include <stdlib.h> #include <time.h> #include <iostream> #include <fstream> #include <string> #include <windows.h> using namespace std; int main() { int person, opponent, atk, asuccess, msuccess, game = 1, counter1=1, level = 1, atr, a, …

Member Avatar for Clinton Portis
0
149
Member Avatar for raigs

1. How can I check if a variable has been initialized (if it exists). 2. How can I check if a variable is empty (if the variables contains data). I'm using g++.

Member Avatar for mrnutty
0
80
Member Avatar for Shinedevil

I need some help with delay functions, First off, I know about windows.h, and the sleep(x) function. But I can't use windows.h because it conflicts with my allegro.h causing my compiler to spew out errors from allegro.h everywhere. Is there another function that i could use (Other than having to …

Member Avatar for mrnutty
0
432
Member Avatar for RobBrown

Hello, I am having a hard time with a loop for pulling information from a txt file and averaging it together. My problem is that the loop only reads one line and then quits, so it is only averaging one number. the program prints all the data and then shows …

Member Avatar for RobBrown
0
261
Member Avatar for sebassn

Hey guys, I just need some opinions about this work. I don't need you to do it for me. I'm just a little confused about getting the correct order in the dates (months and days). I know I got to use the [B]while[/B] function. So just please let me know …

Member Avatar for Fenrir190
0
75
Member Avatar for jamesbrad288

I'm having trouble with my programming assignment. It's made up of two parts. Part I is a while loop, and part II is a for loop. The first part counts how many even numbers and how many odd numbers the user types before typing 0. I think I have most …

Member Avatar for jamesbrad288
0
127
Member Avatar for robgeek

Hi, I am reading from a text file and stored it onto a string variable. Now I want to split the string and I tried looking it up on the web and found the strtok () function but that only works on a char type. Here is my code snippet: …

Member Avatar for Clinton Portis
0
116

The End.