General C++ Programming - March 2012 (Page 48)

Is it possible to code any C multi-threaded program in C++?
 
I know that C++ is basically 100% backwards compatible with C as long as the correct libraries are linked but I was wondering if it would worth my while to use ...
[8 replies] Last: You can abstract the use of C++ behind a C API. I do it all the time w... (by closed account S6k9GNh0)
I need help with a really really simple code ...
 
Im a little "noob" in c ... But a rather simple code is breaking my mind... #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h>...
[4 replies] Last: the problem is when i execute the file ... The elements of the array "... (by Izzy Me)
Could Use Some Help Here With My Code
 
Im getting Initilizer Expression list treated as compound expression Whats gone wrong? #include <windows.h> #include <fstream> #include <iostream> #in...
[3 replies] Last: Please, use a compiler other than the out-of-date MinGW compiler that ... (by closed account zb0S216C)
difference of cout and myfile
 
i have this code.. #include <iostream> #include <fstream> #include <string> main() { ostream myfile; string myinput; } the question is.. what ...
[3 replies] Last: yes (by hamsterman)
Why won't this Calculation Work?
 
Hi, I'm fairly new to programming, and this is my first piece of code beyond drawing pretty patterns in dxf files! I'm having trouble with line 132 (and proba...
[4 replies] Last: Thanks I have it now, it was the K . (by Beth Hill)
Binding arrays
 
Hello everyone, I'm writing a simple electrical circuit simulator and came across some logic I just can't get done with. Problem's the following: I've got a...
[4 replies] Last: I was doing it with qsort. Thank you all for the replies, I'll try ou... (by Rotunnoz)
Use a file as input the same way the consule is used
 
Hello, is there some way I can take a txt file and have it wait for user input. This would work the same way as the console and cin. I do not want to read some ...
[1 reply] : // open the file std::ofstream file( "file_name" ) ; // write the li... (by JLBorges)
Crash after MessageBox!!!
 
I was trying to make a simple ansi to unicode and vice versa conversation but i encounter problem but i don't know where should make the fix. Here is the sam...
[2 replies] Last: Thanks kbw, working fine now :) (by StoneHeart)
by JnrGD
Unable to load DLL
 
I made a recent post about not being able to load my C++ DLL in a C# application, now having tried to load it in C++ I found I can do so, but am unable to load ...
[4 replies] Last: @ OP: To answer your other question no, programs will not share instan... (by Computergeek01)
array re-arrange
 
s exam t ______ u |1000 d |0101 e |0011 ...
[2 replies] Last: for(int chr=0; chr<numChr; chr++) { for( int p=0;... (by chrisagr)
Arrays
 
multiply all elements in an array by every but the corresponding element in another array. Without division and without using n^2 calculations (no nested loops ...
[5 replies] Last: Here is the complete test program written in MS VC++ 2010 #include... (by vlad from moscow)
by duffer
How to make this program? Please provide full code.
 
Write a program which asks the user for a series of integers. The program first prints out all the integers the user entered then the program calls a function...
[13 replies] Last: Of course most people will try to get it done for free in a forum lik... (by Gaminic)
by hitlar
Why void * return class address instead of actual value address
 
////////////// Set.h ////////// class Set { public: void *set_elements; int area; Set(int); }; ////////////// Set.cpp ////////// Set::Set...
[2 replies] Last: A problem is that in the Set constructor you assign set_elements an ad... (by hamsterman)
multiple character if command
 
So I am trying to write a program for thread callouts where you enter the thread for example "1/4-20" and it displays the Diameters and I currently have to r...
[1 reply] : Use std::string #include <string> ... string str; cin >> str;//or... (by hamsterman)
by sjahf7
calling an overloaded function in a template?
 
so I have to use a template for a homework assignment that calls an overloaded function, i have one of these overloaded functions for int, one for float. the te...
[5 replies] Last: Maybe helps you http://surprising-code.blogspot.com/2012/02/specializ... (by Aikon)
by Aikon
Pointers to Member Functions
 
Hello everybody, I posted it many topics and I'm sorry if someone think that I'm abusing but I really want that my posts are acceptable and readable. As it m...
[3 replies] Last: Updated! (by Aikon)
by jim744
Help on Doubly Linked List
 
I need help with the operator =. It compiles fine but when I test it the member variables don't come out right. template <class T> LinkedList<T>& LinkedL...
[3 replies] Last: In your assignment '=', I don't see you return the reference to the ne... (by Azagaros)
Linked List
 
I'm having trouble with my Linked List. For some reason my sort function will not work. I was able to solo it down to the push_back function, but it still refus...
[5 replies] Last: where is the error at push_back()? it seems to work fine i traced you... (by intmain311)
by idks16
while loop not working
 
this is the problem: You have just purchased a stereo system that costs $1000 on the following credit plan: No down payment, an interest rate of 18% per year (a...
[5 replies] Last: thanks!! it worked :) (by idks16)
c++ countdown number game solver
 
Hello, I have been programming simple things for some time now and now i want to try something abit more complex I was thinking of creating a countdown number...
[3 replies] Last: Can you explain what you mean by brute force - what is the algorithm y... (by kev82)
March 2012 Pages: 1... 46474849
  Archived months: [feb2012] [apr2012]

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