Beginners - May 2014 (Page 31)

by jes516
Restart program
 
Hi guys, This is my second day learning C++. How would i go about restarting this program? I would like to enter a grade number, receive the grade letter the...
[8 replies] Last: An if statement will auto encapsulate the next line of code if no brac... (by closed account j3Rz8vqX)
while loop in an if statement
 
Hi everyone, I just started learning C++ from YouTube a few days ago. I wanted to test what I've learned so far. I wanted to make a program that asked the user...
[15 replies] Last: Also thank you void life. Shoulda listened to you the first time aroun... (by ImmaNewb)
by enemy
Signed char
 
Hello! Please, can someone help me find a link showing the simplest use of SIGNED CHAR!!! First time in touch with that, no idea what it can be used for (==w...
[12 replies] Last: The char type is distinct from both signed char and unsigned char... (by LB)
Calling functions within functions
 
Hi, I'm having trouble getting results from some calculations posted into a file using <fstream>. I've changed the results to cout so that they'll display in th...
[7 replies] Last: Sure. Just to anyone wondering, I did some further testing and it was ... (by Bark Snarly)
by Relit
Quick question :)
 
Write your question here. So far i have no code to help with but i have an idea and i am looking for an answer before I start. Currently my idea is to hav...
[3 replies] Last: You can find several BASIC interpreters written in C++ here: https:/... (by AbstractionAnon)
Problem with stacks
 
Hm. Can't make it work. Can'st make it to convert decimal to binary and push it to the stack and output to the screen properly. Help void ConvertNumber (i...
[2 replies] Last: Line 1,23,24,25,60: Where is stackType declared? Line 3: Why is n... (by AbstractionAnon)
calculator
 
only addition is working... #include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; int main() { int n...
[4 replies] Last: i got it all fixed thanks guys i really appreciate it and if you have ... (by paulmaywald)
by ak16
macro
 
I knew what is macro and where we can use it. But I am confused what's the real benifits of using macro? Is ther any advantages of using it? Please frien...
[4 replies] Last: As keskiverto stated, #define is a holdover from C. #defines were... (by AbstractionAnon)
by iren37
Use perl to ceate Open Office Letters??
 
Use perl to ceate Open Office Letters?? Would like to read from an open office spread sheet >> names and address and then place that into a open office writer t...
[2 replies] Last: I would suggest you to look here http://4k.com.ua/products/others/libo... (by SlamUa)
Learning socket programming
 
Hi guys. I learned irrlicht game programming at last but now I want to learn network (sockets) programming.I couldn't link anything.Can anyone learned socket p...
[no replies]
by enemy
Signed vs unsigned char
 
Heelo, All! Plese, can someone explain me the difference between unsigned and signed char? Some EASIEST examples would be extremely helpfull! Or , at least...
[3 replies] Last: All characters are represented by character code i.e. number. Mapping ... (by MiiNiPaa)
by enemy
while loop
 
unsigned long hash(unsigned char *str) { unsigned long hash = 5381; int c; while (c = *str++) hash = (...
[3 replies] Last: THANKS; Peter87, and kaskiverto, I owe U for that!!! (Task in my book... (by enemy)
Need Help C++ (BEGINNER)
 
I REALLY NEED YOU GUYS HELP HERE JUST STARTED C++IN SCHOOL TWO DAYS AGO AND THE LECTURER IS JUST NOT GOOD WITH THE WAY HE STARTED PLEASE THANKS
[1 reply] : There is a tutorial on this website as well as a reference. The forum ... (by LB)
Modulus operator: Why does this output to 18?
 
#include <iostream> using namespace std; int main () { int c; c=(3%4)*6; cout<<c; return 0; }
[3 replies] Last: 3%4 gives the remainder from the division 3/4 . If you have a%b ... (by Peter87)
Logical error with exchanging values. How do I fix this?
 
I am trying to exchange values of two variables throughout the code and I can't seem to fix it. Here is a samples code. What am I doing wrong? Thanks a bunch! ...
[1 reply] : int xx; int newxx; xx=11; xx = newxx; --- value of xx is not define... (by keskiverto)
Aligning Output
 
How would I align the output of a program? Just centering this. cout << "Hello World!" <<endl;
[1 reply] : Use setw follow the following link http://www.cplusplus.com/reference... (by anmol2701)
Calling Global Variables
 
Recently I asked how to call variables in other classes. The answer revolved around setting the values and just retrieving that value. My question now revolves ...
[6 replies] Last: You could provide various functions to retrieve the health statistics.... (by TwilightSpectre)
Making sure I'm actually using insertion sort?
 
Hi! I wrote a program that sorts a vector successfully, but I just wanted to double check that I'm using insertion sort method and not something else. This...
[1 reply] : Looks like insertion sort. As a bonus: templated insertion sort imple... (by MiiNiPaa)
by muda
HELP PLEASE!!
 
I just started taking a programming class, can someone please help me with this: Write a program which can be used as a calendar. It must provide the followi...
[1 reply] : Please note, that this is not a homework site. We won't do your homewo... (by MiiNiPaa)
by ak16
#define and const
 
what is difference between #define and const?
[7 replies] Last: Thank you all guys for your reply. you above 1st and 2nd is really u... (by ak16)
May 2014 Pages: 1... 2930313233... 55
  Archived months: [apr2014] [jun2014]

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