Beginners - July 2013 (Page 43)

Suggest a good boolean thingy for "knowing"
 
I have classes Guy and Girl. guy and girl are vectors (whose sizes will change constantly). A boolean array know will require 4 kinds because of guy knowi...
[no replies]
What other code can i use other than system("pause")?
 
I would like to know if there is other things, well i know there are just what and how to use them please.
[2 replies] Last: i assume you didn't see the pinned post "console closing down" on top ... (by Rechard3)
Help me if you can please!
 
If you can help me with some errors on a code then leave a comment! Thanks
[10 replies] Last: @AbstractionAnon, I am about to send you a PM. (by EliteGamesIndustries)
Counting spaces in a char array
 
When I put any sentence say "Hello my name is bob." When using the stdlen in a manner such as cout << "Please insert sentence"; cin >> sentence; nums =...
[4 replies] Last: I see thanks. (by kingkong200)
I need help with this simple code.
 
i cant get it to do that operation i want it to do. #include <iostream> #include <string> #include <algorithm> using namespace std; int a; int b; in...
[4 replies] Last: Thanks, i got it down now. http://www.cplusplus.com/forum/general/105... (by CrazyKane)
Someone tell me what this means?
 
error C2143: syntax error : missing ';' before '<<' how can I fix this?
[4 replies] Last: You don't have to delete anything. And there's nothing wrong with pos... (by Disch)
One last error please help me fix.thx for help
 
I have one more error it say (167): fatal error C1075: end of file found before the left brace '{' at 'c:\users\tracy\documents\visual studio 2010\projects\hell...
[4 replies] Last: what at places like these void decision (int& a) { int choice; switch... (by EliteGamesIndustries)
Problem with do-while
 
Hi iam new with c++ i started 2 days ago and in order to learn some basic stuff i decided to make a text game. My problem is that at (He>0 or Hp>0) the program ...
[10 replies] Last: You're welcome :) (by MikeyBoy)
by Blank
while loop
 
i dont know how to get started on this problem Write an input validation loop that asks the user to enter Y , y , N , or n . i know for each letter is a c...
[1 reply] : char c; do { std::cout << "Enter a character: "; std::cin >> c... (by vlad from moscow)
my rand still outputing wrong numbers
 
my output still has the repeating numbers. i am pretty sure everything is right. size = 10 srand((unsigned)time(NULL)); for (int i=...
[4 replies] Last: if i may change your code a bit: for (int i=0; i<size;i++){ ... (by Rechard3)
How i get this to return to the question?
 
i need this code to return to the question if you didnt type yes/no. if you type inventory it just says your inventory and pauses and closes. int main(){ ...
[5 replies] Last: I think i get what you mean, sorry i'm a noob (by CrazyKane)
Here is my text based world generator system.
 
Is this hard-coding? #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int r; int main(){ srand(time(0)); /// Random...
[11 replies] Last: Ive been trying to learn more about things of that sort and im just no... (by CrazyKane)
number to binary in c++
 
Hi there! I'm new to programming, so I hope this won't be a stupid question. I was trying to create a program that would convert simple numbers to binary code...
[4 replies] Last: Thanks guys! (by thePizzaLover)
Compare user input (char array) with string from file.
 
Hello everyone. I have a problem to search - [by using customer's name] - for a customer's bank account details from a binary .dat file. Here are some relevant ...
[3 replies] Last: I solved it using the code below: if (strcmp(name, s3.acc_name)... (by Alchemist93)
by ZeHgS
Weird linker/compiler errors
 
Hi guys! I am trying to make a Clickomania game using SDL. I think everything should be working, but I am getting some very weird, cryptic compiler/linker e...
[7 replies] Last: You're welcome :) (by MikeyBoy)
problem with cin>> and getline
 
I have problem with cin>> and getline. The getline function somehow steal the input I enter earlier from the cin>> function. int main() #include<iostream...
[7 replies] Last: doesnt make a difference in this case though (well if its inside the b... (by closed account Dy7SLyTq)
string Subscript out of range
 
Hi there, I am new to coding and have run into a problem where I see the above error message and my programme is unable to run. The code where I recieve this e...
[4 replies] Last: Thanks very much! With stringstreams, I was able to get my programme ... (by Hailhaven)
What is a char
 
What is a char I am learning and what im learning is that it holds number?
[8 replies] Last: The real standard costs money :( I use the N3290 draft which is the f... (by Peter87)
how to send host name to client?
 
I have a server and client program. The server sends its IP address to a master web server. The client then reads this list and displays the IP addresses in a l...
[1 reply] : You already have the local hostname, it was returned to you in Line 2 ... (by Computergeek01)
Pointer size
 
I've been coding+posting here for awhile, and I'd say I'm fairly adept at the proper application of each of the following examples, but if somebody could please...
[9 replies] Last: because c_str() returns a pointer. (by closed account z05DSL3A)
July 2013 Pages: 1... 4142434445... 53
  Archived months: [jun2013] [aug2013]

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