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

by chacha
Project that bring Java to C++
 
Check out that project https://github.com/charb/jcpp I know some of you might have a heart attack, but the concept/idea worth it...
[1 reply] : You should move this to the lounge section. (by TarikNeaj)
C++ Problem Help
 
Hi I need help fixing my program. The last void function is where the issue occurs. I want it to allow the user to enter the city name and then output the corre...
[1 reply] : It's so hard to read, I suggest using code tags. http://www.cplusplus.... (by SamuelAdams)
Message passing in UML and C++
 
hi. I studied msg passing between objects but can anyone please show how it is really done in coding? a) Object passing data to another Object b) one ob...
[8 replies] Last: Hehe, if I don't ask qs google won't redirect to nowhere or to places ... (by csstudent123)
Self declare class array
 
May I know after I create a class and object and array like this Book book how can I accept the input from user but not 1 times all input? like inside the I...
[10 replies] Last: void Book::setAuthor(string &aut){ for(int i=0;i<4;i++) ... (by Gamer2015)
declaring arrays inside main causes segmentation fault
 
I ran into an issue while working on a coding problem. My code was seg faulting and it started to work when I declared my arrays outside the int main(){} functi...
[4 replies] Last: Thanks @JLBorges. That was very helpful (by funprogrammer)
multidimensional arrays
 
im trying to fill up a x array using for loops and to output rows and columns that count from 1 to 100. this is what it should look like: 1 2 3 4 5 6...
[8 replies] Last: To get the column indexes, before printing the grid, output the indexe... (by Mats)
Meaning of double colons ::
 
Can someone please explain what the following code does, especially the last line that uses the "::" operator. What does that operator mean in this context? T...
[1 reply] : This is a recursively defined template structure. The value field dep... (by doug4)
Programming Advice
 
How to cope up with the Frustration and falling in to the eternal confusion and mental stagnation of not being able to a) Solve a problem b) Find and fix th...
[4 replies] Last: thanks all..good advices to implement and test :) (by csstudent123)
What are the differences in a linux g++ compiler and a windows MINGW g++ compiler?
 
There are programs which use STL C++ and run perfectly on Windows MINGW g++ compiler but show Segmentation fault sometimes(and sometimes not (strange) ) in linu...
[5 replies] Last: UTF-8 uses more than one byte for each character. The tolower function... (by Peter87)
Doubly Linked List split help!
 
I have to split a grocery list (nodes that takes 2 parameters, a string for the name of the item, and int for the quantity) and have every other node from the f...
[15 replies] Last: sure, no problem! :) Could you please try the pointer-to-pointer versi... (by Gamer2015)
Urgently need answer
 
Am trying to write a program that will accept and store the data of patients treated in a hospital's four emergency rooms in three shifts into a two dimensional...
[2 replies] Last: Uhm... an answer to what? Give us the code you are having problems wit... (by Gamer2015)
Vector of pointers doesn't work!
 
Hello! My program doesn't work, what is wrong with it? It crashes when calling a function. #include <iostream> #include <vector> struct P { virt...
[1 reply] : Your pointers aren't initialized. std::vector makes a copy of those po... (by Gamer2015)
How to keep program running without exiting when wrong option is chosen?
 
I am creating a library management system. I have a few menus for which the user can select an option but when the wrong option is chosen it should display an e...
[3 replies] Last: First of all. mainSelect = name ; name is a character, while mainS... (by TarikNeaj)
String Manipulation
 
I have this function that reads from a file the output of a GPS.In the output file i only print the GPGLL output for longitude and latitude.I want to break the ...
[3 replies] Last: Please, edit your original post and put your indented code between... (by toad)
overloading operators
 
Operators are unary binary or tertiary. when we overload operator do we need to consider this fact and if so how to determine in code do overloading opera...
[1 reply] : do overloading operators need to be of a class the most operatos can... (by Gamer2015)
Converting from iso-8859-1 to UTF-8
 
Good morning everybody I am writing a C++ application which tries to get some information from a mail box using POP3 protocol. The information I am trying to...
[no replies]
Virtual Functions
 
I have a question which is making my mind busy a bit these days. I have to program using Objective-C these days and the first thing that got my attention is tha...
[no replies]
Two exact functions with varying results?? (2D array)
 
To summarize my situation, there's a 2D array that stores the results of a poll. Each rows represent subject to vote on. Each column is the rating from 1-10. ...
[4 replies] Last: Thanks a lot fg109! You summarized it a lot better than I did. I appr... (by BarelyOtaku)
Combining Static Libraries
 
It is as they title says, I wish to combine multiple static libraries into one so that people using my game engine only require to link to one. I'm using Visual...
[no replies]
Dev-C++ Compiling Issue
 
I know a lot of people don't like Dev-C++, but I do use it on occasion. However, I've recently come across a problem in which every time I try to compile a prog...
[2 replies] Last: I deleted Dev-C++ and reinstalled a fresh copy (Version 5 Beta 9), but... (by RaceFreak10)
April 2015 Pages: 1... 2021222324... 28
  Archived months: [mar2015] [may2015]

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