Beginners (Page 31)

Hashing
 
Hello guys.I started practicing hashing and i am interested did anyone had contact with this kind of...
[2 replies] Last: string one looks to be too expensive. personally I am a huge fan of ... (by jonnin)
Sorting an array
 
So I had 2 different text files with values and I had to output them into 1 result file. After I did...
[4 replies] Last: unless these are very, very large any tweaks will give only tiny bits ... (by jonnin)
by Bopaki
Not sure why Assertion fails
 
Here is the problem: Assertion failed: ! Empty( ), file C:\Martin\MalikChapter7\corrupt2.cpp, li...
[7 replies] Last: 1. You need to be creating new StackNode's, not new Stacks. 2. You nee... (by salem c)
0xC000000005 that I don't understand
 
Hello guys, I have a double pointer char **input that has its double pointer part mem allocated but ...
[2 replies] Last: > printf("%f\n", *input ); Well, 1. %f isn't how you print a char (of... (by salem c)
expected unqualified-id before '>>' token when using Strings
 
I was just a begginer, so I want to know what unqualified-id is. I was using a string with cin func...
[1 reply] : std::string >> human.name; This makes no sense and I can see no re... (by Repeater)
Viewing asc image (1,2)
 
Hi, I have read the data required to create a asc file image n from file and I would like to now ...
[24 replies] Last: Thank you for sharing it. I still wonder about the variable height, de... (by MikeStgt)
References to Pointers (1,2)
 
I can't find much literature on references to pointers (probably not correct term), so I seek the ad...
[20 replies] Last: In the example you provided, ptref is "just" a reference to the ptr... (by keskiverto)
Erasing odd array's element
 
Hey all, so I have a problem with this code that it's not working properly. I have n (how many there...
[19 replies] Last: #include <iostream> #include <sstream> using namespace std; void rea... (by lastchance)
Friendship, protected, setters...
 
When it comes to having access to private data, is one method considered better than other?
[1 reply] : When it comes to having access to private data, is one method consid... (by mbozzi)
Error Correction
 
It is failing for some of the test cases.But i tried my best to figured out but it did not work we...
[2 replies] Last: Same again. http://www.cplusplus.com/forum/beginner/252024/ But you d... (by salem c)
Address not consistant
 
In the following code I have printed the consistent elements from an array and their address. I wan...
[6 replies] Last: It can depend on the C++ implementation and the OS. On Windows the ad... (by Furry Guy)
Auto-fill(flooding) image help
 
Hi, I have a function that is taking in an int for rows and cols, and a height limiter. It's suppos...
[14 replies] Last: I'll still post the whole thing on Monday. Which Monday? ;) ... whi... (by MikeStgt)
Boundary cases?
 
Boundary cases for below code where it is going to fail?
[8 replies] Last: I think this is the best i can explain to you.Feel free to ask any ot... (by MikeStgt)
How to account for numbers/digits in file
 
My goal is to eventually read the query file, which contains docs, and then read the data file which...
[8 replies] Last: Yes, that worked. Thanks a bunch. (by sunshine4)
by poggyQ
What is fflush(stdout) doing in this strcmp example program
 
So, I was trying to understnad strcmp listed on this site. http://www.cplusplus.com/reference/cstri...
[3 replies] Last: What happens if the flush of the stdout stream didn't happen? You wo... (by jlb)
by Horror
Problems with Loops
 
I’m doing a program where you ask the user to enter how many calories they burned the past five da...
[2 replies] Last: Duthomhas , I appreciate it! Thanks! This is my updated version of t... (by Horror)
Address of..pointer
 
Hello, If you want to access the address of a pointer, i.e. the address where the pointer is stor...
[4 replies] Last: yea they are correct (by Grime)
Separate String and put into Class
 
Hi :) I have an assignment to create a battleship replica via code. I'm trying to read my .csv file ...
[2 replies] Last: Once you're changed the commas to spaces, the easiest way to parse eac... (by AbstractionAnon)
need correction in my approach
 
Shlok and Sachin are good friends. Shlok wanted to test Sachin, so he wrote down a string S with len...
[2 replies] Last: > Where is the approach failing ? No idea - we can't see your code. ... (by salem c)
Can someone explain why I get the same output?
 
Is my professor's code wrong? Is my code right? //PROFESSORS CODE const int SIZE = 5; char* c...
[8 replies] Last: The prof's code, run through valgrind. $ valgrind ./a.out ==8410== M... (by salem c)
Pages: 1... 2930313233... 37
  Archived months: [mar2019]

Cannot post in this page. To post a new message, go to the first page.