General C++ Programming (Page 8)

by stav
[SDL] error when deleting window?
why cant i delete the window* i got from SDL_CreateWindow() in my class destructor? i wanna rele...
[4 replies] Last: thanks (by stav)
by KVin
[4 replies] Last: Please do NOT delete your posts once you've got an answer. It makes t... (by MikeyBoy)
What are the relative speeds for the different actions on standard containers?
Hi, I am looking for a summary comparison of the standard containers as to the different actions ...
[1 reply] : Have you tried a websearch with "c++ standard library container comple... (by keskiverto)
function values
The question is does the function setPixel looks correct? What values parameter value from function ...
[1 reply] : I don't think you should allow x == Image::getWidth() or y == Image::g... (by Peter87)
Removing Duplicates in random set of numbers
The purpose of this program is to generate 10 sets of 6 random numbers and remove any duplicates in ...
[2 replies] Last: What do you mean by "no duplicates"? A) Each set has 6 unique values o... (by keskiverto)
by miglr
help with using strlen function
I need to use the strlen function to get a total # of characters. when I run the program I get 1 for...
[4 replies] Last: as part of the lab it asks to use the strlen function to get a total ... (by Chervil)
delete duplicated words with at most 20 characters
I would like to write a programme to remove the duplicate words with at most 20 characters in a pass...
[2 replies] Last: Sorry that i can only use the library of iostream, fstream , cstring, ... (by book52020)
My Merge Sort is too slow!!
Hello, No matter how much I try, my Merge Sort is incredibly slow, let's forget comparing it with s...
[16 replies] Last: It seems OP has closed his a/c ;) but the rest of us can still learn f... (by gunnerfunner)
by miglr
having trouble displaying elements of an array
Hello I'm having trouble displaying the contents of an array. Heres my code and I cant seem to find ...
[6 replies] Last: Thanks a bunch for the feedback fellas. @keskiverto it was deliberatel... (by miglr)
Discerning between ASCII and binary STL files
My program accepts STL (the 3d printing type) files, and currently works with the ASCII type. I wou...
[3 replies] Last: On Unix-like systems, libmagic offers a way to do this. It's how f... (by mbozzi)
Having issues splitting/formatting a string into a vector based on multiple criteria
I need to split a series of strings that are formatted like this: ex string 1:<verb> sigh <adverb...
[1 reply] : Extract the first element, and then use the given split function to sp... (by JLBorges)
Problem with writing into file (fstream)
Hi! I have a FOR LOOP for writing an index file. My index file depend the word that i receive in ...
[no replies]
helpp ASAP function and array
i need to write a function that uses a file to fill up an 2 arrays string and double that is in main...
[2 replies] Last: i do kinda know how to use arrays, im looking at tutorial right now. ... (by waqarmalek)
Error allocating memory
Hey, first of all, i am writing my Code in C not, C++. I hope you could help me though. As the titl...
[3 replies] Last: Do you call it before trying to access pressureentries? (by Peter87)
Please Help!! Arrays
Can anyone explain how to write this program? A group of 50 people have gone apple picking at...
[1 reply] : help with what ? (by SamuelAdams)
by ddz
Problem with "if" in the code
Hello Guys, I am new to programming so I don't know what is wrong in if / else if statements. No...
[3 replies] Last: Thanks @Chervil. I am new so I didn't knew about that. Now I figured I... (by ddz)
My code for line[34] how to make it grab the data
I'm grabbing data from an html file and I need only the 34th character or above to 4 spaces only on ...
[1 reply] : How to use code tags (by SamuelAdams)
Friend and const doubts
#include <iostream> using namespace std; class Comp{ private: float r, i; public: Comp()...
[3 replies] Last: Thank you both, gunnerfunner und cire. I manage to make it the way i w... (by drporto)
by domcho
Problem with istream_iterator
I am trying to read an object from a file. It's a student who has a name, number of grades and grade...
[2 replies] Last: Works perfectly! Thank you very much! (by domcho)
Standard input/output help C language
Assume that word is an array of chars containing a string . Write a statement to display the mes...
[1 reply] : Try this: printf("Today's Word-Of-The-Day is: %s" , word); ... (by Thomas1965)
Pages: 1... 678910... 31
  Archived months: [oct2016]

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