Beginners - March 2014 (Page 12)

Comparing array of string
 
Hi there! I'm new so hello everyone, I need help with two pieces of my code, which I can't solve at all. Tried different combinations, but I always end up gett...
[3 replies] Last: You could try storing the month as an int, as you have year and day. W... (by booradley60)
PersonType class
 
Example 10- 10 defined a class personType to store the name of a person. The member functions that we included merely print the name and set the name of a perso...
[no replies]
variable totals?
 
Hi, this is the code i'm referring to: #include <iostream> #include <conio.h> using namespace std; int main() { int usernumber, square, cub...
[4 replies] Last: Thank you for your help (by LEHCAR95)
Compiling error, unresolved external error
 
I tried writing a program to drop the lowest of 5 inputs and calculate the average of the remaining 4, but I can't compile because of an error I am receiving. t...
[1 reply] : int findLowest(int &, int &, int &, int &, int &); //... (by keskiverto)
Error- No matching call to function?
 
My job is to make a program that reads in 10 numbers, and only send out the distinct ones in the end. I am getting a semantic error, no matching call to functio...
[1 reply] : Line 14 - You declare distinction to take 2 arguments. Line 33 - You ... (by AbstractionAnon)
Threat on my Antivirus
 
I am new at C++ and when i start program it shows up a threat on my AVG Antivirus. Please, any help will be usefull. And thanks. I don't know if this is use...
[6 replies] Last: http://www.everbatim.net/store/kbase/avg_exception.html (by Smac89)
Binary String to Decimal Number C++
 
Hello, I have a project due tomorrow that I'm working on for my C++ course that's giving me some headaches. I need to input a binary string, and the program wil...
[5 replies] Last: First you didn't print the return value of your function and second, y... (by Smac89)
by rshoe
Returning functions
 
I have two functions I need to write and I am having trouble writing them. First function receives an array of long and returns the 2nd value stored in the a...
[2 replies] Last: I figured it out! The function for long array should of been like thi... (by rshoe)
Function Parameters & Arguments Question
 
I am new to C++ and a Computer Science Student and I a seem to be missing something because as I look into my text book and try to run their example to understa...
[2 replies] Last: Thank you so much, I will correct that. I was so busy trying to make s... (by VirgilRodriguez)
Lot's of unexepted errors
 
I got Dev-C++ 4.9.9.2, and i watched tutorial and in this code there's a lot of errors such as "default arguments are only permitted for function parameters " ,...
[7 replies] Last: ok Peter87 (by Lovrovk)
Theater seating chart help!
 
Hey, im having problems making a seating chart for a movie theater. basically i have to get input of what row they would like to sit in and what chair in tha...
[2 replies] Last: cause im better with if (by zedlander1000)
how to pass an array of string type ?
 
hello, I've faced a problem while solving my assignment, hope to find a help . I want to know how to read a string from a file , then pass it through a function...
[2 replies] Last: Got it ! thank you . (by promise20)
by msrt92
Error spawning
 
what does this "Error spawning cl.exe" means? and make my program as short as u can do..... #include<iostream.h> #include<conio.h> void main() { dou...
[1 reply] : The error means that your IDE can't even run the compiler program. Yo... (by LB)
help needed in hash map stl program
 
#include <iostream> #include <string.h> using namespace std; class Data { public: string key; string value; //constructors Data() ...
[1 reply] : Please use code tags: http://www.cplusplus.com/articles/jEywvCM9/ You... (by LB)
i dont know how to fix a runtime error
 
#include <iostream> #include <cstdlib> #include <string> using namespace std; struct ITEM // used for item varification. if player has an item, that it...
[2 replies] Last: If you want to allow arguments to be passed to your function you will ... (by Peter87)
print name vertically,diagonally and horizontal
 
help i need a code that can print a name vertically,diagonally and horizontal at the same time alejandro l e j a n d r ...
[7 replies] Last: thanks you saved my skin (by simonsays0704)
Output the factorial of 100
 
I have used the function below but the output is always 0. Is there any way to output the factorial of 100? unsigned long long factorial(unsigned long long ...
[7 replies] Last: how many digits can a unsigned long long int have? std::numeric_li... (by Peter87)
breaking out of a loop
 
Hello, I am wondering if there is a way to do this: I have this #include <iostream> using namespace std; int main() { int arr , stopper, j=0, h...
[2 replies] Last: have a boolean rather than a break bool bLoopDone(false) while(<some... (by mutexe)
loops
 
Hi, quick question for a brand new c++ user. How would i go about making a loop from 1 to a value which will be entered by the user (i will not know the value w...
[9 replies] Last: thanks! (by LEHCAR95)
Reverse the order of a bubble sort?
 
How to reverse the order of this bubble sort? void bubblesort(char arrray ) { int i, j, flag = 1; int temp; int numLength = 20; ...
[1 reply] : Use < instead of >. (by Peter87)
March 2014 Pages: 1... 1011121314... 79
  Archived months: [feb2014] [apr2014]

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