Beginners - December 2009 (Page 22)

problem with arrays/loops
 
My program compiles but does not do what I want it to do. It is supposed to display a seating chart to a user. The user can pick to select a seat or to select...
[7 replies] Last: Here is the finished product for anyone else that may be having troubl... (by acct456)
by trier3
amicable number program bus error
 
#include<stdio.h> struct amicable { int **amicablepair; int size; }; struct amicable *getAmicablePairs(int startnum, int endnum); int sumdivisors(int num...
[2 replies] Last: struct amicable *ami; ami->size=0; (by jsmith)
by j3tt
using string with void function
 
simple program to enter name and display name. what am i doing wrong? //Ch10ConE03.cpp //Displays the name entered by the user //Created/revised by <your na...
[1 reply] : You need to pass inputName by reference: void getName(string & inpu... (by Bazzy)
Reading a file letter by letter into an array
 
Hi, I am relatively new to programming from scratch and I am encountering a problem trying to easily load ASCII art into a text based game I'm trying to make. ...
[4 replies] Last: tlchack5, The flexible array member is still a dynamically allocate... (by jRaskell)
Calling Functions Need Response ASAP
 
I need assistance on calling functions for a program. I have tried various things, but cannot get the correct output.Please assist. I am lost and confused. ...
[4 replies] Last: [quote=kiberstar]instead of using all those "std::thing, std::thing2" ... (by R0mai)
by Mihkel
Compiling your project
 
Hello I'm absolutly new to C++ . I just installed Microsoft Visual C++ Express 2008. I tried to compile "Hello world program" but Visual says it has an error...
[3 replies] Last: http://msdn.microsoft.com/en-us/library/92bz82zh%28VS.71%29.aspx (by Bazzy)
by Lisa
linker error
 
Hello I have been working on this program for days and am hung up on my function definitions when trying to compile. Here is part of my program I am working on ...
[7 replies] Last: Please properly indent the code as well. The code tags aren't that he... (by kempofighter)
storing an array as an array
 
Is there a way to set a temporary array of the same dimension as the original array without changing each individual component? ie. given int a = { 1,...
[2 replies] Last: I prefer using std::vector for multidimensional arrays. Then it is si... (by kempofighter)
by trier3
amicable number program bus error
 
#include<stdio.h> struct amicable { int **amicablepair; int size; }; struct amicable *getAmicablePairs(int startnum, int endnum); int sumdivisors(int num...
[no replies]
Assignment vs. Intialization
 
What is the difference between the two? How does unintializied variables cause bugs?
[2 replies] Last: It is a semantic difference, really. When we ask, for example, "what ... (by jsmith)
Question about a class, and brute for algorithm
 
So on wikipedia, theres and example algorithm to solve a sudoku grid by brute force, written in c. I wanted to implement it in a class, it works but i have the ...
[1 reply] : It sure looks to me like all solve() does is solve a single cell, not ... (by jsmith)
Distance From Average
 
Hello everyone! I was given a problem for school and I need some help with it please. Here it is: I must first prompt the user to enter 20 numbers then print...
[4 replies] Last: Haha that is what I thought but for some reason when I did it myself i... (by ohsnap1319)
Vowel remove
 
I Have to make a program that will remove all the vocals from a string characters,And I have no idea from where to start,could someone give some ideas?
[3 replies] Last: yes this should work, but just if you wonna replace them with a blank ... (by MaikCAE)
extract data from .txt file
 
Hy, I have a .txt file with lots of data packages. At the end I want to sort this data by time point and output it to an output.txt file. The problem is that...
[3 replies] Last: I'm still not entirely sure; I haven't read your file yet, because I'm... (by chrisname)
How to load content to StringGrid using TMainMeniu Objects
 
It's once again me. Now i am seeking for some knowledge on TMainMeniu objects. For example an TMainMeniu object named "Open" that should load an *.txt file's co...
[no replies]
by mac123
Reading and Writing to a txt file.
 
I need help with this program I'm coding this program is supposed to write to a file and read from the file. Now it has some errors on the write function I can ...
[3 replies] Last: ios::app means 'open the file in append mode' Its used only while wri... (by tene)
LNK2019 Problem with functions
 
I've looked through many threads here with the similar problem but I cannot seem to fix my code. The exact errors are as follow 1>WillBeeler_Prog1.obj : ...
[4 replies] Last: Haha so it turns out that is totally fixed and it runs like a champ on... (by Programmer Will)
by ztein
A good book about Win32 programming
 
So many books about Windows programming with C++, but which one contains well explained and easy to grasp theoretical/practical knowledge, from personal experie...
[no replies]
how to turn off setfill()
 
I'm using the iomanip setfill() to format one field in my output to a file. The problem is that every field after the setfill() command also uses the same fill ...
[3 replies] Last: setfill(' ') did it, thanks (by grcunning)
Converting chars to ints from binary file
 
I have kind of a complicated problem. I'm reading a binary file with open() and read(), and I would like to convert what's read into 32-bit integers. So basical...
[4 replies] Last: There we go, that works beautifully. Thank you so much Maik (by MediocreGopher)
December 2009 Pages: 1... 20212223
  Archived months: [nov2009] [jan2010]

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