Beginners - June 2016 (Page 13)

why can't assign an int on the heap
 
I don't understand why this isn't valid all I'm doing is setting aside memory from the heap to an in...
[1 reply] : new always returns a pointer to the space allocated on the heap (oth... (by AbstractionAnon)
by Nefeli
rand() not printing correct #s for dice?
 
Hello all, I'm pretty new to C++. I've just done a ton of research to build a program that rolls 2 ...
[1 reply] : First off line 15 is bogus. You're generating two indexes, each of wh... (by AbstractionAnon)
ASCII to numerical values gives negatives
 
Hi! I'm working on an encrypter, and am using ASCII to Numbers and vice versa to scramble letters...
[2 replies] Last: Here's the (temporary) encryption/decryption algorithm so far. (it is... (by jlb)
New to C++, have an assignment
 
I have an assignment that requires user input of numbers into an array. Then I need to be able to se...
[6 replies] Last: Thanks for all of the feedback everyone, definitely got it to work! (by kigoral)
return of main function
 
why main function always return int?
[1 reply] : From the creator of C++: http://www.stroustrup.com/bs_faq2.html#void-m... (by chicofeo)
Not operator trouble
 
So whenever I try to run this, it only executes the code in the if statement when a == b, which is t...
[4 replies] Last: You're welcome - glad it worked! (by MikeyBoy)
Console crashes when creating linked list class
 
All the code barring the "remove" function in LinkedL seems to work. When I try to remove a node fro...
[6 replies] Last: But I'm wondering how the dtor of node would look like because as you... (by coder777)
Linker Error
 
Error with code in DevCPP [Linker error] undefined reference to `Test::testfunc()' Error wi...
[1 reply] : In test.cpp you have declared a function that is not part of any class... (by Peter87)
by FBHSIE
Help with execution
 
The final product is pretty big when I run it. I think something is wrong. Any help? //Ashton Dre...
[6 replies] Last: Thanks for the advice! (by FBHSIE)
Funtion pointer array in a class
 
Is it possible to build the functionality of the below code into a class object. I need to invoke s...
[5 replies] Last: another ? if I may .. how do you return the address of an array point... (by dbrenchley)
comparing an input with an array element
 
in my program, the user has to type in a name ex: Mary Peterson and the program has to run throu...
[11 replies] Last: okay that format really helps, thank you guys! (by hibiscusleaves2544)
IDLE for C++
 
When i was studying Python there were IDLE that allowed me to see the result of my code right in the...
[4 replies] Last: If what you are looking for is an interactive C++ interpreter: https:/... (by JLBorges)
crashes when trying to print vector
 
so the code compiles fine and runs like it should but when I select 5 in the program to print out th...
[4 replies] Last: Line 54: You call printGeetings with 5. Line 148: You try to refere... (by AbstractionAnon)
Writing a Code to Test Other Codes
 
Is it possible to write a function that is able to run or build other .cpp files––whether throug...
[1 reply] : google "Fourth generation language" (by closed account 48bpfSEw)
exact same code won't work
 
I'm to find the smallest index of where a number is at in a for loop but it just won't give me the o...
[12 replies] Last: @Abstract You're right ... but now fixed the way I intended (by closed account 48T7M4Gy)
Can't link cURL with MinGW
 
Hi I'm trying to compile cURL with MinGW (G++-), but it ain't working. This is the G++ comman...
[3 replies] Last: Shouldn't you be linking to curlpp? (by kevinkjt2000)
by Revanl
sorting arrays
 
Hello. I made a simple program to collect data and print it but I have no idea how to sort my data i...
[4 replies] Last: This worked . Thank you (by Revanl)
by FBHSIE
Homework advice #2
 
Hello, I was reading how to properly use constants better by the management team at my school. T...
[7 replies] Last: did my questions not make sense? Not really but I'm beginning to see... (by closed account 48T7M4Gy)
Stack Memory Corrupted?
 
Hi! I am using an array to store some characters, but I get this error: Stack around the va...
[2 replies] Last: Okay, I'll set index to 0 instead of -1 (by Sporech)
by FBHSIE
Please help with homework.
 
Please help hint what to do. I have no idea how to fix these mistakes. http://prntscr.com/bfp0d0...
[2 replies] Last: #include <iostream> #include <stdlib.h> using namespace std; //mod... (by integralfx)
June 2016 Pages: 1... 1112131415... 25
  Archived months: [may2016] [jul2016]

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