General C++ Programming (Page 30)

by Heaph
Can't figure out the issue!
#include <iostream> using namespace std; int main() { // 1. Declare and use an array of 10 integers...
[2 replies] Last: I think i figured it out.. I put the main function at the end and incl... (by Heaph)
Saving Code
I've made a quiz template to help me review my school material. It's fairly easy to make a new exe b...
[1 reply] : #include <iostream> using namespace std; int answer; double totalq... (by MikeTheFish)
Stuck on how to finish transform function.
here are the instructions on the assignment Create a function that receives array as an argument...
[6 replies] Last: You have no clue? Look at those numbers. What does happen to them? F... (by keskiverto)
switch statement help
I'm working with a double linked list here. I'm having problems with something in this program. It's...
[1 reply] : A switch is not a loop. After falling out of the switch, your code hi... (by doug4)
Forward declaring a private struct
Hello forum, I have a question on gaining access to a private struct via forward declaration. I hav...
[3 replies] Last: you can forward declare bar, but you can use it only as other forward ... (by MiiNiPaa)
floating point division
What if you have to do some floating point division: If I understand correctly, if I divide by a n...
[2 replies] Last: Division by zero usually doesn't crash the programs the way integers d... (by Peter87)
So I have a struct in my header file called: struct TreeNode{ string info; TreeNode* left; Tree...
[4 replies] Last: MiiNiPaa, Thank you so much!!! You just saved my life :) (by newbiee999)
Linked List Help C++
I fixed the problem on this thread
[1 reply] : You appear to be in the same class as another user who posted similar ... (by fg109)
cross reference problem
I cant get the following code compiled. The following code is an abstraction of the problem I met in...
[2 replies] Last: Files cannot inlucde each other. In test1.h it is completely unnecessa... (by coder777)
Literature on performance of C++ algorithms
Hey guys. I've been on a programming competition last week, and I scored 5th place in my city, whic...
[1 reply] : And how can even know that my code will work with 100000 inputs You t... (by kbw)
/help please
//can someone help me solve this question, i don't understand the code and what is is needed from me...
[1 reply] : Q) Identify where the vulnerabilities are in the given code below an... (by keskiverto)
Roulette and Cards Project
//Project 2 #include <iostream> #include <stdlib.h> #include <time.h> using namespace std; main()...
[no replies]
C++ coding problem
So for a homework assignement i was suppose write a C++ program to determine which movie production ...
[1 reply] : I straight c/p'ed your code and compiled fine (after including the mis... (by TheM0nk)
expression convert from infix to prefix
Can someone post pseudocode to convert expression from infix to prefix as mentioned below: plz do AS...
[2 replies] Last: i want pseudo code algorithmi found earlier thanks (by bali971)
filling an array with strings
I need to fill an array with a list of strings and am having trouble figuring this out. i want it to...
[1 reply] : Like so: std:string string_array = { "Warrior", "Wizard", "Archer", "... (by coder777)
by R57x
Array Problem
Hi Guys I Have Problem int main(int argc, char** argv) { char array ; int i; ci...
[2 replies] Last: the type of array is char ‘1’ ASCLL is 49 ‘6’ ASCLL is 54 49 +... (by PoorMonk)
by codas
allegro 5
how to jump an object in allegro 5 by using gravity concept in which when we press a key, our object...
[1 reply] : Here is a pretty... (by pnoid)
by c1885
string to int
I am trying to convert a string to a signed int from a file: -1 2 3 4 5 6 7 8 9 Trying to ...
[5 replies] Last: My code reads one integer at a time, but since your file has only one ... (by keskiverto)
sorting a dynamic 2d array?
Hello, so I have a code to finally create a user designated dynamic 2d array that is filled with ran...
[1 reply] : please use code tags and indentation. (by anup30)
Pass vector element as a function parameter
I have a global vector of structs that is dynamically resized, and the way I use it is by push_back ...
[6 replies] Last: Thanks for the explanation. The program is multi-threaded, it's just t... (by dhayden)
Pages: 1... 2829303132... 48
  Archived months: [mar2015]

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