Beginners - October 2014 (Page 43)

by Jhub
need to code the function definitions
 
I am writing a hangman game code and I am having trouble defining, implement and correctly invoking these 3 functions exactly as declared below. @brief Puts ...
[no replies]
Determining the extension type of an image file using binary
 
Hello, I am trying to write a function that determine if a file in a directory is of a gif/bmp/png/jpg extension. Right now I think I have correctly written my ...
[no replies]
by Gridz
I cant get this code to work.
 
#include <iostream> using namespace std; int main() { int num = 0, num2 = 0, digit1 = 0, digit2 = 0, digit3 = 0, digit4 = 0; cout << "Enter a number be...
[1 reply] : what is "The sum of the number is: " ? (by anup30)
What controls the timing between loops in this code?
 
I understand how to set the time of the ramp up and down, blinking, and excited, but what controls the time between ramp down ending and the next ramp up starti...
[no replies]
How can this code get 5 numbers and calculate 5 times (for loop)
 
Dear Friends, I wrote a code to get a number from 5 files and do calculations and write the output in other file. It works well. But Now I want to develop it ...
[no replies]
by AdF312
Iteration numbers
 
My lecturer gives me an assignment to input a number, then make the output like this example: input: 5 12345 12341 52152 43453 32154 It's 12345 and...
[4 replies] Last: http://i.imgur.com/t8zUzUo.png (by poteto)
by akai09
Upper and Lower case?
 
hey guys i need help with upper and lower case character. im trying to get the program to ask to input the choice A, B, or C. but instead of upper case only i ...
[1 reply] : if (package == 'A' || package == 'a'){ } else if (package == 'B' || p... (by coltehrman)
c++11? (1,2)
 
using codeblocks trying to get c++11 standards... not working so well. i'm attempting to use to_string. i get the error "to_string is not a member of std" ...
[22 replies] Last: Linked the 4.9.1 to codeblocks and it worked. (by dark ninjuh)
Having Trouble With Work
 
I have no clue on how I should code this problem. The cost of an international call from New York to Beijing is calculated as follows: Connection fee, $1.99, $2...
[1 reply] : amountDue = 3.99 //1.99 + 2.00 if (minutes == 3) cout << amountDue el... (by coltehrman)
how to ignore CAPS
 
i remember learning about a way to make it so you can enter sothing ether caps or lowercase and it does not matter what is the code for that? cout<<"Wel...
[1 reply] : Make string lowercase before comparing: #include <algorithm> #include... (by MiiNiPaa)
Maze solver without arrays
 
We have a lab that asks us to solve a pre-designed maze which the instructor gave to us. The maze only has one answer, and the hint he gave us is to use Lee's a...
[no replies]
C++ Program Help! [Need Source Code!]
 
I've been working on this for a while now, and I haven't made much progress. I know I'm doing something wrong (hence the lack of code), so any critiques would ...
[2 replies] Last: Try doing somthing like this... int date , max , min ; int date, max... (by coltehrman)
Calling functions
 
So I get 3 errors when the following code is run, errors i really don't know how such a thing can happen. They are 3 of the same error: 1>c:\users\jad\deskt...
[3 replies] Last: Well the errors are gone, however the program isn't working as it shou... (by jado765)
Insertion sort in decreasing order.
 
Solved. Due to protect my code from plagiarism.
[1 reply] : for (int i=0; i<n; i++) //insertion sort, ar , sort in decreasing... (by anup30)
Please help me to correct my mistakes.
 
Dear Friends, I wrote a code to get a number from 5 files and do calculations and write the output in other file. It works well. But Now I want to develop it to...
[no replies]
decompose an integer to powers of three
 
I am trying to write an algorithm that decompose an integer that the user inputs into powers of three. example: 1 = 1 2 = 3 – 1 3 = 3 4 = 3 + 1 5 = ...
[no replies]
by Musica
Quick Question about Classes
 
This code is from the book. I just want to ask why do we have to add the myGradeBook.getCourseName() in the main function. The program will work without it. It...
[1 reply] : Line 38 is simply showing you that courseName is empty. i.e. courseNa... (by AbstractionAnon)
Need to Insert Some Code To Check for Invalid Input
 
I need my program to let the user know if they had entered an invalid number, that would be any number that is not between 0 and 35 and for it to output somethi...
[no replies]
Get the absolute address of a value
 
Hi, I want to get the absolute address of a value of a program. I don't know how to do this, but I think I've seen somewhere that I can do that with knowing wha...
[4 replies] Last: Thanks, I'll read on that! (by Geranimo)
Tic tac toe
 
I am trying to make a tic tac toe game (like many people have) and I'm having trouble. I have a function boardstatus that is supposed to hold the values of all ...
[no replies]
October 2014 Pages: 1... 4142434445... 70
  Archived months: [sep2014] [nov2014]

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