241 Topics

Member Avatar for
Member Avatar for dreday92

///Can someone tell me why I am having an issue calling my functions?!?!?! #include <iostream> #include <iomanip> #include <string> using namespace std; struct Players { string name; int numPlayer; //Number of the Player int numPoints; //Point's scored by Player }; const int SIZE = 50; const int MAXPLAYERS =3; typedef …

Member Avatar for Ancient Dragon
0
170
Member Avatar for superchica08

hello everyone I really need help so I have to make functions that find vowels, digits and uppercase and lowercase letters from a sentence inputted. So i was able to do it all in main but i cant seem to make the new program work with the functions properly, it …

Member Avatar for superchica08
0
296
Member Avatar for xjshiya

I have a a table with the following data: reservno || icode || location 00004 || 00021 || Bohol - Cebu 00004 || 00022 || Cebu - Manila 00004 || 00014 || Manila - Bohol I use this query to retrieve the concatenated value of location. `SELECT GROUP_CONCAT(location) from location_list …

Member Avatar for xjshiya
0
163
Member Avatar for agwx2

Hello, I am new to java, and I need help with images. I am trying to move an image up the screen while still allowing another image to move using the arrow keys. If I use `thread.sleep` to move the image, I cant move my other image at the same …

Member Avatar for agwx2
0
290
Member Avatar for np complete

Can some one list all the functions in windows.h and there uses? Can't find it in Msdn.

Member Avatar for np complete
0
260
Member Avatar for Que336

I am having trouble getting this example to work. I posted exactly like it is put on the google documentation but it just won't work for some reason. Some please help me, am I doing something wrong. The link to the documentation is https://developers.google.com/youtube/iframe_api_reference#Getting_Started The code I am using is …

Member Avatar for Que336
0
6K
Member Avatar for Lostelf

Hi everyone I'm having a problem with this program giving me the wrong output. The question is • void getScore() should ask the user for a test score, store it in a reference parameter variable. This function should be called by the main once for of the six scores to …

Member Avatar for rithish
0
378
Member Avatar for Lucaci Andrew

Here's some simulation of the basic push_back and pop_back functions from stl vectors, "inspired" by this thread: http://www.daniweb.com/software-development/cpp/threads/427912/question-about-a-simple-vector-class-template

Member Avatar for Rashakil Fol
0
485
Member Avatar for benjaminpelc

Hi, I am trying to write code to read a text file containing velocity vector data in the form x, y, u, v. An example of the data file I am opening is: 0 1.0 3.24 45.64 1.5 2.5 54.34 23.45 ... I have a function which can read the …

Member Avatar for benjaminpelc
0
259
Member Avatar for jesskavidja

Hey there, I'm having issues with a custom string tokenizer I'm using for an assignment. I've looked around and haven't managed to find anything that really answers my question, so here goes nothing. Whenever I run the program and it runs the tokenizer, I get a seg fault. I'm fairly …

Member Avatar for Sokurenko
0
282
Member Avatar for ASFtlink

This program ask user which arithmetic operation they want to play with then generates a random equation and lets the user answer it. When the user stop playing the game the program calculates the number of correct and answers and wrong answers. I need some help because the program crashes …

Member Avatar for Lucaci Andrew
0
303
Member Avatar for ZER09

i created a dll file using vb.net then it has a shared function that will execute a stored procedure of mysql but my code is something long and when accessing it, it has a big risk that it can produce an error if there is an incorrect string input, i …

Member Avatar for thines01
0
499
Member Avatar for kumarprashant

can anyone kindly help me in writing a program for creating an address book. Its kinda urgent and I ll be really grateful. program description: develop a program for an address book.single entry in an address book is called a contact, which can have any of the following fields, 1. …

Member Avatar for JGorard159
0
233
Member Avatar for SCass2010

Hi everyone, I'm currently trying to do a bit of java programming after not looking near it for almost a year. Most of what I've been doing has been C/C++, and I was just wondering - in C++ you could have a header file with functions only in it, say …

Member Avatar for SCass2010
0
363
Member Avatar for kumarprashant

can anyone kindly help me in writing a program for creating an address book. Its kinda urgent and I ll be really grateful. program description: develop a program for an address book.single entry in an address book is called a contact, which can have any of the following fields, 1. …

Member Avatar for deceptikon
0
4K
Member Avatar for risen375

Hi I need help with this program. When I run this program, it will not print out the correct kilograms which always displays 0. Please help #include <iostream> #include <istream> #include <iomanip> #include <vector> using std::vector; using namespace std; using std::endl; using std::setw; struct PatientInfo { string name; double weight; …

Member Avatar for histrungalot
0
125
Member Avatar for niceyout

hello i am creating a tictictoe game , however i cannot get the program to check if the player has won or not . and produce a you have won message #include<iostream> #include"110ct.h" using namespace std; class TICTACTOE { CursorController*crs; ColourController*cl; int xplayer ; int oplayer; colour Cs; public: void …

Member Avatar for niceyout
0
156
Member Avatar for MrEARTHSHAcKER

Hi, I have read something on IBM's site about exception specification and pointers to functions: void (*f)(); void (*g)(); void (*h)() throw (int); void i() { f = h; // h = g; This is an error. } IBM says: > The compiler allows the assignment f = h because …

Member Avatar for MrEARTHSHAcKER
0
193
Member Avatar for FraidaL

I'm getting an error with this code. Both the findMax and findMin lines in main say "Invalid conversion from 'int' to 'int*'". What does it mean? #include <iostream> using namespace std; int findMax(int[],int); int findMin(int[],int); int main () { int max, min, x; findMax(max,x); findMin(min,x); return 0; } int findMax(int …

Member Avatar for Saith
0
248
Member Avatar for tabbyheart

We just read about Functions and Arrays, and I'm still a little confused on those as well as passing a function by reference and calling it. I've been trying to get help from my online teacher, but he's not entirely helpful on the things that I don't completely understand, and …

Member Avatar for deceptikon
0
163
Member Avatar for CGorelik

Hello, my name is Carol. I'm currently taking an introductory course in C++ and we just learned about functions. I was wondering about the standard accepted format for placing function definitions. For instance, in the following program, should I have defined the power function before the int main function instead …

Member Avatar for deceptikon
0
294
Member Avatar for pattilupwned

Hey all, I'm a beginner programmer and need help here. I can't figure out how to translate a word that begins with a consonant. I have all the code to translate a word that begins with a vowel, and those words translate correctly, but I cannot get the words with …

Member Avatar for pattilupwned
0
2K
Member Avatar for zios007

Yes, I know that this is homework. But I need help. This is code the teacher gave us few days ago. This is a header file. And I needed to do the following: My problem is that I didn't know how to use my vecetor in my .cpp file. How …

Member Avatar for sergent
0
135
Member Avatar for paintballer1518

Currently having trouble completing my code homework for my class. Help would be greatly appreciated. Write a menu-driven C++ program to manage employee data. Your program should begin by reading in a file of employee information (filename employdata.txt). Each data line contains the following information: {hire date} {employee ID} {salary} …

Member Avatar for paintballer1518
0
2K
Member Avatar for hey.howdy

Hi Can anyone please help me understand and so possibly illustrate with an example why and how a function cant return or evaluate more than one value ?

Member Avatar for zeroliken
0
95
Member Avatar for IcyFire

Im trying to write a program that will scan both characters and numbers from a user then put the number into an array or call another function based on the user input. For example the user will type 'Insert 3' and this will call the function to put 3 into …

Member Avatar for IcyFire
0
179
Member Avatar for FraidaL

I wrote this code for a homework problem. The question asks for the inputs to be an array representing a polynomial along with the degree of the polynomial and the value of x. Then it has to return the derivative of the polynomial. Until I ask the program to output …

Member Avatar for Lerner
0
3K
Member Avatar for lw2025

I'm trying to write a simple calculator that uses functions, but I'm really struggling to understand. Technically I'm supposed to have defined functions to enter both operands, but I'm confused about passing the data once it's been entered. I also need a function that decides if the second operand is …

Member Avatar for lw2025
0
144
Member Avatar for SpiderMan120988

Hi, I need help writing a program that allows you to read an English-French dictionary into two arrays. The English words are stored in one file alphabetically while the French words are stored in the other file corresponding to the English words. This means that the program would ask the …

Member Avatar for Ancient Dragon
0
956
Member Avatar for mechanicallogic

I simply cannot figure this program out (nor why I am going in debt paying professors to "teach" me). Our assignment begins with reading a data from a file and storing it in an object array and then displaying the contents of that array. When I compile the program in …

Member Avatar for Ab000dy_85
0
221

The End.