51,593 Topics

Member Avatar for
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
89
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
269
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
33
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
91
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
100
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
42
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
152
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
25
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
139
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
120
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
45
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
121
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
153
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
81
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
445
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
341
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
81
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
131
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
118
Member Avatar for KRal

I am trying to get this program to return a value, but it will not work. Can anyone help? 1. #include <iostream> 2. #include <iomanip> 3. using namespace std; 4. 5. int number_right (char let1, char let2, char let3, char let4, char let5, char let6); 6. 7. int main () …

Member Avatar for Clinton Portis
0
120
Member Avatar for GARO

This is what I have so far. It's wrong in a bunch of ways. I can't seem to find whats wrong. It worked well on paper though :D So... I need some help. Can't use strings. It's giving me wrong palindromes. The numbers have to be prime and palindrome. [CODE]void …

Member Avatar for DoctorBinary
0
144
Member Avatar for KRal

I am trying to return the number of letter matches. No matter the number of matches, I get a return of no matches. Can anyone help???[code]#include <iostream> #include <iomanip> using namespace std; int number_right (char let1, char let2, char let3, char let4, char let5, char let6); int main () { …

0
50
Member Avatar for Qmage

for example [CODE] cout << "User Name: "; getline( cin, s.userName); cout << "Gender: "; cin >> s.gender();[/CODE] but i can't use s.userName or s.gender, because they are protected value(incapsulation), how do i use setUserName(string)/ setGender(char) together with getline/cin?

Member Avatar for Peppercat101
0
3K
Member Avatar for james16

i have just start to learn how to program i was just wondering how long does it take to learn and has anyone got any advice

Member Avatar for William Hemsworth
0
99
Member Avatar for charizmatic_shi

Is it possible to ask a user, in a program involving stack operations -push and pop using a template class , to enter the data type he wish to store in the array used in program and then accordingly dynamically creating an object of that type at run time through …

Member Avatar for Peppercat101
0
92
Member Avatar for Peppercat101

I have a slight problem, I have a dynamicSizeMatrix that has a member [CODE] ListAsLinkedList** theList; [/CODE] Now this ListAsLinkedList can be either DLL or SLL, now it all works fine but when I add elements like this: [CODE] DynamicSizeMatrix hello(ListAsDLL(),5); hello.addToList(0,2,new Integer(10)); hello.addToList(1,4,new Integer(6)); hello.addToList(2,6,new Integer(8)); hello.addToList(3,8,new Integer(7)); hello.addToList(4,10,new …

0
106
Member Avatar for rr0

sir, i am a student of software programming, i am very comfartable using c++ but i dont know about hard ware programming. please tell me how to do hardware programming i want to learn. razi .

Member Avatar for Ancient Dragon
0
43
Member Avatar for rr0

Sir how to start hardware programming in c++, i am student of software engingeeing. I want to groom myself in hardware programming. Plz help me how i start it. Waiting. My email address is SNIP

Member Avatar for pspwxp fan
0
44
Member Avatar for Excizted

Hello eveyone! :) I am making a rather huge application, and I'm starting to face a global problem. Whenever my application is doing sommething, i have a functional [B]progress bar setup to show the progress[/B].[B] My problem is now[/B], that, atleast on Windows Vista / Windows 7, my application whitens …

Member Avatar for Excizted
0
381
Member Avatar for number87

ok so I am trying to read in a file. Do some string checking. And output the counters. But somehow I think something is wrong with my strcmp. And I do not know where is the problem. Everything compiles fine too. [code] #include <iostream> #include <fstream> #include <cstring> #include <iomanip> …

Member Avatar for Ancient Dragon
0
133
Member Avatar for mirn27

how to program a program to calculate the area and the perimetre of a circle? pls answer me asap i need to know quickly thank you!

Member Avatar for Grn Xtrm
0
196
Member Avatar for matasko24

Hallo I would like to make some simple mp3 player as my diploma work,but I dont have a lot of skills about this problematic.Can you help me? Thank you.

Member Avatar for matasko24
0
77
Member Avatar for somaja

[B][COLOR="Red"]hi every body i need a lot of help in my assignment : and of course i will show my work .[/COLOR] really biggeners :confused: +++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++ [COLOR="Red"] this is the task :[/COLOR] The factorial of a number n (written n!) is the number times the factorial of itself minus …

Member Avatar for squ
0
412
Member Avatar for Buffalo101

Hello, I'm having problems passing an array of structures to a function by reference. Is this a) needed b) achievable? My assignment's requirements aren't very thorough, but it is however in the "Reference parameters" section. [CODE]struct x{ int a; // this is irrelevant float b; }stud[10]; void mod( ??? ){ …

Member Avatar for Gaiety
0
134
Member Avatar for dylank

Hi, I am a begginner programmer that is attempting to create a program that will spit out the (x,y) plots for a graph. Currently, I only need it to give me the x and y data in (x,y) form, so here is my current code. By the way, I am …

Member Avatar for jonsca
1
153
Member Avatar for nevets04

Heres the situation so far.I'm in 9th grade and I've been programming in python. I enjoy python however, my high school doesn't offer any courses for python. In 11th and 12th grade, I can take C++. So here's my question: Should I: A) Learn python for the next to years …

Member Avatar for hawash
0
198
Member Avatar for UKmason

***************************************************** Write a program that will get some input from the user about a visit to an oil change service. The program will calculate the bill for the services requested. Prompt the user to input whether or not they want each of the services. You can assume the input will …

Member Avatar for alg
0
121
Member Avatar for th3learner

[code=c] #include<iostream.h> #include<conio.h> #include<stdio.h> #include<string.h> void main() { char s[100],z[10]; clrscr(); cout<<"Enter your name:"; gets(s); cout<<strupr(s[0]); cout<<"."; getch(); } [/code] what I am looking for is that when user input deniweb,then it should output [B]D[/B] please help Thanks

Member Avatar for Sky Diploma
0
160
Member Avatar for puks25

suppose there is one class which is derived from another class and contains one friend function with pointer of class-name data type so my problem is it is difficult to access memeber function of that class through friend function using pointers.

Member Avatar for mrnutty
0
41
Member Avatar for geg13

I would like help with making a program 'type' out the text as the program is running i.e. not having the entire line appear at once but letter by letter.

Member Avatar for geg13
0
117
Member Avatar for sampath kumari
Member Avatar for Ancient Dragon
0
35
Member Avatar for luskbo

I have a program that creates a struct. It also has a class that creates a pointer to an array of structs that is created. I'm having trouble accessing the elements of the structs in the array, with the pointer. Below is a sample of the code. Struct definition in …

Member Avatar for luskbo
0
127
Member Avatar for alexcarrero

Please, I need some help with my hw. I have to create a program that stores the scores for a football team. I need to record the score by quarter for each of the 20 games. I have to initialize all games to 0. Then, the user is asked to …

Member Avatar for alexcarrero
0
83
Member Avatar for #www#

hi every one i need help please i want a program to evaluate a postfix expression i have made a code for it . but it works just with numbers between 0 &9......but i want to use the program with larger numbers e.g: 20 30 + = 50 i will …

Member Avatar for #www#
0
108
Member Avatar for Epi23

Ok, so I am trying to write a program that will solve simple math and physics problems, and am trying to use strings and words more, so my question is: is it possible to use a char in an if statement? I'm new to this so yeah. Here is what …

Member Avatar for Epi23
0
6K
Member Avatar for Shinedevil

Ok, I know I'm probably programing in some kind of archaic way for C++ but my knowledge base is rather limited. I'm having problems with my input not being identified correctly (or however you would say it, rusty is me) [code]cin>>StatsChange; if (StatsChange == "Strength" or "strength" or "str" or …

Member Avatar for Shinedevil
0
140
Member Avatar for geg13

How would i go about making a program wait before printing the next line? Keep in mind that i would like the next line to print automatically after a few seconds. Also if at all possible i would like to know how to make the text act like it is …

Member Avatar for Clinton Portis
0
97
Member Avatar for bui520

Format the output in fixed point notation with two digits after the decimal point, even when the number is zero or has no fractional part. Omit the input validation for this program. You may assume the user input is in the valid ranges described. Remember to turn in your program …

Member Avatar for mrnutty
-1
134

The End.