Beginners (Page 4)

Two set of codes in one program
I don't know how to put this style into words. I put two set of { } and the output is the exact as w...
[no replies]
by N1nJa
Absolute beginner, how to implement graphics/user input.
Hi all, I have been learning c++ from Michael Dawsons C++ Through Game Programming book, I'm abo...
[no replies]
by rantiv
HotPlate simulation
Part 2 - Update Elements Once (25 points) The job of the algorithm is to find the steady-state te...
[2 replies] Last: I meant to say that my output is diffrent than the expected output. M... (by rantiv)
by Bunjo
Problem entering numbers into an array
I am trying to make a program that asks for the size of an array, prompts the user to enter numbers ...
[5 replies] Last: Thank you! I used vectors and it works now. (by Bunjo)
Why does this function allocating memory in a function not work correctly?
This code does not give me the expected data in mystr, I get "Unhandled exception at 0x012D2CE3 in P...
[2 replies] Last: "Correct"? Debatable. Here is one: #include <iostream> #include <stri... (by keskiverto)
by Zorai
Help with this C++ exercise please?
Hello, I am working on some C++ exercises. I'm a beginner and having a lot of trouble moving forw...
[7 replies] Last: how much money they’ve won/lost If you do have $50 at start and en... (by keskiverto)
Radix Sort Using Queues
My program involves populating an array of size 37 with empty queues, then sorting elements into the...
[no replies]
Adventure Game With Classes and Arrays
For my class project, I'm writing a choose-you-own-adventure game. It uses two classes (so I can sho...
[no replies]
Names - Reverse order - pointers
Hello : ) I have a problem with my C++ program. I don't know how to print first and the last name in...
[2 replies] Last: Thank you very much for your help skaa ! I know how it works now. (by piotr9567)
Having trouble using range-based for loop in my code, won't compile?
I've been trying to use a range-based for loop in my code but my compiler tells me range based for l...
[6 replies] Last: Never mind, I finally found a solution, downloaded a new compiler wit... (by Nelson108)
Bubble sort optimization - or not ?
Hi there. I'm trying to understand possible optimization methods for the bubble sort algorithm. I kn...
[3 replies] Last: I did the test with 10 times more numbers and get now 19(no optim.), 1... (by Guzfraba)
Dungeon crawl
Having a lot of trouble with this problem don't even know where to start any help would be appreciat...
[7 replies] Last: you would have to check every location maze and check the value. ... (by SamuelAdams)
How do I change the color of texts?
Hello! How do I change the color of the numbers that user enters? for example how do I make 16, 5 a...
[13 replies] Last: I agree, a lot of bad code is written every day. But if he stays in p... (by SamuelAdams)
by mmgh
linking problem with xml2
Hello, I have a complicated cmake file and I want to compile my program with xml2 library. Th...
[2 replies] Last: It does not add xml2 library into build.cmake while other libraries ar... (by mmgh)
Reading in Data from a file, printing it then calculating the sum/ave/sc
Hi, I am vvv new to C++ and doing a course on it. The first assignment i have is to reading in and p...
[1 reply] : These and others may need to be outside your loop. double total = ... (by SamuelAdams)
Map not properly identifing elements
The purpose of this thing is to allow the user to type in a name of an element and the program will ...
[8 replies] Last: in general, is there a ball-park file size number beyond which would ... (by jlb)
Switch Class names
I am very new to programming and I need to have a way to switch between two different class names de...
[4 replies] Last: A masochist would: void currF() { Tempature which; float inte... (by keskiverto)
How do I add polynomials and print them? [List]
So I am trying to add polynomials but I am not sure what I am doing correctly. Const: PolyTyp...
[3 replies] Last: Not enough information. You need to show your declarations for PolyT... (by AbstractionAnon)
by om4r97
store data in arrays of struct
hello every one . i want to put this text file data in arrays using struct , but i have some syntax...
[4 replies] Last: Line 52: Do not loop on ! stream.eof(). This does not work the way yo... (by AbstractionAnon)
Selection Sort/Bubble Sort/Insertion Sort
I have a code that doesn't have any compile issues. However, when I try to run it, it's not working....
[no replies]
Pages: 123456... 72
  Archived months: [aug2016]

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