Beginners - July 2010 (Page 10)

by michy
operator []
 
HI EXPERTS, Question about overloading operator .. im wondering how im going to create a 2D object like 2D array.... in my main i want smth like this MyObj ...
[3 replies] Last: but x(1)(1) is unintuitive and makes no sense. Just do x(1,1) . ... (by Disch)
by tinlab
Quit function in my basic calculator
 
Hey everybody, I'm pretty new to C++ programing, and I was trying to build a basic calculator with a loop so that I could continue to do calculations without ...
[10 replies] Last: I have finished the program and it works great if you would like to gi... (by tinlab)
by vkaul1
computational time calculation
 
How do I compute computational time for my main program? I know there is a ctime object but dont know what is the best way to use it. My Main file calls 2 three...
[3 replies] Last: It is in clock ticks. Use the macro CLOCKS_PER_SEC to convert to secon... (by Zhuge)
Recursion.
 
The goal of the program that I have to create is to have the user enter a number. From there, a function will countdown from that number to 0 and then return0; ...
[5 replies] Last: Gotcha! Thanks so much for the help guys :) (by xcrossmyheartx)
data input from file
 
hi how would i get individual data or arrays from a .txt file. all the tutorials i find the program draws all the data from the file as one string.if this w...
[2 replies] Last: http://www.cplusplus.com/doc/tutorial/files/ Personally, I find tha... (by Zero One)
Declaring a vector array (custom type) in a class, then initializing on creation
 
I'm having a rather large problem being able to pre-declare a vector array of a private type, then initializing that array somewhere in a ".cpp" file. In ord...
[9 replies] Last: Yes, new TileSprite(); does return a pointer. The colon separates... (by Galik)
Segmentation fault on copy std::map<int,int>
 
Hi, I have a Config-class, that contains a few variables and a std::map<int,int>. When I copy the empty map, it gives no problem. If the map has an entry, i...
[2 replies] Last: I finally solved the problem. I thought it was weird something like th... (by DieterVandenbroeck)
Message Box
 
I want the message box to display a random number, here is what I have: #include <time.h> #include <windows.h> int main(void) { using namespace ...
[4 replies] Last: [quote=TheEliteOne]I wanted it to return to main and open another mess... (by m4ster r0shi)
Do and while loops. (1,2)
 
I can't seem to get my do and while loop to work. For this assignment, I have to make a calculator that will keep looping with functions + - * and /. Here's wha...
[22 replies] Last: hi guys..could some1 help me on this, im quite new in programming : ... (by Soundwave)
Output for simulation
 
Hello , I am working on a project which is a numerical simulation . I was wondering if somebody could help with some data representation issues. As with an...
[6 replies] Last: I have no idea what .xls file format looks like. However Excel accept ... (by Galik)
by drw4d
String as parms or function types?
 
I'm hoping this is an easy question, so I'm not going to post code right now. If it turns out that it's more complicated than I think, I can certainly post cod...
[4 replies] Last: Thanks for all the tips guys. I had looked briefly at the idea of d... (by drw4d)
by Wander
Weird Loop of Infiniteness :)
 
I'm making a program that stores numbers in a text file. Whenever my code reaches a section in the code that has getline() and cout statements it goes into an i...
[6 replies] Last: deque is a dynamic sequence container. Since you are trying to use an... (by kempofighter)
by aag61
Send CR LF to active window
 
Hello, I am trying to send CR LF to a window of an application outside my running application. I was able to get the HWND to the window and send data to it...
[no replies]
Sorting an string in order
 
I tried to write a program to sort the elements of a string in alphabetical order. I don't know what got wrong:::: #include<iostream> #include<string.h> u...
[7 replies] Last: Better yet... Edit: @Cody39e #include <iostream> #include <algor... (by Athar)
by Kyon
Dynamic Multidimensional Arrays
 
Heya readers, As stated, I want to get Multidimensional Arrays to with non-constant "lengths" (amount of store-able "variables"). I have tried using const_ca...
[3 replies] Last: Just so you aren't wasting any time: the relevant bit of information i... (by Athar)
How to write pixels to the screen? (1,2)
 
Subject: Writing pixels to computer screen Platform: Windows 7 Pro 64-bit IDE: Visual Studio 2010 Premium How can we write pixels to a screen using...
[27 replies] Last: I didn't think of that. If you can get access to a cluster, then go fo... (by chrisname)
Remove/Replace line in file
 
I've been looking at sites for this and can't find a way to get it to work correctly. I'm trying to loop through my file to fine a line that matches a criteria ...
[16 replies] Last: I found the problem. Noob moment. ofstream myFile("HighScores.tx... (by SacredFootballLB)
by Gimp
How to see the output of cout in Windows 7 (Complete newbie here)
 
Greetings! This is my first time here but hopefully I will be making many many returns. I have found quite a bit of useful information for me down the roa...
[4 replies] Last: Thanks guys! I used mcleano's solution (just adding cin.get() at the ... (by Gimp)
Three Dimenstional Figures
 
Hello, I'm new to c++ programming, but I have used other programming languages in the past. I was wondering if it was possible to create three dimensional f...
[4 replies] Last: FSML might be of interest. (by moorecm)
c++ and MS visual c++
 
c++ and MS visual c++ are they the same?
[3 replies] Last: If you use .Net you are using C++/CLI which is completely different fr... (by Bazzy)
July 2010 Pages: 1... 89101112... 31
  Archived months: [jun2010] [aug2010]

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