Beginners - April 2014 (Page 16)

I need to break down the program into function calls and prompts the user for an order until he exits the program (1,2)
 
Write your question here. #include <iostream> #include <iomanip> using namespace std; int main() { int ColdSandwichesWithChips, SideOrder, Beverag...
[23 replies] Last: Sorry - I guess I wasn't clear. Yes, I agree the compiler would compl... (by wildblue)
typeid help
 
I have a kind of pointless question but I'd still love to know why it does this. consider the following code: #include <iostream> #include <string> using na...
[9 replies] Last: > Do you think having different vectors of different item types would ... (by JLBorges)
How does this compile
 
The following code has a problem, but compiles and runs fine int &get(int *arry, int index) { return arry ; } int main() { int ia ; for (int i...
[3 replies] Last: Thank you both, yes that helped a lot. All this time I was confused ab... (by closed account EwCjE3v7)
by chofs
2d array infiling from text problem
 
hello guys i seriously need ur help....i made a code to take readings from text file for my matrix....the problem is when i output the pattern is all rong...e.g...
[3 replies] Last: well it really depends on what you are trying to achieve. If you wish ... (by CodeGoggles)
Store 2 integers in a template
 
Can I use template<> to store 2 integer? Something like template<int, int> If yes, how?
[5 replies] Last: Look at the C++ Standard Library. It is mostly template code. For ex... (by keskiverto)
How to put a line of a text file into an array for encryption? (AES)
 
I am writing a program for AES Encryption which is all but done as far as that the program encrypts the text and prints the encrypted text in the command prompt...
[7 replies] Last: I finally got it. thank you! I used the std::hex to convert the intege... (by browncow)
Please help with this code
 
I use Cfree 5.0 and this code have 6 error is in the last line and to be honest, i dont know where i go wrong.Please have a look: #include<iostream.h> usin...
[3 replies] Last: Oh thank you very much. Well i am still newbie ( just start for a few... (by hidadsek)
Undeclared variable with an Array of Objects
 
What expression is expected in this error message? ERROR: line 44 expected primary-expression before "double" How do I get main() to recognize functions ou...
[9 replies] Last: I need to input 6 different points of data for a user defined amount o... (by dgwhite)
ints and enums
 
If I have some enum like enum direction{up,down,left,right}; And I want to generate a random direction. I can generate a random number from 0-4 but...
[2 replies] Last: Thanks (by RadWayne)
by Bolbi
getInstance()-function wont work
 
I am using SFML 2.1 and codeblocks. I tried to write a "getInstance()"-function for the CGame-class but anything wont work. Pls help. CGame.cpp: #include "C...
[7 replies] Last: No worries. Make sure you understand why your changes fixed stuff :) (by mutexe)
practice programs
 
What are some basic programs that I could right to practice basic c++ programming. Im talkibg about like cout cin, float int double, for while and do while loop...
[2 replies] Last: https://projecteuler.net/problems (by mutexe)
Files/Functions-HW help
 
Problem: Programming Challenge #11 pg 489, Chapter 8, Using Files - String Selection Sort Modification in the Gaddis C++ Book. You must first complete Progr...
[no replies]
bool positive in Fraction class
 
I got everything implemented and set to finish. However, I have no clue how to implement the bool positive data member in the Function class. Does anyone have a...
[1 reply] : This is probably the way you want to do it - make sure that everything... (by TwilightSpectre)
Psychic Program
 
Objective - To write a program that will predict the future Method - 1. Use the main procedure to a. Prompt the user for his/her lucky number. Use this ...
[1 reply] : http://www.cplusplus.com/reference/ctime/clock/ The clock function co... (by PrivateRyan)
Identify Prime numbers
 
Question: Write a program to read a number N from the user and then find the first N primes. A prime number is a number that only has two divisors, one and it...
[6 replies] Last: if (i%j ==0){ break; } else cout << i << " " << "is... (by giblit)
Data Accessors
 
Hello. I am new to C++ coding, and am learning data accessors. This code will not compile for me and I cannot figure out why. Thank you for your help. ...
[10 replies] Last: Oh, wow. I totally skipped over you telling me that before. Thank you ... (by sportstool)
Linear Search for Login
 
Hi, I am in need of some help! I am writing a web site login program that compares the input of a User ID, password, and PIN to that from a text file. So far I ...
[2 replies] Last: Thanks, but they have removed their code so I am not sure what was goi... (by Mch5904)
by Aceix
Missed the link somewhere...
 
Please help me with this(soo tired). No compile errors but the linker tells me(using g++): Z:\home\aceix\Desktop\Sublime Text 2\C++ Codes\test_menu_wrapper.o...
[no replies]
Use of undeclared identifier error when it has already been declared elsewhere
 
I'm trying to create a binary tree from code given to me by my professor, but Xcode is telling me that the identifier "root" is undefined in my binarySearchTree...
[no replies]
Trouble Incrimenting Linked List from Main
 
I'm trying to write a function that accepts a linked list as its argument. I then create a pointer of the linked list class and set it equal to the head of the...
[2 replies] Last: Thanks for the help! I had the appendNode(), insertNode, etc already i... (by Khillz3000)
April 2014 Pages: 1... 1415161718... 67
  Archived months: [mar2014] [may2014]

This is an archived page. To post a new message, go to the current page.