Beginners - January 2016 (Page 25)

Namespaces without classes?
 
Hello Everyone, So I’m very new to OOP. I was told once that unless you need to make multiple objects there isn’t a need to use classes and that I sh...
[6 replies] Last: @ Thomas1965 No, no, I meant doing the following which is tiresome (... (by TheIdeasMan)
rerrHeader was not declared in this scope
 
why do I get rerrHeader was not declared in this scope void RoutingProtocol::RecvError (Ptr<Packet> p, Ipv4Address src )//recv route error from node w...
[1 reply] : Because there is no variable named rerrHeader in scope on line 20.... (by cire)
GetTempPath
 
Hello, Can someone please explain what I'm doing wrong here? The program crashes, I'm basically trying to get the temporary dir. I spend a while trying to fi...
[1 reply] : TCHAR lpTempPathBuffer ; . . . // Gets the temp path env string (no ... (by closed account E0p9LyTq)
getopt
 
Hi. I was just practicing what I have learned so far and ran into a problem. In the code below, I simply need to accept either an -r or a -c flag. I don't need...
[4 replies] Last: Don't be sorry. Life happens. I'm glad you got it working. :O) (by Duthomhas)
greatest common divisior
 
Chaps I have been asked to do the above both recursively and also iteratively. As you can see from my code I have managed this, but after seeing how the recurs...
[1 reply] : https://en.wikipedia.org/wiki/Euclidean_algorithm#Implementations > ... (by ne555)
getline(cin, n) issue
 
I took a beginner's C++ course over a year ago, and I'm just going through the book freshening up on some problems. In the code, when I replace "cin >> input...
[2 replies] Last: OK, thanks. I had forgot about that. (by jumpinmp)
by Mays
Compiler freezes
 
So I've been using Microsoft visual studio C++ 2010 for a couple of months. a couple of days ago I changes the name of project and cpp file in Sourses i've been...
[no replies]
understanding array declaration
 
Hello, I was hoping I can declare a variable sized array but the debugger gives an error which I can't understand how to fix... int vindex ; the vari...
[7 replies] Last: Thank you rabster, this works like a charm and I hope I won't need any... (by kokoilie)
by HO4X
Validating Switch Statement.
 
Hi I wanted to know if there is a way of validating the input on a switch statement? One of the cases is the letter 'l' but if I input a word that contains the...
[4 replies] Last: AbstractionAnon you bloody legend! Thanks for your help i appreciate ... (by HO4X)
Stuck on storing user-input string in array
 
Hi there! So I've never programmed before and I'm trying to teach myself some C++ before I get back to school and dive headfirst into Java. I'm going through th...
[6 replies] Last: Because it was best suited to the task. (by cire)
by noaboa
Same number in box
 
Hi, I am making a sudoku game and I have tried to make a function so the same number dosent go into the same box(3x3) But I have a problem, it dosent work and I...
[no replies]
Void function problem.
 
Hello! I am new to c++ and I am trying to leran how to work with functions. In my textbook there is an assignment to take an earlier program and use it as ...
[3 replies] Last: I am kicking myself right now. I am sorry for taking your time with th... (by CaveManFred)
Homework assignment compound condentials
 
I am not sure how to start the functions, so I am asking for help, thank you. Here is a link to my assignment instructions https://e.edim.co/1821631...
[4 replies] Last: Thank you all, here is my completed program, ///Bone Jour Dog care ... (by RGB 455)
Begginner problems
 
Hello. I study programming at college and I'm a beginner. So I must make a menu with one Decryption and a Encryption but a get different error and I don't know ...
[2 replies] Last: Line 8, void criptare (char ) the parameter name is omitted. I think... (by Chervil)
Printf does not repeat in loop after scanf
 
Hello, I am a newb to C, been programming Basic/Visual Basic since 1984. Trying to teach myself, (as I learned Basic, HTML, etc) using books. I have searched ...
[2 replies] Last: Thank you, you were correct, the problem was due to my using a variabl... (by randtekk)
What is "Stack around the variable was corrupted."
 
I have made a very simple number game that add minus divide and multiply however when I run it at the first option the ide( I think) says that Stack around the ...
[6 replies] Last: [quote=codekiddy]char yes = "yes"; is not "yes", since answer is {'y'... (by booradley60)
Problems running code for the first time in VS2015 on Windows 10
 
I am having trouble getting started with C++ on Windows 10. I have used C++ before on Windows 8.1, with both the Geany and Visual Studio IDEs. I am struggling t...
[7 replies] Last: Bingo, right on the money. Thank you Chervil, Kevin, it was indeed Ava... (by christuart)
Understanding Pointers
 
TLDR? see below I'm trying to learn programming but have a hard time understanding how to properly use pointers. I have a pre-existing code that I've written,...
[2 replies] Last: Thanks! Checking if kompisar is already pointing to something, I know... (by LuckyXII)
by JoanT
Adding book in library error
 
I'm trying to call a method called addBook but I keep getting some errors and I'm not sure what do these errors means. void Bookshelf::addBook(int I...
[2 replies] Last: myBookshelf->addBook(int ID, string Title, string Author, vector<Boo... (by Moooce)
String
 
How to make a space character in string?
[3 replies] Last: If you mean inserting a white space then: string str = "helloworld";... (by codekiddy)
January 2016 Pages: 1... 2324252627... 29
  Archived months: [dec2015] [feb2016]

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