Beginners (Page 106)

help me to figure out the error pls........
 
#include<iostream.h> char NAME ; int PH_NUM; class customer { char namE ; int ph_number; ...
[1 reply] : Include directive #include <cstdlib> (by vlad from moscow)
Miscalc in find all sum of all mults of 3 and 5 less than 1000
 
My code is giving me the wrong answer for the total sum of :266341 According to online sources the ...
[2 replies] Last: As well as the double counting of 15 and multiples, the output loop st... (by Chervil)
Multiply all smaler numbers than number specified
 
I want to create a program that does this: a = 7 result = 7*6*5*4*3*2*1 // until 0 cout << result...
[3 replies] Last: Variable c will always have the value of b * ( b + 1 ). As in your exa... (by vlad from moscow)
by Pebble
TicTacToe Exercise
 
I've done the TacTacToe exercise, And it look' a bit bloated with if staement's. Is there a way i c...
[3 replies] Last: Thank's for your comment's. Found an error in the win check at line 12... (by Pebble)
Help! Investment program
 
Write a program that finds how many years it takes for the value of Cleo’s investment to exceed t...
[no replies]
Global variable of own type
 
Ok, I hope I'll explain my problem clearly :D. I need to define global variable of my own type, but...
[3 replies] Last: Yes, I have had #include "define.h" both in Form1.h and my_project.cpp... (by Hans999)
extracting int from a string
 
How would I extract an int from a string with no spaces. for example int main() { string x...
[3 replies] Last: If every input has format "text number " and if the compiler supports ... (by keskiverto)
&& and || or what's the difference?
 
Hi, I've noticed other people using "and" in place of &&, I'm wondering what the difference is. ...
[9 replies] Last: The ciso646 defines macros, but the note says: "In C++, reserved words... (by keskiverto)
Problem with analysing string
 
Greetings, I've been studying programming from time to time and decided to make a text adventure,...
[2 replies] Last: tbh, I'd just use boost split to do this for you: vector<string... (by Zaita)
Linked list not printing properly
 
Hi all, I have been trying to make a linked list, but it wont print out properly with cout. Th...
[3 replies] Last: I was wrong when I said it wouldn't compile with Dev-C++. It would com... (by pokemon master 64)
by Tystuh
Shed some light on this please.
 
Okay i have to check a string for some things, heres the rules ------ If the first letter is a c...
[12 replies] Last: if ( x==1 || 2 ) is also a single condition. This is 2 conditions. I... (by Zaita)
Programming in BT5 Linux with C++
 
I am using Net Beans IDE to debug my C++ Code. I am familiar that <Windows.h> does not exist in Linu...
[2 replies] Last: Hmm... Well this is new to me. (by backslashx00)
Adding bullet class array
 
Thanks in advance for reading this and any help you can provide. If I'm missing anything you need me...
[6 replies] Last: Thank you, it's bits from my already written up pong game and patched ... (by Dylanface)
by MMag
Analyzing input string
 
Hello, How do I analyze input string from user? For example, I want "XXXXX" in one line to be ...
[1 reply] : This should help: string input = ""; getline(input, cin); for (uns... (by Zaita)
too few arguments to function
 
whenever I try to compile it to a .exe it gives me this error: C:\C++> g++ classBasics.cpp -o clas...
[1 reply] : Compare line 17 and line 40. The function is expecting a string parame... (by Daleth)
Kindly assist me
 
Hello Guyz! I Am Begginer and a desperate learner of c++ Am Habitual of Solving different problems...
[4 replies] Last: @ Smac89 Thanks for the advice. (by eyenrique)
whats the difference with these 2
 
Did an exercise once and still felt a little confused so I did it again. The second time around it ...
[1 reply] : Really? You mean apart from the break? The break prevents looping by t... (by Ravenshade)
Random number problem
 
Hi, I'm needing to generate a list of 10,000 different numbers between -1 and 1. I then have to arr...
[7 replies] Last: I have it figured out, thank you everyone (by gumbogogo)
OOP
 
Collections <T> int sameCount(Collection<T> a, Collection<T> b) In the Appearances class, the stat...
[4 replies] Last: thanks (by paul1994)
by zmlink
please help fixing my bad logic issues.. im a noob...
 
// I am extremely bad at c++ and my class is giving me hell this semester and my instructor will not...
[3 replies] Last: or fail trying lol ! (by zmlink)
Pages: 1... 104105106107108... 138
  Archived months: [mar2013]

Cannot post in this page. To post a new message, go to the first page.