Beginners (Page 35)

What are strings?
 
I just started learning c++ without any previous experience in programming and i am quite baffled as...
[1 reply] : It's best to think of a string as a sequence of zero or more character... (by JLBorges)
by abir50
void test function
 
For a project i am asked to find primes from 1 to x and then use the number of primes to solve the P...
[3 replies] Last: This description matches the given output: // Loop i from 1 to n. In ... (by dhayden)
Problem with M_PI
 
Hello I need some help with this code. I got this expression: M = 4/3(p*pi*r^3) where p is a c...
[2 replies] Last: oh! thanks helios ! (by bonecrunch)
c++ problems updated!
 
I think there is something wrong with my constructor. Can someone please help?? #ifndef INTEG...
[2 replies] Last: You need to set the A's elements to 0 in the constructors. Something l... (by tpb)
Reading file into a class array
 
For my homework assignment, I have to create a class titled "Book" and I need to read a file, of a m...
[5 replies] Last: since you have various types of data for a single book I would suggest... (by DaRealFonz)
How to use in.get() with text file
 
I'm writing a program that reads in words from a text file into a stack and queue to check if they a...
[5 replies] Last: I'm only to use characters, not allowed to use string type at all (by ElleJay)
C++ to Assembly code
 
hello everyone, does anyone know how I can start a c++ program and drop down to assembly code for a ...
[2 replies] Last: yes, This is good, I didn't know what it was called....I was under the... (by DaRealFonz)
Counter returning 1 more than expected
 
This code counts all the names on a file. There are 26 names in the file, all on separate lines. How...
[2 replies] Last: Yeah you were right there was an extra blank line at the end, thank yo... (by Shezshade)
Add AI to Tic Tac Toe
 
Hey, I need to make it so that my Tic tac toe board is against the computer rather than against ano...
[4 replies] Last: Also, try to make everything relative to the size of a side. I could ... (by icy1)
by Fishy
Why wont this very simple program with classes and files compile?
 
Why wont this very simple program with classes and files compile? This code is from a YouTube tutor...
[4 replies] Last: I went back and watched things again including how he created projects... (by Fishy)
Having some linker problems with gcc...
 
Hello! I'm having some trouble getting my program to compile. The purpose of this program is: ...
[4 replies] Last: also when you compile be sure to list all the .cpp names: g++ -std=c+... (by nether)
Code not reading all numbers
 
The 30 numbers in the file I'm reading from are: 15 95 12 52 27 94 55 68 51 86 9 20 49 ...
[7 replies] Last: If it accesses beyond array bounds then it takes whatever happens to b... (by lastchance)
Numerical Integration Programming
 
Keeps giving me a bunch of errors. Please help me fix it. //Matthew Ciublka HW8 Numerical Integra...
[1 reply] : what errors? What is the function you are integrating? Is it sinc? St... (by jonnin)
Clarification request on use of 'this->'
 
Greetings, I'm working on a accessor method for my class MobileRobot. The method location() shoul...
[3 replies] Last: @Repeater Thank you for your assistance! Scoping has been giving me q... (by Volk2013)
Need Help With Class Assignment: Palindrome Stacks and Queues
 
Assignment: Goal: Stacks and Queues to implement a programming solution Make sure you thoroughly r...
[2 replies] Last: When posting code, please use code tags. Edit your post, highlight the... (by dhayden)
by louish
do while loop needs help.
 
Need help with it. The while loop for play again doesn't work. I am not sure what is the reason that...
[3 replies] Last: Duplicate of http://www.cplusplus.com/forum/general/234500/ . Please ... (by MikeyBoy)
by Jsy
Random number in 2d Array without repeating
 
Hi, I cannot figure out what is wrong with my code below. Been trying for hours, but when I compiled...
[10 replies] Last: That "part" is this: void Initialize(int array ) { for (int i = ... (by keskiverto)
by LJ1997
Code Optimisation
 
I need to identify the problems with the code below and fix it so that the code runs quicker, I'm no...
[14 replies] Last: Hi @Ganado. It's actually line 52 that gives away the algorithm. Value... (by lastchance)
Efficient way of looping an array of pointers
 
What is the most efficient way to loop through an array of pointers?? Example: private: ...
[2 replies] Last: Where do you allocate memory for that pointer? How are you computing ... (by jlb)
Pages: 1... 3334353637... 40
  Archived months: [mar2018]

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