General C++ Programming (Page 2)

Looking for input on my current project
Hey everybody, I've started a new mini-project recently, more for exercise than anything else, bu...
[5 replies] Last: Thanks so much cire. I was unaware that including source files in hea... (by cire)
I want to Shorten the algorithm of "check()" function in this program.
I want to Shorten the algorithm of "check()" function in this program. void check() { /*for(int...
[3 replies] Last: Mr.cire I Cant understand your code beacuse I am just a Beginner, and ... (by faique66)
by Ozzy69
Help me with list
Hi, i want find this position of elemento 69 in list that is 4. This my code: #include <iost...
[1 reply] : Add a break: for(it = sexo.begin(); it != sexo.end(); it++){ ... (by coder777)
array of even numbers
hi guys, my program displays a set of even numbers ranging from 1 to 100 with their square roots, cu...
[5 replies] Last: int i; int r = 1/i; for (i=1; i<=100; i++) { ... (by Mr Impact)
matching string with arrays
how would I match a getline() string with alphabet characters in an array
[1 reply] : You can compare a string with an array of chars with the equal to oper... (by Mr Impact)
Issue with passing info
So this all works except the display_board() function. It sends back an error that "board" is not i...
[3 replies] Last: Well then instead of creating a global variable fill the prototype lik... (by Mr Impact)
1D Arrays and 2D Arrays (1,2)
I am a beginning computer science major and coming up on my final lab exam which is unknown exactly ...
[24 replies] Last: Cheers :) (by kemort)
Linked list cannot access last position
template <typename T> class node { public: T nodeValue; node<T> *next; node() : next...
[no replies]
Interrupt Shell Command
Hokay, so I execute commands and get the output like so: char buffer ; string command(""); while...
[no replies]
char * returns garbage when called
Hey there. I am not sure if can exactly explain my issue but I'll do my best. Feel free to ask me st...
[7 replies] Last: TC is using a C-style string; that is, a pointer to an array of charac... (by Zhuge)
how to create a pacman game using c++ ..
can any body help me ? how to make pacman game using c++ ..... simple way ...
[8 replies] Last: thank you all i will try .. (by shondhee)
Class help and set, get, retrieve
I am running into a little bit if trouble with my homework (not asking for a solution, just a push i...
[3 replies] Last: You are very welcome. (by Thomas1965)
Passing Data Over Network (Serialize ?)
Hello, I'm currently developing a server which must transfer much data in a short amount of time....
[9 replies] Last: Then the fastest way to encode that information is in a binary stream.... (by helios)
Please enter to see my problem
I need help in the development and modification of the code of the game؟؟ #include <iostream>...
[4 replies] Last: I want, for example, the introduction of a second ball moving horizont... (by adel eshtaya)
by Leance
selection using arrow keys
Can someone help or tell me where the problem for this? i can't find the error i'm not send all th...
[1 reply] : It appears it was a problem with the opening and curly braces. Keep in... (by Pindrought)
Arrays from text file
How do i store double/integer from a text file into an array. I have used two columns one is the tim...
[1 reply] : I would approach this step by step. First write code to open the file ... (by Chervil)
Function to return the number of parent nodes in a binary tree
I am writing a program for my class and I can not seem to get this last function to work. I have to ...
[2 replies] Last: Does "parent nodes" mean non-leaf nodes? (by cire)
Arrays:adding and averaging(text file input)
Hello, everyone I am making a program that reads the data from a text file in the format of a single...
[3 replies] Last: tree.txt input: 6.5 7.8 -1.4 9 22 -2.7 0 17 Is this the entire input... (by doug4)
DeleteTail function in Linked List
How do I implement the "deletetail" function and the "get length" function? Thanks. #include <io...
[1 reply] : #include <iostream> struct Node { int value; Node* next; /*exp... (by JLBorges)
c++ file handling program errors
Here's the program Its a simple program that asks for a name and saves it in a dat file and can dis...
[6 replies] Last: Well guess i figured out the proper code by my self. Here it is #incl... (by sohamb98)
Pages: 1234... 50
  Archived months: [sep2015]

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