Beginners - August 2013 (Page 9)

by nvrmnd
Array of Objects in a class help
 
Hello, i'm making a library program using classes... My question is how can i or is there a way to initialize an array of objects with undefined size ? ...
[15 replies] Last: oh i see.. there is cout statement inside showTitle and showAuthor ye... (by nvrmnd)
Question about Posix functions and Windows
 
I've read that POSIX is deprecated in Windows 8 and will be completely removed from the next release.Are all C functions Posix functions so none of C functions ...
[2 replies] Last: Thanks for your answer. I didn't understand posix functions exactly.D... (by Awareness)
by kkkl
cin.getline skipped
 
after i insert number'1' in menu c++ will skip "enter name" what is the problem? #include <iostream> using namespace std; int main() { char name = {{"Ja...
[7 replies] Last: yes,those codes just one part of the all . i have finished other parts... (by kkkl)
by Nyreb
Finding largest and smallest integer
 
looking for help on how to get a program to figure out which of 3 integers is the largest and smallest. I'm supposed to be using if statements, but got another ...
[1 reply] : int x = (a ? b : c); int x; if(a) { x = b; } else { x = c; }... (by LB)
Symbols
 
You know how in Minecraft you can make it show a character that is a bunch of changing symbols? (like it cycles through a bunch real quick) Well, I am writing t...
[1 reply] : If you want to do something like this (or, more general, if the word "... (by LB)
Saving textfiles
 
Im trying to get the user to choose whether he/she wants to save a text document in a file, I would first check whether a file already exists and would ask the ...
[4 replies] Last: Duplicates: http://www.cplusplus.com/forum/beginner/109357/ http://www... (by LB)
Text into TextFiles
 
Okay,I want to do is add a string into an existing text file.This existing text file has a paragraph, what I want to do is add the string the user types and wi...
[1 reply] : Responded to this thread: http://www.cplusplus.com/forum/beginner/1093... (by LB)
How to improve programming skills ?
 
Please share the method to improve my programming skills (algorithm,pseudocode,way to solve a problem in programming). I hope you'll share the truth about progr...
[1 reply] : practice (by metulburr)
Link Download
 
Please share the link to download an application C of Borland.
[2 replies] Last: ok, thank you so much. (by Rikimaru26)
by leo255
Need some clarification on Scoping in the Private Section of a Class
 
I'm going through Paul Deitel's C++ fundamentals video course, and encountered a small scoping issue. Below is my GradeBook Class code. I left out the main cpp,...
[7 replies] Last: Thanks for the help, guys! I apologize for the messy code - I will ma... (by leo255)
Segfault error in simulation under ns2
 
hi all am having a segmentation fault when running a simulation with a new module in NS2 (installed on ubuntu platform). could anyone detect at glance where p...
[1 reply] : i think the problem coul be that rt_etx wasn't initialized? is it? (by foxyrow)
Strings, Textfiles and Arrays
 
How does one store a file in an array(using fstream, strings etc), with say 1000 characters and displays the content.......thanks
[6 replies] Last: Very similar except that you need to know the maximum size of the file... (by Stewbond)
Strings and Swap
 
Alrite, Is there a code, using fstream and string that allows the user to swap a string variable with another string in a text file.. eg; if the user wanted t...
[3 replies] Last: I think this is probably one of the more basic find+replace things you... (by Stewbond)
Controlling couts
 
Hello guys, i just wanna ask how to control couts. for example: cout<<"Hello"<<endl; cout<<"end"<<endl; how to control it so it will display: Hello //after few ...
[8 replies] Last: Hi, the code below should help make it clear how to delay the "End" Me... (by softwaretime)
SOS-Hello Anybody there(Strings)
 
Im using fstream and strings-working with text documents what code does one use if the user wants to swap a word or words in a text file, eg the user wants to...
[3 replies] Last: put string fileData,newFileData="",wordToFind ,wordToChange; ... (by closed account 28poGNh0)
SDL Surfaces
 
Hey! I am new to SDL library and I have problem. I am trying to fill surface called ground and then blit it to main screen surface. When I am debugging my code...
[5 replies] Last: Thanks maeriden, it was necessary to add at the beginning ground=SDL... (by Adamoll)
String Swapping Using fstream
 
Alrite, is there a way of coding an algorithm That states, the user must enter a word that he/she wants to swap with another word using text documents.... eg...
[3 replies] Last: Yes, I am. (by vlad from moscow)
Copying string to a list node
 
Hi guys, quick question, aren't any of the following possible? struct Node{ char ACNM ; struct Node *next; } *start; void cacheData(char a){ strcpy(a...
[3 replies] Last: You will want to use char const *a for a c-style string parameter.... (by LB)
Using GLEW with MinGW
 
Hello! I do not know how to use GLEW with MinGW. I tried to follow the instructions in the homepage but it does not work. I looked for tutorials without any s...
[1 reply] : Okay I think I almost figured out how to use GLEW. I compiled glew.c a... (by Kapichu)
need some hints for homework
 
Homework: Write a program that finds all of the prime numbers between 1 and 100. I was trying to get my head around the part: prime numbers. However, I am n...
[18 replies] Last: The program is now more "complete." (by Josue Molina)
August 2013 Pages: 1... 7891011... 51
  Archived months: [jul2013] [sep2013]

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