Beginners - August 2014 (Page 37)

String find and string to char pointer
 
I am writing a title case program.At the moment, I am stuck. I want to implement an excact find.What I have finds all occurence of that string. 1) size_t f ...
[1 reply] : For the first part you could check if there is a space after foo possi... (by giblit)
Having an error with my if statement (ISO C++ forbids comparison between pointer and integer [-fpermissive])
 
It says i haven't declared God in the scope #include <iostream> #include <cstdlib> using namespace std; int main() { int name; cout << "Type...
[9 replies] Last: God should be a string which is have to be inside of double quote (by xenovia12)
Upside down number pyramid
 
Hi, i was wondering how i could output an upside down pyramid with the size thats determined by the user. for example: if a user inputs 4, the output would ...
[2 replies] Last: Anywho, this should work... for (int i = 5; i >= 1; i--) {... (by Hambone)
Need to know how to prevent numbers after the hundredths place from showing up
 
Hello. My program calculates and displays data for a restaurant bill. However, I wanted to how to prevent anything after the hundredths place from being display...
[3 replies] Last: I needed to include 'fixed'. Thanks! (by almightygorilla)
by Meee32
Classes (1,2)
 
Hi everyone, I'm kinda introducing myself to the forum and going to ask a question too, I feel I may be in and out of here quite a bit, I am determined to crack...
[26 replies] Last: Ahhhh okay I see, so this one is more for the Qt creator crowd. :) Bu... (by Meee32)
multiplicand
 
I wanted to know how I would write this program: Input an unsigned positive number. Output all numbers that make that number, for example: Input: 4 1 * 4 ...
[1 reply] : Brutefore/recursion would probably be the easiest solution I can't rea... (by giblit)
Question about a Lambda error??
 
This is a final project for a class that is supposed to convert dollars to coins. I want it to loop through and show how many quarters, dimes, nickels, and pen...
[10 replies] Last: The directions for the assignment said whole numbers, so I am guessing... (by tlu3597)
Can't fill char [80] using strings less than 80
 
HI Everyone . I have a class : class person { private : char Name ; public : void set_firstname (char input ) {*Name = *input;} } and there...
[3 replies] Last: Thank you my friends :) (by Ardeshir81)
Help with multiple strings in one variables slot.
 
So I got a quick question here. So on the first 'else if' statement I want the user to enter a game name but it freaks out when they use multiple words. For exa...
[4 replies] Last: Your welcome. (by Codermik)
Anyone in Toronto area skilled in C++?
 
I wouldn't mind meeting with someone that knows a good deal about C++ and wouldn't have an issue explaining it to a moron/newb like myself :-P Pref someone tha...
[no replies]
by Subo93
Object oreinted Programming
 
I'm new to object oriented Programming.Here I want to check the available amount is greater than amount that purchasing and return true or false.Can anyone show...
[1 reply] : > Can anyone show the errors A compiler may. foo.cpp:48:12: error: re... (by ne555)
by wharp2
How to make a array a reference variable?
 
can someone show me how I make this array on the heap a reference array so that all my function can use it. Bellow is my attempted but its not woking. Thanks ...
[2 replies] Last: so that all my function can use it What do your function declaration... (by Chervil)
Pass By Reference Question
 
Hi, I'm learning about pointers and references and came across these example: #include <iostream> using namespace std; void passByReference(int &x); ...
[1 reply] : The second is not a "by reference". It is actually "by value", but si... (by keskiverto)
help me im a beginner
 
Hi anybody help me here how can i put ( border AND ANIMATION ) USING C++ on my words-----> ("bpsu") ("balanga city bATAAN") th...
[2 replies] Last: Are you referring to ASCII art? (by closed account j1CpDjzh)
Determining mode
 
Hi I'm having trouble determining the mode. If the sequence is 9 3 3 3 9. The mode is found to be 9. It always tends to choose the higher value that's repeat...
[4 replies] Last: You could consider http://www.cplusplus.com/reference/algorithm/equal_... (by keskiverto)
by xtianl
Need Help !
 
Guys may i know what's the right code/logic here? I am new in programming. Please help. ------------------------------------------ Requires: variables, dat...
[4 replies] Last: then how about if i want to print and sort them in decreasing order? (by xtianl)
Output Error
 
Hi. I need help with my lab assignment. It will not display employee2 information correctly. I've worked out some kinks in the code since I first posted. Can ...
[no replies]
do while loop won't work.
 
I am taking a shot at the exercise in this book that I've been reading through. The instructions read "1. Rewrite the Menu Chooser program from this chapter usi...
[4 replies] Last: I followed the link you posted and came up with this as a fix: int ... (by lazarus102)
Iterator help
 
Hello, I have a question regarding the first 'else if' statement. I'm trying to remove a string from 'library' but I get an error when it comes to the iterator....
[2 replies] Last: alright I tried it and fixed it. Thank you for the solution and thank ... (by R2BeepBooop)
What language to learn?
 
Hello, I'm an 18 years old boy living in Belgium. I know html, css, php, mysql and TI Basic. Now i'd like to program bots for games (for example HearthStone ...
[1 reply] : Well, that sounds like a very specific task you are trying to perform,... (by discofire)
August 2014 Pages: 1... 353637383940
  Archived months: [jul2014] [sep2014]

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