Beginners - January 2010 (Page 24)

"pointer++" and "pointer + 1" VStudio 2010
 
Hi All, I've just started using Visual Studio 2010 beta and I have noticed something strange: if I increase a pointer using "pointer++" and then display the ...
[3 replies] Last: your code works as expected with VC++ 2010 too. I must have been doing... (by Prikolno)
by garob
notepad in the sourcecode section compile
 
Hi, does anyone know what compiler would compile the notepad program in the sourcecode section. It seems badly writen so I thought if I could see it in actio...
[12 replies] Last: something a little smaller (code wise), code is terrible... ... (by gcampton)
Are pointers more efficient than arrays ?
 
Hi there! I've read this article: ----> http://www.cplusplus.com/doc/tutorial/pointers/ and I've got one question: are pointers more efficient than ar...
[10 replies] Last: Disch , thanks to your pseudo-code - now I get it ;) (by john891)
output
 
I am a student in my first programming course CS 101. I have learned control structures, file input/output, and the basics. This assignment requires data mani...
[15 replies] Last: 3.5/10.0 is that my score? edited, i assume not as I don't use... (by gcampton)
Converting double to integer
 
This code: cout.setf(ios_base::fixed, ios_base::floatfield); double a=5.67; double b = a*10000; int c = a*10000; int d = (double)(b); printf("a: %lf b:...
[7 replies] Last: #include <iostream> #include <sstream> using namespace std; int ... (by blackcoder41)
Need to save inputs!
 
Hi. I am trying to make a program, where a person can enter some numbers, and those numbers has to be saved in an array or something else. Each time the u...
[2 replies] Last: Aaah! Okay. I think I've found something about Vectors now. Thank you ... (by Dwatten)
by angela
files..
 
i want to read words from a file. if letters of each word are upper convert to lower.(like A --> a) if it is not a letter (like:!) convert to " " ! " " ...
[6 replies] Last: What if the system uses EBCDIC? (by helios)
Inline Function Disallowed
 
I am working on classes and am having an issue sending a request to the compiler to gain access to private designated variables but according to my guide it sho...
[4 replies] Last: Ok, thanks bazzy! I ll use that link too to clarify for myself (by BettyBoopTS)
by August
Input Output with dictionary
 
How do you convert the string to a char??? I need this program to delete unwanted lines. But I have to convert string to char... #include <iostream> #incl...
[6 replies] Last: #include <iostream> using namespace std; int main() { //init... (by blackcoder41)
by Mazd
Pointer
 
Hi,guys this is my first post here in this site,i'm not so good in english ,but i think you will understand me.I know pointer is the one of the most troublesome...
[7 replies] Last: oh! i read it last night,it is very clear for me.i'm starting to get m... (by Mazd)
by ratio
Default command at the end of my cases doesn't work
 
In the ninth line from the bottom my default: cout<<"That is not an option!;" won't read out. I was hoping someone with more than my meager 8 days of programing...
[4 replies] Last: i love helping others but i hate switch statement. lol (by blackcoder41)
by ripley
cant get value from pointer (1,2)
 
Hello, I have a problem with variable unsigned char* to which I use as an argument of function a(). I need to use that variable later on in functio...
[20 replies] Last: @helios i already did that after guessing. i found out that vector is... (by blackcoder41)
There must be a more simple way..
 
Hello, New to C++ and appreciate this site. I attempted to write a program that asks the user to enter in two different words, then calls a function which s...
[4 replies] Last: 'Also, char *x = *&ia; and the one beneath it is technically write, bu... (by AeoNovice)
Writing a file
 
I compiled a basic file "writing" program from an example in a c++ book and, while it finishes with no errors, nothing happens. The program simply completes wit...
[3 replies] Last: Usually it's the directory of the executable file but it may change if... (by Bazzy)
C++ Windows forms App Password Protection?
 
Hey, I'm new to C++ and i've just made a Windows form application. I've inseted a Text box to it but i wanted to make the application password protected. I've ...
[no replies]
Some (beginners) trouble
 
Hi everybody, I am learning C++, and I ran into some trouble. But I can't figure out exactly what it is I am doing wrong. I have included my code, and the l...
[10 replies] Last: Thanks everyone for your help!! I reorganised my constructors, destr... (by undeads)
What's wrong with this?
 
Hey guys, before I start harassing you about my C++ problems, just wanna say HAPPY NEW YEAR(!) to everyone:P. Now to get to the point.. What's troubling me...
[4 replies] Last: Ahhh of course, p goes out of scope! I'm so busy learning new things t... (by fission)
Can anyone see anything wrong about this small segment?
 
void appendErrorLog(std::string tag, Error *ptr) { static int size = ptr->invalidTags.size(); ptr->invalidTags.resize(size+1); ptr->invalidTags.pus...
[8 replies] Last: Yeah I'm not sure why I've actually put that there... Also, why have y... (by mcleano)
simple grade program no errors but wont work correctly (1,2)
 
i am trying to make the if statement really long just so i can practice. I compile it with 0 errors but when i input 99.8 it just spits out "input grade" it do...
[24 replies] Last: oh wait, 3 is referring to me, lol. definition 4 is what i meant,, yea... (by BettyBoopTS)
by CMinus
Hey , I m beginner
 
Hey i was reading the documentation here and i read i can output string with new lines by 2 way 1st : /n 2nd end1; 1st one did it but 2nd don't want to w...
[4 replies] Last: Visual Studio? You should start from an Empty Project , any other te... (by Bazzy)
January 2010 Pages: 1... 222324
  Archived months: [dec2009] [feb2010]

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