General C++ Programming - December 2011 (Page 22)

by game
How to read mixed format txt file in C++
 
Hey! Hope you had very nice time during last vacations! I have a problem in C++ to read a text file of a format: vertex 1 2 3 vertex 2 3 4 vertex 23 4 ...
[1 reply] : I don't know the process of triangulation, so I can only give you this... (by webJose)
Integral enum problems
 
I'm getting an errors, it is on line 26 saying it must have integral or enum type. i think it has to do with IM being a float because when i changed it from int...
[3 replies] Last: ^ is the bitwise xor operator and is not defined for floating point nu... (by Peter87)
by loudin
Initializing Vectors within a Class
 
I have a class definition as follows: //Scene.h class Scene{ vector <Sphere> objects; public: void addSphere(Sphere s); vector<Shape> get...
[3 replies] Last: All the data is being read correctly. The sphere constructor is workin... (by loudin)
free memomy of link list
 
Hi everyone, I have two structure A & B. struct B { int h,w; double d; struct B *next,*prev; }; struct A { struct B *st; }; In...
[5 replies] Last: Indeed, it will be garbage. Also, I'm not even sure if free checks for... (by hanst99)
shellexecute, grrr...
 
OK, I'm a newb. I realize that, but I still don't see why this shouldn't open the file in shellexecute. It tells me that shellexecute is an unresolved external ...
[3 replies] Last: Thanks, that fixed it. (by librisrouge)
clock() returning negative value
 
Hi, i have a program that runs for severel hours and i'm using the clock function to extract some time data. But I recently notice some weird values and through...
[6 replies] Last: I was able to fix the problem using clock_t... My code is like this n... (by BrunoBruck)
Get integers from line
 
040812151625 How can I get integers from this line with a rule... For example 1. and 2. numbers will be my 1 integer:04 3. and 4. numbers will ...
[2 replies] Last: How are they stored/read in? (by Gaminic)
by Mr T
Calling a console command with user input filename?
 
hey guys, just a hint I need. I ask the user to input a name for a file and I store it in a location on the drive. But now I need to call a console command 16...
[2 replies] Last: Hi, thanx for replying and excuse me for getting back to you so late... (by Mr T)
How do i interact my C++ application with my ASP GUI.
 
Hi All, I'm right now facing an issue. I was told to program a Network Traffic Analysis to keep track of all the traffic that is flowing within the Virtual Env...
[no replies]
Need help with a loop please and thank you
 
Hi guys i need help looping this function menu after everytime my program finishes the problem that is asked to be operated.. until they push 5 as an selection ...
[1 reply] : @heymrjack10 Put the do{ just before choice = menu_f(); and the }... (by whitenite1)
grading program
 
Im so confused. ive been working on this program for a long time but I still am clueless. Please any help or advice would be great. I dont wanna make it seem li...
[2 replies] Last: sorry im an idiot. Im confused on the gradeonetest function, i dont co... (by Bball52)
two questions
 
1. When do I use {} brackets to close things off. I never know when to use them. 2. Can microsoft Express c++ be used to modify existing programs such as vid...
[8 replies] Last: Athar, what? What is wrong with it? The cin.sync(); gets the new line ... (by LB)
by Taino
Histogram
 
Hi, I have just completed this small cafeteria program. I do have a few issues I hope you can help me with. Here are my questions. 1) On the output I wis...
[3 replies] Last: dangit just use the "blocks that appear when you click the <> button (by Aramil of Elixia)
by Nawaf
Address Book Program
 
Hi Everyone, I have this final assignment and I have so many difficulties getting it done. I'm supposed to write/code an address book where I could add, dele...
[8 replies] Last: it would help if you would properly define ur code (by Aramil of Elixia)
Help with a bizarre problem!
 
I have a odd problem, which involves if statements in a for loop. I am a beginner but this problem just doesn't seem logical... My if loop as seen below repeats...
[2 replies] Last: also you don't need stdlib.h because cstdlib is the same thing in c++ ... (by Aramil of Elixia)
by yani
Specific reserved keywords
 
I've got a qustion: Did u guys learned all specific reserved keywords ( Bool, asm, auto, tc) or did u just write it on a pc of paper?
[13 replies] Last: @yani: nobody is saying you _can't_ write them down on a piece of pape... (by mmay)
Help with shooter console game
 
Okay so for my beginners c++ class we have to make game for our final project. The game is a simple shooter type game with ascii chars and stuff for the player ...
[5 replies] Last: I mean writing your own function, void update() It would look somethi... (by Mats)
Rock, Paper, Scissors Final Project Due Tomorrow - Please Help!
 
My Final Project is suppose to include User interaction(done),a loop(done,a user defined class, write to an external file, operating overloading & at least one ...
[18 replies] Last: I do appreciate all of the help you gave me. I think I finally have it... (by Green Monster)
finding side and angle of triangle in a circle
 
hi i want to write a C++ program that will: a) compute the positive values y for x = (a-r) to x=(a+r). y = b+(sqrt( (r*r) - ((x - a)*(x - a)) )) b) compu...
[1 reply] : hi, can you describe as well what your program has to do? (by Vins3Xtreme)
Is this proper usage of pointers?
 
Hey everyone! I was wondering if I properly used pointers correctly with this function template to swap the type's. I mean it works but did I do it in the most ...
[2 replies] Last: @Ryan Wilson: The danger with using pointers is the possibility that o... (by mmay)
December 2011 Pages: 1... 2021222324... 39
  Archived months: [nov2011] [jan2012]

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