Beginners - May 2013 (Page 5)

by yaraa
can you tell me whats the output here
int x=9; int *yptr; yptr=&x; yptr+=2; cout<<*yptr; system("pause"); }
[8 replies] Last: [quote=yaraa]Then it would be 11 is that right ?? No, it would be rand... (by LB)
Dynamic memory problem?
Hello, I'm starting to learn C++ and I decided to create a simple program using dynamic memory from...
[8 replies] Last: Alright! Now I get it. Thanks! (by jesuscheng)
by Rooky
I was wondering if anyone could teach me C++ for free. I know I may not get much responses but if s...
[6 replies] Last: I believe its easier to be told by a person than a tut online A... (by pogrady)
Switch wont initialize
Write your question here. I just started learning C++ so this is just a basic calculator program I ...
[3 replies] Last: this is the point where the program just ends without continuing on t... (by MikeyBoy)
counting table
so im trying to make a function that will count up and out put in a calendar style table but my coun...
[5 replies] Last: Thanks for the ideas everyone. (and i know i was aware about it start... (by tyler72us)
How many distinct substrings does a given string S have? For example, if S = "abc", S has 7 distinc...
[10 replies] Last: A string with distinct components has exactly s*(s+1)/2+1 substrings... (by condor)
Trouble looping to the start
How do i loop back to the start after i generate the maze? ive tried a bunch of things and they don'...
[4 replies] Last: Why didn't that work? although its frowned upon, you can also use got... (by pogrady)
int is not a class,struct or union type
hi everyone. i got a bit problem with executing this following codes..when i compile it come out an ...
[5 replies] Last: 1) Conflicting function definition and declaration. 2) Don't return ze... (by dhruv90)
Assigning to 'char' from incompatible type 'char[1024]'
So I'm trying to be able to store an array of characters, and it's giving me the error message above...
[16 replies] Last: that is what you want, but that is not what you do. your have char buf... (by nedo)
What Variable? HELP!
I want to define a name (word, not numerical): what to use? I cant using char :( imma noob
[1 reply] : #include <iostream> #include <string> int main() { std::string n... (by MiiNiPaa)
nios2linux kernel file management
Hye there! I was cross compiling my cpp file. then, I generated executable file. I made zImage whic...
[no replies]
Picking from a list
Is there a better way to choose a number from a list other than a bunch of if statements. Essentiall...
[2 replies] Last: #include <iostream> void do_math( const int (&a) ) { std::cout ... (by JLBorges)
creating text button
I use Turbo c++ 3.0 as well as CodeBlocks compiler/IDE on Windows 7 32 - bit OS. I want to create a...
[12 replies] Last: thank you coder777 i had really forgotten about the strcpy function. A... (by letscode)
read an check some data from a text file in c++
Hi programming language: c++ Guys pleas someone help about read an check some data from a text fil...
[no replies]
by Sakudo
Sum of odd numbers between a certain range
I'm trying to write a program that outputs the odd numbers' sum between a certain range. For example...
[1 reply] : c is uninitialized. On line 11/12 and 15/16 you add some values to ... (by coder777)
Template classes <-> separate class compile
Hi, I have a subsystem where all classes are compiled separate, and runnable objects are created ...
[11 replies] Last: isn't there one 'nsp_MYCLASS' too much in the last code-example ? Coul... (by Kitesurfer1962)
Cannot open file using variable name
I cannot open the file using variable name. I tried the suggested answers to similar problems and s...
[8 replies] Last: That is strange. It looks like file were opened in binary mode. Or it ... (by MiiNiPaa)
by juxte
Problem with setting an array of chars
Good morning, I have a "Cell" class, with a "name" attribute. On other hand, I've got the main cl...
[10 replies] Last: Thank you very much to both!! I'll use 2 variables, it's the best solu... (by juxte)
Program cuts off inputs by program player
I'm not sure if this is a coding problem, as on my computer when you input the player name it is fin...
[3 replies] Last: Also when I go to use getline(input, heroname) as opposed to getline(c... (by stranglehanz)
Lines to Quads
Lines to Quads The objective of this exercise is to read in a file stream of X, Y & Z vertex co-o...
[2 replies] Last: Thanks for that, I will try and go through your points. Entries wil... (by peter hurley)
May 2013 Pages: 1... 34567... 66
  Archived months: [apr2013] [jun2013]

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