Beginners - April 2013 (Page 47)

help
 
write a program that uses a witch statement to create a menu for a calculating machine. the program will demonstrate the option that you take and ask you to ent...
Apr 14, 2013 at 4:54pm
[4 replies] Last: yeah i do (by Life FUTURE)
by Larry2
regex double escaping
 
Hello, Are there any way to avoid regex double escaping : \\s ? In python, for example, you can add a r'' to mean you want raw data, which become r'\s'. In a...
Apr 14, 2013 at 4:45pm
[no replies]
Overloading operators
 
I've been handed this assignment where I should make two classes, one Polygon class and one Point class. The polygon class consists of Points and I'm trying...
Apr 14, 2013 at 3:39pm
[14 replies] Last: Haven't fixed the polygon + polygon yet but will edit it in there once... (by Pethead)
by Niven
SDL won't load image
 
I'm trying to make a program using SDL and have a bunch of images that I need to load in order to make it. The problem is that SDL isn't able to load these imag...
Apr 14, 2013 at 3:37pm
[no replies]
Ifstream not loading file
 
Here is my SetTiles function for loading maps in my game. int Map::SetTiles(char* mapfile) { int X; int Y; std::ifstream Map/*(mapfile, NULL)*/; Map.open(...
Apr 14, 2013 at 3:29pm
[2 replies] Last: I feel like an idiot. It was the wrong path lol. (by closed account N36fSL3A)
matrix multiplitation problem
 
Hi everyone! I am new to C++ and I am required to do an assignment about matrix multiplitation. My function doing the multiplitation is as follow: int manipl...
Apr 14, 2013 at 3:13pm
[1 reply] : You must have three loops: rows of A, columns of B and the shared size... (by keskiverto)
shutdown program
 
#define _WIN32_WINNT 0x0501 #include <windows.h> #include <iostream> using namespace std; int main () { int actionType; int seconds; co...
Apr 14, 2013 at 3:01pm
[2 replies] Last: Alrighty, that solved the first problem, thanks for the info, also rep... (by takayume)
Best practise for finding length of elements in an int array
 
Hi, I need to calculate the length of an array by its elements, for example my int array would be something like below. 3245232523500000000000000 The ...
Apr 14, 2013 at 3:00pm
[10 replies] Last: Yes I need to count the elements in one of the arrays, my function com... (by nukem266)
by poziga
Two dimensional parameter in function
 
int test ; //visina and sirina are not constant flood(test, color, x, y); //i would like to send test array into function Not working void flood(int tes...
Apr 14, 2013 at 2:48pm
[12 replies] Last: So lets say I wanna get rid of a 1000 in line 23 and 24. How to use ma... (by poziga)
by Omeyer
How to terminate program- Question
 
Let me start off by saying that this forum has been extremely helpful since I have been taking an online C++ course, thank you all for that. Unlike some other p...
Apr 14, 2013 at 2:09pm
[6 replies] Last: A capital 'Q''s value is 81 and a small 'q' has a value of 113. Both ... (by Omeyer)
by xsxs
beginner for loop question
 
Hi, I recently started for loop in C++ and I am stuck on a question. I'm hoping that someone will be able to help me with this.
Apr 14, 2013 at 2:08pm
[18 replies] Last: @xsxs, have you already found a solution to your problem? (by compiler)
by Aceix
Advice needed for game programming
 
Hi all, I have managed to complete a tutorial on c++ and have 1 year experience. I also did very basic WinAPI stuff, and I'm now on C++/MFC with Jeff Prosise'...
Apr 14, 2013 at 1:56pm
[4 replies] Last: Austin J - I'd say don't, use SDL, SFML, Allegro, something that is... (by geek101)
3x3 Matrix Multiplication for loops???
 
So basically I have to tell the user to input data and i use a for loop: for (i=0; i< 3; i++) cin >> p ,p , p ; now for the confusing part is, what do i...
Apr 14, 2013 at 1:46pm
[1 reply] : do yo want to multiply the 2 values?? (by geek101)
by Hotice
spawning a java process from C++
 
I have asked, on another website, how to open a JAR file from C++, and one of the responses was to use system("java -jar myJavaProgram.jar"); and I responded:...
Apr 14, 2013 at 1:39pm
[1 reply] : Search on JNI, specifically on JNI_CreateJavaVM(). You can host a Jav... (by binarybob350)
While Loop
 
What do I need for a test expression in a while loop to keep the following loop running until the user inputs quit. //Writing data to a file. #include <iostr...
Apr 14, 2013 at 1:27pm
[4 replies] Last: why don't u do cin.eof()? do{ ... ... cin >> input... (by Lim Boon Jye)
by Dk786
Simple file i/0 question
 
hi guys so i have to read a file the file is formatted as: 0101010101010101 ; this line is blah blah 0101010101010101 ; 2nd line and so forth,so what i wana d...
Apr 14, 2013 at 1:25pm
[3 replies] Last: Well, just use the string to initialise the bitset. string bitstr... (by Chervil)
Memory Leak
 
Would the code below leak memory? Warning: Do not run the code. #include <cstdio> int memleak(int size) { char* leaker=new char ; return size; ...
Apr 14, 2013 at 12:54pm
[18 replies] Last: @Zaita - you have the last word. You won!!! :-) @Daleth - Thanks. I ... (by writetonsharma)
How do you use istringstream?
 
from a file the data holds: Bob 20 M Billy S Fred 12 M Joanna Mil 26 F Name >> age >> gender how would you use istringstream to assign each data into ...
Apr 14, 2013 at 12:50pm
[4 replies] Last: "Comma separated value" formats are popular, because they make it easi... (by keskiverto)
Finding Words and Writing to a File
 
Hello everyone, I'm new in this forum and in C++. I've searched about my question but I didn't managed to understand the solution, that's why I created this ...
Apr 14, 2013 at 12:38pm
[7 replies] Last: Alright thanks :) Also try to use Google translator or something befo... (by Ranguna256)
forward declaration/include problem
 
Hi! I'm having some problems using my global elements i've created. Simply because they contain a class I created. Read some about headers and projects, b...
Apr 14, 2013 at 10:28am
[15 replies] Last: I will. This will probably take most of today since I'm not comfortab... (by Jonas Wingren)
April 2013 Pages: 1... 4546474849... 83
  Archived months: [mar2013] [may2013]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.