Beginners - February 2013 (Page 32)

What is >> symbol in C++ ?
 
I really dont know what is >> symbol used for during " cout " operation? please some body tell me about this >> symbol?
[3 replies] Last: thnak you to all for supporting me. (by shivaji)
by auric
gets function in loop
 
Im getting a problem in the gets function when i put it on a loop. The 1st phase of loop goes well but the second does not do. It skip the 1st cin. Im a beginne...
[2 replies] Last: You simply need to clear the unwanted newline character from the input... (by Chervil)
Prime numbers given range
 
I have an assignment where I have to use two for loops. I need to ask the user for any two numbers and be able to list all the numbers in between and their fact...
[1 reply] : I'd start by understanding the for loop http://www.cplusplus.com/doc/t... (by Chervil)
A 4 byte float has the value: 0x7F800000. Its value as a floating point number is?
 
A 4 byte float has the value: 0x7F800000. Its value as a floating point number is: a. -39.482 b. +0.0 c. 11.0 d. +Infinity Hey there, I was hoping to s...
[1 reply] : http://en.wikipedia.org/wiki/Floating_point#IEEE_754:_floating_point_i... (by closed account S6k9GNh0)
The value of the two-byte two’s complement value 0xFF72 is?
 
The value of the two-byte two’s complement value 0xFF72 is: A. -28 B. -84 C. -128 D. -142 Hey guys I'm having trouble with this question. I want to b...
[4 replies] Last: Hey guys thank you so much. both of you guys gave great replies. I d... (by numbplum)
Sparse matrix addition help, linked list
 
I'm trying to add two linked list of sparse matrix, B added to A. But it doesn't work that well and crash sometimes. i have no idea what went wrong. So far for...
[3 replies] Last: Try to provide a minimal testable code that does reproduce your proble... (by ne555)
by ND04
Please Help Recursive Math
 
I Had This Homework About The Recursive Math, But My Professor Gave Us Very Vague Lecture Information. This First Recursive Program: #include <iostream> u...
[5 replies] Last: [quote=greenleaf8000073]@lowestone: Uh You mean ND04 right? Because I ... (by cire)
How to create a multi-dimensional map
 
typedef map<????> t_map; t_map mymap; int main() { mymap = 4; //??? return 0; } I want to create a map that I can use like a multidimensional ...
[3 replies] Last: Thank you! (by hung06061995)
Menus
 
I want to know how I can make a menu so people can choose what they want to buy. I know how to make a menu with one choice, but how do you make a menu where mul...
[15 replies] Last: Using a switch with chars as the options (make sure you include a quit... (by TheIdeasMan)
by Amulon
Converting a single linked list to a double linked list
 
I have created a single linked list that has integers from a file. How do I copy the nodes in the single linked list to a double linked list? Thanks!
[1 reply] : I have something like: p->next = q->next; p->back = q; q->next->back ... (by Amulon)
by zaqcde
How do I activate programs?
 
I have written all that I was told to by the tutorial's first lesson:http://www.cplusplus.com/doc/tutorial/, it is the lesson where you write "hello world", but...
[12 replies] Last: mitaka12102: thanks, I was able to close the program with getch(); m... (by zaqcde)
Wondering why program will not loop.
 
Hey, I'm new here and this is my first post. I have started on my journey down the path of learning the language of computers. I know a lot of tutorials say to ...
[8 replies] Last: The previous replies are all good. I'm just suggesting an approach you... (by vin)
by Hybrog
Random String Sequence Crash
 
Hey, I was trying to create a string that had a random sequence of letters, but when I try it, it completes the string, and then displays an error report messag...
[7 replies] Last: @greenleaf800073: you forget the null terminating char. (by tntxtnt)
by Ratzer
Make ball move automatically
 
So my problem is I need to make the ball move around the screen automatically. So when it reached one of the screen it needs to go the other way. If I could als...
[2 replies] Last: Thank you :) That helps a lot (by Ratzer)
Crash "R6025 Pure Virtual Function Call"
 
Hello, I passed an object by pointer but when I try to do some functions with it I get a crash. I am using the SFML graphics library and I had to pass a RenderW...
[2 replies] Last: Thank you. However, I do have a question about why the UI seems to f... (by Wnt2bsleepin)
by T4l0n
or(||) doesn't seem to work on loop
 
#include <iostream> #include <cmath> #include <cstdlib> #include <string> using namespace std; int main (){ cout << "2+2=4?" << endl; char answ...
[2 replies] Last: Your loop will continue as long as any one of the four conditions in t... (by AbstractionAnon)
Can someone help me write this program?
 
This is my code so far, but I know it's not correct, can someone give me helpful tips thank you!P.S I have to use a for loop. -Michelle I have to write a prog...
[5 replies] Last: I'm not sure I understand what you mean. The code I gave you does what... (by fafner)
Why it doesn't loop?
 
#include <iostream> #include <cstring> #include <cstdio> #include <cstdlib> using namespace std; int main() { char input ; int x = rand() &...
[1 reply] : Well first you can stop using gets and continue to use cin to get inpu... (by sysopfb)
Need help with college assignment!
 
Dev c++----- I am having trouble getting this program to run correctly. I did it wrong I know. I am very new to this. I need some help understanding the differ...
[3 replies] Last: One thing you could do, if you must do things without using simple ari... (by Chervil)
gethostbyaddr dns program
 
Any help on this appreciated. This is a winsock program designed to prompt the user to enter a domain name. The program is then supposed to return to the us...
[no replies]
February 2013 Pages: 1... 3031323334... 67
  Archived months: [jan2013] [mar2013]

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