General C++ Programming (Page 4)

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)
my poor lottery checker program
#include<iostream> #include<string> #include<cstdlib> #include<time.h> using namespace std; //fun...
[1 reply] : This is only a warning and isn't a problem. You have a problem with ... (by coder777)
My menu isn't very intuitive.
My menu isnt very intuitive. How can I make it a case-switch menu instead? Also, I would like for th...
[1 reply] : Please, use code tags for readability. [ . code . ] Code here... [ ... (by boost lexical cast)
Solved it, got the data i needed for line[34].simple code
using namespace std; int main () { ifstream infile;"page.out"); string l...
[no replies]
Help trying to get Player to interact with Monster
Hey everyone, I've been trying to create my roguelike type of game for C++ using the ncurses library...
[no replies]
BMP file availability.
With the following code, I can get a copy of the screenshot without any problems but the .BMP file w...
[1 reply] : Use CloseHandle in function SaveBMPFile When an application is finish... (by LukeShen)
Why wont a substring method work in a while loop
I was using getline(infile,line) for an out file that I had, and I tried to use line.substr(5,5); al...
[2 replies] Last: Good ideal, maybe some of the lines only had a few characters but some... (by Jonjonscove)
Why does the get line method take more than one line sometimes
I'm using the get line method for an infile file. Getmethod(infile,line). When I print the results ...
[no replies]
input Max and Min in array
I can't seem to figure out a way to implement a max and minimum to an array. where it will only outp...
[7 replies] Last: // Project8.cpp : Defines the entry point for the console application.... (by Kevin10official)
Pages: 123456... 27
  Archived months: [oct2016]

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