Beginners - October 2014 (Page 35)

Guess the Number Game
 
Hello, I am a beginner in C++ and really need help finishing my code. My program asks the user to guess a number from 1 to 1000 and when the user guesses the nu...
[1 reply] : char response = 'y'; do { // generate number // // while( guess !... (by Esslercuffi)
C++ Creating a design (instead of cmd)
 
Hello everyone I'm new to C++ and i wondered when you run your program after compiling it always opens up in a CMD window, right? My question is: Can I create m...
[4 replies] Last: it is available in VS. When you create a new project, select a type o... (by Esslercuffi)
Taking my first programming class.
 
Hey guys, I am taking my first c++ class and having a lot of trouble. I understand how to do basic stuff but I'm lost in using while loops and these other fu...
[4 replies] Last: thank you very much guys I hope this will help might be a little too l... (by bigmakk)
new array must has a constant size?
 
When I use "new" to create a array like: int *a = new a ; do I have to declare the array with the constant size? Can I declare like int *a = new a ; ...
[7 replies] Last: Thanks for all replies. Yes, vector is choice if I need the array size... (by buddha87)
need help to make this program run
 
Write your question here. #include <iostream> #include <iomanip> using namespace std; int main () { char Category A, char Category B, ...
[no replies]
A intelligent library database
 
Hi, I am using Xcode and i wanted to build a intelligent library database management system. I am a beginner. I want the user to enter what he wants to do... ...
[8 replies] Last: Yup! looked it up in C++ Primer Plus book. Thank you all. (by omkarborkar95)
New wanting to learn
 
Hey im new and want to learn C++ What would you say the best method to learning is? Because im struggling here should i look at the code write it in notep...
[8 replies] Last: If you're using windows (which I'm guessing you are since you're using... (by Esslercuffi)
by NOD32
Need help fixing these errors
 
I'm writing a program that takes input in the form of two fractions and then performs multiplication division subtraction or addition. I must use the 4 function...
[4 replies] Last: ok i referenced those variables in the argument and the program is wor... (by NOD32)
by mitoma
Error switch, help me please!
 
hi guys, i have a problem whith switch.. help me please.. errors: - expected unqualified-id before "switch" - expected `,' or `;' before "switch" #inclu...
[1 reply] : I hate to point these simple things out but it seems that your switch ... (by Tom56785)
by soranz
VS2010 new directory for classes to include/link to projects
 
I have a couple of classes split into .h and .cpp that I placed together into a separate 'classes' directory so that multiple projects can access them. Under ...
[2 replies] Last: The classes have been tested in their own consoles so the definitions ... (by soranz)
What did I do wrong that setw() function not working?
 
Correct me if i'm wrong. From my understanding of setw() function is to make spaces? So why is that my code not working? #include <iostream> #include <iomani...
[2 replies] Last: setw creates spaces on one line.. if you want the output to be on line... (by coltehrman)
Passing objects from a swapfunction
 
I need to sort the vector and have made a swap function. I can´t pass the name and age to the function and don´t know what I´m doing wrong. Put the c...
[2 replies] Last: Thanks tipaye! You solved Everything, now I have to study it. Incredib... (by patriic48)
Infinite Loop
 
Hi. I'm having a problem with this code. If I enter an integer value, it works just fine. However, if I type in a non-integer value, it keeps printing out the e...
[8 replies] Last: You originally intended to reject entries less than zero or greater th... (by PCrumley48)
How does this code work?
 
Write your question here. # include <stdio .h> int abc (int a) { int x =10; printf ("\ t in abc before increasing : x= %d\n", x); x=x+a; printf ("...
[3 replies] Last: int x =100; int a =20; a=abc(x); x=abc(a); This is in your c... (by Manga)
I just started with class and I need help debugging.
 
I wrote this code and I cant figure out where it's all gone wrong. My complier says "ld returned 1 exit status" #include <iostream> class Employee { publ...
[5 replies] Last: Thanks I did it and it works. I will update the code. PS: I am learni... (by IvanErlic2000)
by xello
Argument passing clarification
 
Hello guys forgive the code dump but if i can direct you to the few lines I have highlited in bold about half way down, I am looking for some help not with the ...
[5 replies] Last: Thanks a lot for that info that clears it up for me. I'd be all over y... (by xello)
My ternary operator
 
I don't think I'm understanding how this works. int diceTotal = diceDisplay() + diceDisplay(); //combine total of both dice cout << "You got: " << di...
[1 reply] : Then the ternary operator is inappropriate. What you're saying now (tr... (by booradley60)
by CaseyM
Triangle Problem
 
Hello Everyone! I've been taking a intro to C++ class at school and was given the following practice problem: Write a program that asks the user to input ...
[2 replies] Last: Straightforward solution: 1) Find offset O by substracting respective ... (by MiiNiPaa)
Program to check numbers inputed
 
Write your question here. I was asked to write program that checks numbers inputed by a user. It basically checks whether the number inputed is a perfect num...
[1 reply] : Line 65: num is a local variable. You don't pass it as an argument t... (by AbstractionAnon)
by thor36
strcpy_s from an old C/C++ library in C++ program
 
Hello all, I am trying to write a program that uses a library, which is rather old and was originally made for use with C, but is supposed to work well with C+...
[4 replies] Last: Since the strcpy_s() function was used incorrectly in the first place,... (by jlb)
October 2014 Pages: 1... 3334353637... 70
  Archived months: [sep2014] [nov2014]

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