General C++ Programming - April 2015 (Page 14)

by Htran
Need help on two dimensional character arrays
 
This is all I have not sure how to put 2d char array in here. Can anyone help me on how to me on this. Write a program, which will ask the user how many names...
[5 replies] Last: Before I offer further advice, answer me this: where did that ReadStri... (by Duthomhas)
Classes and Linked Lists
 
I'm writing a program that creates a linear linked list from information in a txt file. I won't write my actual code nor the actual homework assignment, but I'l...
[3 replies] Last: You should implement a copy assignment operator instead of that cop... (by LB)
by soranz
string - replace all NON alpha numeric with " " spaces
 
I have a near identical function with erase which works fine - the erase one simply erases all nonalnum including spaces. Self explanatory what I want this fu...
[3 replies] Last: That still looks quite complex. #include <string> #include <iostream... (by keskiverto)
by almica
Problem with infinite-loop
 
Hi there, I'm new to C++ and having some trouble with an infinite-loop i have to set up. The Program has to read in an integer value and has to "break;" out o...
[9 replies] Last: Thank you guys I will try to understand those procedures, :-) @tipaye... (by almica)
Double free or corruption faststop
 
type& objecttype :: operator=(object& var){ this->name=var.name //type string } getting error double free or corruption faststop crash...even though p...
[3 replies] Last: Use your IDE's debugger to isolate which line the crash is happening o... (by LB)
error line 1:expected unqualified-id before numeric constant
 
I created a resource file (.rc) and a .h file. in the .h file I experienced an error on line 1: expected unqualified-id before numeric constant. the code in...
[8 replies] Last: A general addition to the comments above: You've included file a in f... (by tipaye)
Can someone tell me what's wrong with this Pointer code?
 
#include <iostream> #include <cstring> using namespace std; int main(){ int room; room = 12; int *roomPtr; *roomPtr = room; cout << "Address of room: " ...
[2 replies] Last: http://www.LB-Stuff.com/pointers (by LB)
by xystus
Some kind of auto update... type thing...
 
I wanted to create something that gets live score updates and refreshes the console each time there is some kind of update. The closest example of this I hav...
[2 replies] Last: Would this be doable? As long as you have a reliable data source to... (by Z e r e o)
error in debugging in my code (Help)
 
this is my code for turing machine and after i make the input(s) it stop working #include <iostream> #include<string.h> using namespace std; typedef struc...
[1 reply] : and make sure your code is [co de]between code tags [/co de] so tha... (by TarikNeaj)
About delete function,urgent!
 
i want to remove a specific data from a txt file, but i can't make it work ,can somebody help me? urgently.Thank you
[2 replies] Last: this is my txt file Sungai Long Campus 9780132990448 Deitel, Paul J... (by freedom19943)
Finding min in stack
 
I need to find the minimum in a stack using constant time O(1). So for example, my current stack contains elements: 20 7 10 5 15 I need to find the minimum,...
[7 replies] Last: Your code finds the min of all the elements in the stack and has the s... (by Smac89)
Help Needed with Drill from Book
 
As the title says, I need some help with a Drill from the book I'm learning C++ from, Bjarne Stroustrup's Programming: Principles and Practice Using C++ Second...
[1 reply] : What have you written so far? Make sure your code is [co de]between... (by LB)
fstream
 
I create a file through c++ program. at the end of my program I have a condition check; if true -> I want to save the file with new changes; else-> discard the ...
[1 reply] : Save to a std::string or std::ostringstream and then when your con... (by LB)
Birthday party management project in C++
 
Hello everyone i have a project in which i have to create a birthday party management program in C++ and i have absolutely no idea about what to do and where to...
[5 replies] Last: Here is a playlist of a bunch of tutorials - https://www.youtube.com/p... (by TarikNeaj)
by Dkob1
Private, public
 
Need help to fix errors: #include <iostream> using namespace std; class TWO { private: int age ; public: //read data into array void ReadData(int age , int...
[7 replies] Last: Just try setting ageAve to = 0 in the beginning. The reason its askin... (by TarikNeaj)
Errors
 
I'm having some errors its saying LiveCount was a previous data member. Void alien setLiveCount was already defined, as well as getLiveCount. I'm also getting ...
[3 replies] Last: CLASS EXPLANATION To understand classes, first, understand structs... (by Disch)
array histogram rand()
 
Section 1 create a function “int roll()” that returns a value from 1 to 5. Section 2 Main Function. Set the random number seed with 1 followed by last 4 di...
[1 reply] : Please don't create multiple threads about the same problem. (by Peter87)
solved
 
Hello. I am a beginner needing assistance. Below are the instructions, code, and errors. You are taking a geology class, and the professor wants you to write...
[2 replies] Last: solved (by justhappy)
permutations and combination program
 
Hi, i was wondering if i could get some help on a program i am working on for my c++ class. i don't know how to do functions for the factorial function. any hel...
[3 replies] Last: You haven't described a problem yet, but I can decipher from your code... (by Smac89)
Funct with rand + main funct with loop+histogram
 
Please help * Student ID : Your student ID #.20129121 , Due date : April 15, 2015, Create function that produces a random number..Create a main function with a...
[10 replies] Last: Please explain this: int roll() { return (rand() % 7) + 1; } ... (by keskiverto)
April 2015 Pages: 1... 1213141516... 28
  Archived months: [mar2015] [may2015]

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