Beginners - April 2016 (Page 6)

Need Help writing Database
 
This is a description of what i need to do. Write a C program implement a simple database. Your program will provide text-based menus for a user interface. ...
[2 replies] Last: haha, yea im in that class. Thanks a lot for the reply man, it seems t... (by dvdbeedy)
by Phil15
string x vs string x()
 
Hello I have a trivial question but did not know how to google it. 1. what is the difference between void func() { std::string x; //vs std::string x(...
[2 replies] Last: Thank you! (by Phil15)
Error link-2019, 1120 c++ Text based Adventure Game.
 
Hi Guys, was wondering if you could help me out with my code. Doing a little project fro uni and stuck on these 2 errors. If anyone could please shed some light...
[no replies]
by Esrue
C/C++ Shell program
 
Hey! And thanks for any help that you are able to spare. As the title indicates I've recently been tasked with writing a C++ shell imitation. One that comes ...
[no replies]
Compilation error when returning 2D vector
 
I have written an accessor function in which I want to return a 2D vector member variable: class GrilleDeJeu { public: std::vector< std::vector<Jet...
[2 replies] Last: ne555: minimal example with int works. I restarted Eclipse and refresh... (by BobMorane)
Stacks
 
Confused on how I would implement this for stacks aStack::pop()
[2 replies] Last: // stack::push/pop #include <iostream> // std::cout #include <s... (by GabyValedon2012)
Returning array from one function to another
 
When trying to move the arrays average and total from double calc to int main they both lose whatever data is stored in them and I am unable to figure out why. ...
[2 replies] Last: Thanks, I feel a little stupid now for such an easy fix. (by g0ldt1g3r)
[Error] expected primary expression...
 
Hello!! So for my project which I am not completely sure yet if I did the coding correctly I get the following error ( expected primary-expression before 'myA...
[3 replies] Last: LOL !!!!!!..... Thank You very much (by ambar16)
While Statement eof Marker
 
The problem is at line 87 under sum =0; I was trying to write a eof method to read my dual array but it keeps crashing my .cpp file. I do not understand whats...
[6 replies] Last: Code solved added above! Incase someone wants to run the file here is... (by nfectgotan)
Program stops working
 
Part of a project I am doing involves taking the information from one text file and putting it into two separate arrays. Whenever I build and run the program st...
[2 replies] Last: Thanks, its not crashing now and I had to play with it a little bit mo... (by g0ldt1g3r)
Swapping string elements
 
New to C++. I need help writing a function that will swap characters' positions in the following string randomly. Any ideas? String const string s = "ABC...
[3 replies] Last: Ah. That wasn't clear for me. Okay then. There are many ways to do it... (by MatthewRock)
Mutiple elements insert to one node of heap.
 
Supposed I have a file contains many lines as this: key A B I want to make a heap that each node contains key , A and B . And key is the key of that n...
[no replies]
by zramam
Help with trivia game
 
I almost got the whole program done except for a few issues that I couldn't resolve, but I think I know which parts need to be changed and I just don't know wha...
[7 replies] Last: No hard feelings. I just criticize so that whoever ends up working wit... (by MatthewRock)
How to use more file's in code?
 
Hi, how to use multiple file's in a program? Example: one to be with menu and another one to be with an engine, the first one need to use the second one to com...
[2 replies] Last: It won't helped me but thanks keskiverto for try! (by CosminPerRam)
How to INSTANT accept a value?
 
Hi forum, i want to know if there's a funtion to instant accept when i press any key. Thanks in advance for any tryes to fix my problem, sorry for my english, t...
[3 replies] Last: i was forgeted about _getch, thanks Thomas1965 , i not usually use ge... (by CosminPerRam)
Which Data Structure should I use?
 
I want to create a data structure that keeps records of users in an online game. I want them to be indexed and looked up via their usernames. Which one should I...
[1 reply] : Do you have what it takes to make an online game? Anyway, databases ar... (by MatthewRock)
non-stop looping
 
I have some problem with my code, it will keep asking for number of product but it will not loop it to Day 2 until i enter an error product number. The below wi...
[1 reply] : Hi, your code continues to loop bacause it only escapes if you enter ... (by Mops)
by niikn
Converting Degrees Decimal to DMS - HELP
 
New to C++, i'm sure i have included libraries that i don't need however i am trying to convert radians, to degrees decimal, to DMS and display the result. T...
[1 reply] : Hi, Consider doing the calculations to min and second with double fir... (by TheIdeasMan)
Hello!! why is my friend member can't get access to the private fields?
 
Hello! In my class, I created an ostream/istream friend member. And when I try to get to private files it's not letting me... why? Thanks!! Clock.h class ...
[2 replies] Last: Thanks!!! (by NOvadia)
CD input file library
 
Need help with createCDs function /* */ #include "CDs.h" #include <iostream> #include <string> #include <cstring> #include <fstream> using names...
[2 replies] Last: Why are your structures storing pointers for the text fields? That ju... (by dhayden)
April 2016 Pages: 1... 45678... 43
  Archived months: [mar2016] [may2016]

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