Beginners - June 2014 (Page 47)

getline not working?
 
Hello again gents, Im at my wits end, My program is designed to search through a .mp3 file find the...
[5 replies] Last: Keeping things simple.. As you know, cin waits for the user to ente... (by Codermik)
Can't understand this... (logic problem?)
 
On my prog class we had this problem: user 1 have 1.10 height user 2 have 1.40 height user 1 have...
[8 replies] Last: Thnx, Chervil and Peter87. You helped me a lot to understand floating ... (by rodrigo1984)
How about pointer scope in funtion?
 
void functionA() { int *p = new int; } void functionB() { int *p = new int; } Is "...
[4 replies] Last: Is there any chance for pointer to point to the same address? Th... (by AbstractionAnon)
WriteProgram for emulator
 
I have just finished writing my WriteProgamV2() Version 2 accepts a syntax similar to Assembly la...
[17 replies] Last: That Map keyword looks interesting, you are able to assign strings to... (by Disch)
Need help with datafiles !
 
I was writing a program for validating username and password from a datafile. However, the program s...
[no replies]
one array equal another (rpg game map)
 
so i am working on a roguelike rpg game and i have all the "stuff" in the game figured out like fish...
[2 replies] Last: Firstly char Level_Map; // <-- this is a variable that contains a sin... (by CodeGoggles)
by tdk93
how does getchar() know that enter has been pressed?
 
The following program copies the input to output. main() { int c; c = getchar(); while...
[1 reply] : It doesn't, directly. A newline is just a character like any other. ... (by keskiverto)
cpycstr
 
Why does this work? char* cpycstr(char* to, const char* from) { while(*to++ = *from++);//it se...
[1 reply] : It doesn't work. You are free to corrupt random memory locations just... (by keskiverto)
by yakov
overload "<<" iterator (using by Vector)
 
Hello. First, hellow, i'm a new hare. Second, my english is not perfect so i'm apology for spellin...
[4 replies] Last: Solution for your problems is to use public Vector interface: say, ope... (by MiiNiPaa)
Referencing a function
 
Hello. Can someone help me understand this. If i have a fnction like this string& Basic_Fu...
[4 replies] Last: I see.. Thanks for the explanation and the example (by skadush)
2D array and writing to a console.
 
Hey everyone. So I am attempting to program some form of basic ASCII game in C++ just to learn mo...
[2 replies] Last: Ok, I think I understood what you were trying to tell me. The main di... (by Jebster)
by Auroch
Displaying difference of vectors
 
Hi everybody! I'm trying to display the result of difference of two-dimensional vectors using frien...
[4 replies] Last: OK. (by Auroch)
troubles with gtk+
 
Hello everyone, i'm using gtk+ for the first time, but the first project i created is not working it...
[1 reply] : What error? (by Lachlan Easton)
Where to?
 
Hello everyone! I hope i am posting in the correct section this seems right but my apologies if it i...
[4 replies] Last: Hello, thank you for the reply. For my last and final question would a... (by lazsers)
Trouble allocating new node
 
We have an assignment where we need to model two data structures that sort a given data set by name ...
[2 replies] Last: Line 14 is a problem. content points to some random place in memor... (by cire)
bad_alloc vs nothrow
 
I am writing my String class, just to practice, but I would like to create something at least not ba...
[2 replies] Last: > what should I use the nothrow new version or the bad_alloc one? Use... (by JLBorges)
Structure initialization not allowed?
 
Can anyone help me out with this code? Why can't I initialize a value for the arrays in a structure?...
[7 replies] Last: Article on separate compilation: http://www.informit.com/articles/arti... (by JLBorges)
read from file
 
Hi, how can i read data from a file ? Thanks
[5 replies] Last: What do you mean friend function declarations? Also I'm confused the ... (by closed account 2UD8vCM9)
Greatest/Lowest
 
Hello everyone, I need to input 3 numbers and find the greatest/lowest number using if statements. ...
[3 replies] Last: Right to left, not left to right... (by spamtrain14)
Problem with Entering String Data into a Node
 
Write your question here. I am trying to enter string data into a struct Node but the program bombs...
[2 replies] Last: Made the change. Found another bug. Corrected it. Program works. N... (by phztfte1)
June 2014 Pages: 1... 45464748
  Archived months: [may2014] [jul2014]

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