Beginners (Page 3)

Linked List Sorting
 
Implement a linked list ADT to perform any 4 types of sorting algorithms on 3 different size of nume...
[2 replies] Last: Hi Daniel, Ask Hammer for answer or google it instead of hoping someon... (by qder12345)
by Atton
substr crash
 
I've been trying to split a string into 6 parts using substr. For one reason or another I seem to cr...
[1 reply] : Line 3 is pointless because you just overwrite it on line 4, and you n... (by LB)
Reading a file AND reversing it.
 
I have a file called numbers.dat, which all it has is a bunch of numbers. The code below does rea...
[3 replies] Last: You want to actually read the file into the vector: std::vector<int>... (by LB)
How can I improve this code?
 
So I wrote the following program which prompts the user to enter a string. It then outputs the chara...
[10 replies] Last: That output is with your first code. Note that there are two spaces b... (by Arslan7041)
Trouble with 3-d Array in Card shuffling program
 
Write your question here. I'm having trouble writing code for a shuffling program (noob really, h...
[1 reply] : Sorry for a non constructive answer, but I am having a hard time think... (by admkrk)
transform() vs generate()!!!
 
What is the difference between the transform() and the generate() algorithms in the STL?
[5 replies] Last: Well, no, because a function is not a functor. You could say f is a fu... (by helios)
cout, not working via CodeLite?
 
So I am using CodeLite, (codelite.org), with the mingw compiler, and cout, nor cin is not working. I...
[8 replies] Last: Ah yes, James. http://prntscr.com/8afzih It definitely is in there,... (by Speedicus)
Caesar cipher execute something weird
 
I am writing a caesar cipher program. It can compile but it execute something weird. I have no idea ...
[5 replies] Last: text = text2[text2.size()-2]; //line 85 ¿what's that suppossed to d... (by ne555)
structs + dynamic allocations - output problem
 
When i try to cout the array after activate the functions. the program is stocked! (you can only see...
[3 replies] Last: show your actual code. foo.cpp|29 col 11| error: ‘::main’ must re... (by ne555)
by Gherbo
Making my bar graph appear vertically
 
Hello, I am having a little trouble figuring out how to make my output (the "*'s") appear as a verti...
[no replies]
gets(arrangement); function on Visual Studio 2015
 
In school I use Visual Studio 2010 and I have no problem with the "get" function, but I downloaded V...
[3 replies] Last: The string library and getline works (as you say), so Thanks (by Danrock71)
by Carma
Seg Fault in Double Linked List
 
Removing code. :/
[4 replies] Last: Sorry, English is not my first language. :/ I added a more detailed ... (by Carma)
checking for dashes in a phone number
 
Hello everyone, I just got done posting a similar question before and I thought it was all fixed. Wh...
[2 replies] Last: JLBorges, Thank you for your input. This really helped me to see how t... (by jpanther)
Taking in Two C-style strings and placing it into one 2-d array?
 
I have an assignment where we need to place two words (separated by a space) into a 2-d array. Since...
[1 reply] : Please edit your post and make sure your code is [co de]between cod... (by LB)
Reading different things from textfile
 
I want to read both a string and an integer from a file. This is the general format of the file: ...
[5 replies] Last: good to know, I allways wondered if it works like that but I was allwa... (by Gamer2015)
Aggregation and Composition with Pointer Obj
 
Why do we use "*" here ? Linea::Linea(const Linea & obj) : inicial(new Punto(*obj.inicial)), fina...
[4 replies] Last: Peter87, thanks for your help, time and detailed explanation. (by CJM0929)
Function is not updating data and program goes in an infinite loop
 
I am a newbie and quite new to programming. I am trying to update records in a binary file. I progra...
[2 replies] Last: Check the return value at lines 21 and 30. My guess is that one of the... (by dhayden)
by JockX
Combinatorics algorithm for pairing
 
This is more a general algorithms questrion than strictly C++. I guess the answer is a simple nested...
[2 replies] Last: That's it. Thanks a lot! (by JockX)
by sariki
Recursion through links list in reverse
 
Hey everyone, So I have the recursion part down pat! Thanks to everyone who has helped me out over t...
[7 replies] Last: Line 18 has logical error. Why does reverse() return a pointer? Why... (by keskiverto)
using enum
 
hey der in sfml 2.3.1... i want to use 3 keys in keyboard for the same function..my code below does ...
[1 reply] : You generally should not use isKeyPressed , instead you should listen... (by LB)
Pages: 12345... 61
  Archived months: [jun2015]

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