Beginners - March 2010 (Page 32)

Curly-Brace Block Scope
 
I am trying to use a curly brace block to limit the scope of some functions, but VC++ is giving me the error: '{' : missing function header (old-style formal ...
[3 replies] Last: Thank you, that was the problem, I had it by itself in a header file. (by kevin06s)
Function that returns an unknown number of strings
 
Hi all, here is the issue I'm facing. I create a function to which I enter an integer and a string. It should then return a number of strings which number is un...
[7 replies] Last: http://www.cplusplus.com/reference/stl/vector/size/ (by moorecm)
by cmccmc
why is this happening?
 
My problem is the loop below is repeating twice the second time the code is executed #ifndef UNICODE #define UNICODE #endif #ifndef _UNICODE #define ...
[5 replies] Last: thanks adding std::cin.ignore(); at the end of each if/loop made it wo... (by cmccmc)
Stuck on 'move ball' program...!
 
Hi guys, I am trying to learn BASIC on a Commodore 64 (after failing at trying to learn complete 6502 assembly on the NES), and can't wait to contribute to the ...
[11 replies] Last: Successful troll is successful. theres code::blocks,visual studio,... (by chrisname)
continue statement not within loop?
 
I've been learning C++ for about 2 weeks so I'm pretty new to it. I've started on switch statements in a chapter of a book about looping. Apparently the continu...
[5 replies] Last: And finally, @ return 0 -- Does "=" mean assign and "==" mean equal t... (by Return 0)
by EEVIAC
cin.get() what does it do?
 
What is the purpose of using this: cin.get(); cin.get(); return 0; at the end of your code?
[2 replies] Last: Also read this: http://www.cplusplus.com/forum/beginner/1988/ (by tummychow)
link error 1 unresolved external
 
//demonstration of bit manipulation #include "printBinary.h" #include <iostream> using namespace std; #define PR(STR, EXPR) \ cout << STR; printBinary(...
[6 replies] Last: thanks, stay sharp (by foobarbaz)
Setfill and output manipulators assignment
 
need help writing this program, i'm completely stumped and kinda lost on even were to start, sorry i don't normally ask for help but if you could help me it wou...
[8 replies] Last: can somone help me get started on this with some source code?? i have ... (by Mario8000)
Passing Command Line Arguments
 
I need to pass command line arguments out of main. I am using a vector, but I am not sure how to sort out the contents of the vector when I get to the next clas...
[3 replies] Last: The vector should contain the argv and the argc. If I send the console... (by cbouwkamp)
by arshak
Delete system files
 
Hello everyone! I wanna write a C++ code to delete a file. I use remove() finction. But it CANNOT delete any file I want. For example, I wanna delete a file fro...
[5 replies] Last: @arshak You're not helping by being sarcastic. @Seraphimsan, I don'... (by chrisname)
by g0rd0n
Enable mouse input
 
Hey, I'm working on a little personal project, it's a small penalty shootout game. Its all text based, pretty much, in C language. Was just wondering what...
[1 reply] : aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (by foobarbaz)
Version of C++ compiler
 
hi guys. im new to this forum. hoping you guys can help me on what version of C++ compiler to use and where to download it. thanx
[4 replies] Last: @Zhi it might be because you included the old iostream... like this: ... (by adikid89)
What is wrong with my declarations?
 
The only errors I am getting are from the declaration of my arrays. I don't fully understand arrays, so I'm sure it's probably something simple. Any help will b...
[2 replies] Last: Zhuge is right. Moreover I see another problem on line 43 (if state... (by Danielsson)
Can someone fix the errors in this C++ code? (1,2)
 
I started this code and there's some errors here's what i had to code. I had to write a program that stores a string containing a full name (First Middle Last) ...
[20 replies] Last: Okay, look at what you're trying to do. You have first1 declared as a... (by yoked88)
what does this mean
 
I just tried to compile my program and the only error I got was that it said line 98: function definition does not declare parameters. I am using g++ to compile...
[11 replies] Last: thanks! (by kg245407)
Questions about missing default parameters
 
I have a program that includes //Package.h #ifndef PACKAGE_H #define PACKAGE_H #include <string> using std::string; class Package { public: Pack...
[2 replies] Last: OH, Thank you Thank you Thank You! That has fixed it! You are wonderfu... (by Jonoleth)
C++ Assignment storing strings
 
Hi, sorry to bother everyone but I am new at C++ and Have no idea how to do this. 2. Write a program that stores a string containing a full name (First Middl...
[16 replies] Last: Continuation topic? http://www.cplusplus.com/forum/beginner/20317/ (by Zhuge)
by kesa09
looping
 
i am stuck with looping problem program reads text file with some random positive and negative numbers (there is only twelve numbers) and it needs to find hig...
[6 replies] Last: That's pretty much right, except you have an unconditional assignment ... (by Zhuge)
Curses.h and STL(I Think) not working
 
basically, in a similar problem to this one. http://www.cplusplus.com/forum/general/1746/ I am having the vector class and curses not work....um...what to do?...
[1 reply] : That's one of the reasons why macros can be bad. You can use #undef st... (by Zhuge)
Sort Assignment
 
Here is my code for my linear search, can someone please help me fix my errors. I got no clue how to fix them! Class #include <iostream> #include <fst...
[6 replies] Last: I got it to work guys! I changed my top line to this! int sea... (by tarheelfan08)
March 2010 Pages: 1... 3031323334
  Archived months: [feb2010] [apr2010]

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