General C++ Programming - November 2013 (Page 19)

Why won't it compile?
 
I have the following code: // ASSEMBLY LANGUAGE RANDOM NUMBER GENERATOR FOR GNU COMPILER long int randnum( long int old_seed ) { // old_seed passed into...
[no replies]
interfacing LPT1 using inpout32.dll C++
 
Hi, Since days I`m trying to interface a stepper motor to my parallel port. (Used to be easy on w89.) createFile() won`t work for this. So I tried InPout32...
[no replies]
having troble with a simple program
 
pliz help am trying to Write a program that inputs three integers from the keyboard and prints the sum, average, product, smallest and largest of these numbers...
[1 reply] : say you have 3 int for inputs... use another integer say max.... put... (by kamransmir)
Dynamic Array with pointers
 
The project I am working on states: "Do programming project 3 in Chapter 7. In this version of the problem, return a new dynamic array where all repeated lette...
[no replies]
Using Union for combining registers
 
Hello everyone, I was wondering how I could use unions to combine registers elegantly. For example I have the 8 bit registers B and C & I have opcodes that wo...
[4 replies] Last: All of the above. (by Disch)
Use of iterator across files and classes
 
Dear all, here's a few parts of a program I'm working at. It does compile, and it does work as expected. Anyway Eclipse Kepler marks one line as a bug with th...
[4 replies] Last: Thank you, L B. (by SmeeAfshin)
multithreads and dynamic array
 
Let's have global dynamic array p defined as volatile int p ; Let's use it in a multithread application, where every thread can change array's size by ...
[2 replies] Last: Thanks! (by Konstantin2)
increasing integers automatically within a two dimensional array
 
i am new to programming all together but i have been writing a program in c++ and im coming up against an issue with my array. #include<iostream> #inc...
[13 replies] Last: I have fixed the issue thanks for the help. (by TheoXIII)
Heap sort algorithm crashing after 4100 entries?
 
Hi, I developed the following heap sort algorithm code, and for some reason anytime it goes above 4100 entries, the algorithm completely crashes. It works perf...
[6 replies] Last: > Sorting.exe!std::vector<double,std::allocator<double> >::size() Line... (by ne555)
Average grade ?
 
This is part a of a 3 part assignment, and im not sure why it isn't returning the correct average. #include<iostream> #include<iomanip> using namespace...
[2 replies] Last: line 65 change to: double avg = sum /(N*1.0); edit: or the prope... (by mutexe)
by Kubani
Read files
 
Hello all, I use Visual Studio 2012 for compiling C++. I created a win.32 console app and made a text file named "Mydata.txt" and wrote into it and then clos...
[5 replies] Last: Thanks too much. Yes I like to use forward slash. (by Kubani)
help with a simple logic coding, please help
 
So I am making a program that generates 3 random locations of ambulances on a 9x9 board, then you choose the coordinates to an accident. Now I have to know the ...
[4 replies] Last: #include <iostream> #include <cmath> int taxicab_distance( int x1, i... (by JLBorges)
coding interface for c++
 
Sorry for the title, I couldnt find a more meaningful one. Here is my question: I want to make a Turkish translation for C++. I want to be able to say "...
[7 replies] Last: using #define isnt a good approach I think. I think coding in your o... (by closed account 1v5E3TCk)
by mas12
I couldn't solve it in c++ can you help me
 
Write a program that asks the user to prompt an Integer number and then test whether it is Palindrome Numbers or not. The following are Palindrome numbers: 1....
[8 replies] Last: I found it ... it as follows #include <iostream> #include <conio.h> u... (by mas12)
How to get the os<< operator to output a vector from a class?
 
What code would I need inside the << function to display the contents of both vectors, names and sorted_ages? //=========================================...
[6 replies] Last: @catfish666 I tought he could overload the << operator from within the... (by AeonFlux1212)
SQLExtendedFetch is fetching an extra row
 
I have been trying to figure out what is wrong with my code, unfortunately i cannot share it, when i use the SQLExtendedFetch statement to fetch a batch of 5 ro...
[no replies]
Linked List Infinite Loop Help
 
So I'm working with a linked list and trying to sort it. I put random numbers into the linked list. First I find the lowest value and put it as the head and eve...
[no replies]
Textures White In OpenGL
 
I don't know why, but textures in OpenGL are white. One day, I must've change something, and now my textures wont load properly. I tried rewriting my code that ...
[2 replies] Last: When you say you fixed it did you: glTexImage2D(GL_TEXTURE_2D, 0, m... (by vin)
by SYe
Suggestion in fuzzy logic tutorial for beginner
 
Hello, Currently i have a need to use fuzzy logic for decision making which required to be build by c++, thus i wish that anyone could have give any suggesti...
[4 replies] Last: Hi, you can find tutorials on fuzzylite and qtfuzzylite at www.fuzzyl... (by jcrada)
object inside class becomes NULL
 
I have built LOG4CXX lib and DLL and trying to use it in my application Loh.h class Log { public: Log(void); ~Log(void); void Debug(const char *ms...
[1 reply] : > Issue I am facing is at if(CLogger::oLogger != NULL) which is always... (by JLBorges)
November 2013 Pages: 1... 1718192021... 46
  Archived months: [oct2013] [dec2013]

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